diff options
| author | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2025-12-28 12:27:31 +0300 |
|---|---|---|
| committer | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2025-12-28 12:27:31 +0300 |
| commit | 78ee7d5717807e6ac779293d0d3c78341de6130a (patch) | |
| tree | a43e3b0f61318ac45e6d907c7cc5bad2c6d7f497 /os/ipengine/flash28f320b3b.c | |
| parent | bdaf46cf45bbb59261da245d548a179d95a42768 (diff) | |
Move existing boards into subdits split per arch
Diffstat (limited to 'os/ipengine/flash28f320b3b.c')
| -rw-r--r-- | os/ipengine/flash28f320b3b.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/os/ipengine/flash28f320b3b.c b/os/ipengine/flash28f320b3b.c deleted file mode 100644 index 27bb90d6..00000000 --- a/os/ipengine/flash28f320b3b.c +++ /dev/null @@ -1,43 +0,0 @@ -#include "u.h" -#include "../port/lib.h" -#include "mem.h" -#include "dat.h" -#include "fns.h" -#include "io.h" -#include "../port/error.h" - -#include "../port/flashif.h" - -/* - * Intel 28F320B3B in word mode - */ - -#define I(x) (x) -enum { - ReadArray = 0x00FF, -}; - -#include "../port/flashintel" - -static int -reset(Flash *f) -{ - f->id = 0x0089; /* can't use autoselect: might be running in flash */ - f->devid = 0x8897; - f->write = intelwrite2; - f->erasezone = intelerase; - f->width = 2; - f->cmask = 0x00FF; - *(ushort*)f->addr = ClearStatus; - *(ushort*)f->addr = ReadArray; - f->nr = 2; - f->regions[0] = (Flashregion){8, 0, 8*(8*1024), 8*1024, 0}; - f->regions[1] = (Flashregion){63, 64*1024, 4*1024*1024, 64*1024, 0}; - return 0; -} - -void -flash28f320b3blink(void) -{ - addflashcard("Intel28F320B3B", reset); -} |
