Changeset 1434


Ignore:
Timestamp:
09/08/11 21:55:18 (9 months ago)
Author:
uwe
Message:

Add initial Atmel AT49LH002 FWH/LPC chip support.

The chip code is untested, only one erase function out of two is currently
implemented, and unlocking/printlocking is not yet supported.

Thanks Mattias Mattsson <vitplister@…> for the initial patch!

Signed-off-by: Uwe Hermann <uwe@…>
Acked-by: Uwe Hermann <uwe@…>

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/flashchips.c

    r1431 r1434  
    23062306 
    23072307        { 
     2308                .vendor         = "Atmel", 
     2309                .name           = "AT49LH002", 
     2310                .bustype        = BUS_LPC | BUS_FWH, /* A/A Mux */ 
     2311                .manufacture_id = ATMEL_ID, 
     2312                .model_id       = ATMEL_AT49LH002, 
     2313                .total_size     = 256, 
     2314                .page_size      = 0, /* unused */ 
     2315                .feature_bits   = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */ 
     2316                .tested         = TEST_UNTESTED, 
     2317                .probe          = probe_82802ab, /* TODO: 0xff cmd not documented? */ 
     2318                .probe_timing   = TIMING_FIXME, 
     2319                .block_erasers  = 
     2320                { 
     2321                        { 
     2322                                .eraseblocks = { 
     2323                                        {64 * 1024, 3}, 
     2324                                        {32 * 1024, 1}, 
     2325                                        {8 * 1024, 2}, 
     2326                                        {16 * 1024, 1}, 
     2327                                }, 
     2328                                .block_erase = erase_block_82802ab, 
     2329                        }, { 
     2330                                .eraseblocks = { 
     2331                                        {64 * 1024, 4}, 
     2332                                }, 
     2333                                .block_erase = NULL, /* TODO: Implement. */ 
     2334                        }, 
     2335                }, 
     2336                .printlock      = NULL, /* TODO */ 
     2337                .unlock         = NULL, /* unlock_82802ab() not correct(?) */ 
     2338                .write          = write_82802ab, 
     2339                .read           = read_memmapped, 
     2340                .voltage        = {3000, 3600}, 
     2341        }, 
     2342 
     2343        { 
    23082344                .vendor         = "Bright", 
    23092345                .name           = "BM29F040", 
  • trunk/flashchips.h

    r1425 r1434  
    185185#define ATMEL_AT49F002N         0x07    /* for AT49F002(N)  */ 
    186186#define ATMEL_AT49F002NT                0x08    /* for AT49F002(N)T */ 
     187#define ATMEL_AT49LH002         0xE9 
    187188 
    188189/* Bright Microelectronics has the same manufacturer ID as Hyundai... */ 
Note: See TracChangeset for help on using the changeset viewer.