src/emu/machine/intelfsh.c
| r13012 | r13013 | |
| 47 | 47 | // device type definition |
| 48 | 48 | const device_type INTEL_28F016S5 = &device_creator<intel_28f016s5_device>; |
| 49 | 49 | const device_type SHARP_LH28F016S = &device_creator<sharp_lh28f016s_device>; |
| 50 | const device_type AMD_29F080 = &device_creator<amd_29f080_device>; |
| 50 | 51 | const device_type FUJITSU_29F016A = &device_creator<fujitsu_29f016a_device>; |
| 51 | 52 | const device_type FUJITSU_29DL16X = &device_creator<fujitsu_29dl16x_device>; |
| 52 | 53 | const device_type INTEL_E28F400 = &device_creator<intel_e28f400_device>; |
| r13012 | r13013 | |
| 127 | 128 | m_device_id = 0xaa; |
| 128 | 129 | map = ADDRESS_MAP_NAME( memory_map8_16Mb ); |
| 129 | 130 | break; |
| 131 | case FLASH_AMD_29F080: |
| 132 | m_bits = 8; |
| 133 | m_size = 0x100000; |
| 134 | m_maker_id = 0x01; |
| 135 | m_device_id = 0xd5; |
| 136 | map = ADDRESS_MAP_NAME( memory_map8_8Mb ); |
| 137 | break; |
| 130 | 138 | case FLASH_SHARP_LH28F400: |
| 131 | 139 | case FLASH_INTEL_E28F400: |
| 132 | 140 | m_bits = 16; |
| r13012 | r13013 | |
| 222 | 230 | sharp_lh28f016s_device::sharp_lh28f016s_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 223 | 231 | : intelfsh8_device(mconfig, SHARP_LH28F016S, "Sharp LH28F016S Flash", tag, owner, clock, FLASH_SHARP_LH28F016S) { } |
| 224 | 232 | |
| 233 | amd_29f080_device::amd_29f080_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 234 | : intelfsh8_device(mconfig, AMD_29F080, "AMD 29F080 Flash", tag, owner, clock, FLASH_AMD_29F080) { } |
| 235 | |
| 225 | 236 | intel_e28f008sa_device::intel_e28f008sa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 226 | 237 | : intelfsh8_device(mconfig, INTEL_E28F008SA, "Intel E28F008SA Flash", tag, owner, clock, FLASH_INTEL_E28F008SA) { } |
| 227 | 238 | |
| r13012 | r13013 | |
| 532 | 543 | { |
| 533 | 544 | m_flash_mode = FM_READAMDID2; |
| 534 | 545 | } |
| 546 | else if( ( address & 0x7ff ) == 0x2aa && ( data & 0xff ) == 0x55 && m_type == FLASH_AMD_29F080 ) |
| 547 | { |
| 548 | m_flash_mode = FM_READAMDID2; |
| 549 | } |
| 535 | 550 | else |
| 536 | 551 | { |
| 537 | 552 | logerror( "unexpected %08x=%02x in FM_READAMDID1\n", address, data & 0xff ); |
| r13012 | r13013 | |
| 591 | 606 | { |
| 592 | 607 | m_flash_mode = FM_BANKSELECT; |
| 593 | 608 | } |
| 609 | |
| 610 | // for AMD 29F080 address bits A11-A19 don't care |
| 611 | else if(( address & 0x7ff ) == 0x555 && ( data & 0xff ) == 0x80 && m_type == FLASH_AMD_29F080 ) |
| 612 | { |
| 613 | m_flash_mode = FM_ERASEAMD1; |
| 614 | } |
| 615 | else if(( address & 0x7ff ) == 0x555 && ( data & 0xff ) == 0x90 && m_type == FLASH_AMD_29F080 ) |
| 616 | { |
| 617 | m_flash_mode = FM_READAMDID3; |
| 618 | } |
| 619 | else if(( address & 0x7ff ) == 0x555 && ( data & 0xff ) == 0xa0 && m_type == FLASH_AMD_29F080 ) |
| 620 | { |
| 621 | m_flash_mode = FM_BYTEPROGRAM; |
| 622 | } |
| 623 | else if(( address & 0x7ff ) == 0x555 && ( data & 0xff ) == 0xf0 && m_type == FLASH_AMD_29F080 ) |
| 624 | { |
| 625 | m_flash_mode = FM_NORMAL; |
| 626 | } |
| 594 | 627 | else |
| 595 | 628 | { |
| 596 | 629 | logerror( "unexpected %08x=%02x in FM_READAMDID2\n", address, data & 0xff ); |
src/emu/machine/intelfsh.h
| r13012 | r13013 | |
| 16 | 16 | #define MCFG_SHARP_LH28F016S_ADD(_tag) \ |
| 17 | 17 | MCFG_DEVICE_ADD(_tag, SHARP_LH28F016S, 0) |
| 18 | 18 | |
| 19 | #define MCFG_AMD_29F080_ADD(_tag) \ |
| 20 | MCFG_DEVICE_ADD(_tag, AMD_29F080, 0) |
| 21 | |
| 19 | 22 | #define MCFG_FUJITSU_29F016A_ADD(_tag) \ |
| 20 | 23 | MCFG_DEVICE_ADD(_tag, FUJITSU_29F016A, 0) |
| 21 | 24 | |
| r13012 | r13013 | |
| 68 | 71 | FLASH_INTEL_28F016S5 = 0x0800, |
| 69 | 72 | FLASH_FUJITSU_29F016A, |
| 70 | 73 | FLASH_FUJITSU_29DL16X, |
| 74 | FLASH_AMD_29F080, |
| 71 | 75 | FLASH_SHARP_LH28F016S, |
| 72 | 76 | FLASH_INTEL_E28F008SA, |
| 73 | 77 | FLASH_MACRONIX_29L001MC, |
| r13012 | r13013 | |
| 178 | 182 | fujitsu_29dl16x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 179 | 183 | }; |
| 180 | 184 | |
| 185 | class amd_29f080_device : public intelfsh8_device |
| 186 | { |
| 187 | public: |
| 188 | amd_29f080_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 189 | }; |
| 190 | |
| 181 | 191 | class sharp_lh28f016s_device : public intelfsh8_device |
| 182 | 192 | { |
| 183 | 193 | public: |
| r13012 | r13013 | |
| 239 | 249 | // device type definition |
| 240 | 250 | extern const device_type INTEL_28F016S5; |
| 241 | 251 | extern const device_type SHARP_LH28F016S; |
| 252 | extern const device_type AMD_29F080; |
| 242 | 253 | extern const device_type FUJITSU_29F016A; |
| 243 | 254 | extern const device_type FUJITSU_29DL16X; |
| 244 | 255 | extern const device_type INTEL_E28F400; |
src/mess/drivers/avigo.c
| r13012 | r13013 | |
| 25 | 25 | - 128k ram |
| 26 | 26 | - stylus pen |
| 27 | 27 | - touch-pad screen |
| 28 | |
| 29 | Flash: |
| 30 | The following flash ID are checked by Avigo OS, if the returned |
| 31 | ID is different the PDA doesn't boot. |
| 32 | |
| 33 | Maker ID Device ID Description |
| 34 | 0xb0 0x21 Sharp LH28F004 |
| 35 | 0x89 0xa6 Sharp LH28F008 |
| 36 | 0x89 0xaa Sharp LH28F016 |
| 37 | 0xb0 0x88 Sharp LH28F032 |
| 38 | 0x01 0xa4 AMD AM29F040 |
| 39 | 0x01 0xd5 AMD AM29F080 |
| 40 | 0x01 0xad AMD AM29F016 |
| 41 | |
| 28 | 42 | TODO: |
| 29 | 43 | Dissassemble the rom a bit and find out exactly |
| 30 | 44 | how memory paging works! |
| r13012 | r13013 | |
| 939 | 953 | MCFG_RP5C01_ADD("rtc", XTAL_32_768kHz, rtc_intf) |
| 940 | 954 | |
| 941 | 955 | /* flash ROMs */ |
| 942 | | MCFG_INTEL_E28F008SA_ADD("flash0") |
| 943 | | MCFG_INTEL_E28F008SA_ADD("flash1") |
| 944 | | MCFG_INTEL_E28F008SA_ADD("flash2") |
| 956 | MCFG_AMD_29F080_ADD("flash0") |
| 957 | MCFG_AMD_29F080_ADD("flash1") |
| 958 | MCFG_AMD_29F080_ADD("flash2") |
| 945 | 959 | |
| 946 | 960 | /* internal ram */ |
| 947 | 961 | MCFG_RAM_ADD(RAM_TAG) |