Previous 15994 Revisions Next

r13013 Saturday 8th October, 2011 at 20:04:09 UTC by Sandro Ronco
intelfsh: Added emulation of AMD 29F080 (also sent to MAMEDev), this allow Avigo to boot.
[src/emu/machine]intelfsh.c intelfsh.h
[src/mess/drivers]avigo.c

src/emu/machine/intelfsh.c
r13012r13013
4747// device type definition
4848const device_type INTEL_28F016S5 = &device_creator<intel_28f016s5_device>;
4949const device_type SHARP_LH28F016S = &device_creator<sharp_lh28f016s_device>;
50const device_type AMD_29F080 = &device_creator<amd_29f080_device>;
5051const device_type FUJITSU_29F016A = &device_creator<fujitsu_29f016a_device>;
5152const device_type FUJITSU_29DL16X = &device_creator<fujitsu_29dl16x_device>;
5253const device_type INTEL_E28F400 = &device_creator<intel_e28f400_device>;
r13012r13013
127128      m_device_id = 0xaa;
128129      map = ADDRESS_MAP_NAME( memory_map8_16Mb );
129130      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;
130138   case FLASH_SHARP_LH28F400:
131139   case FLASH_INTEL_E28F400:
132140      m_bits = 16;
r13012r13013
222230sharp_lh28f016s_device::sharp_lh28f016s_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
223231   : intelfsh8_device(mconfig, SHARP_LH28F016S, "Sharp LH28F016S Flash", tag, owner, clock, FLASH_SHARP_LH28F016S) { }
224232
233amd_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
225236intel_e28f008sa_device::intel_e28f008sa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
226237   : intelfsh8_device(mconfig, INTEL_E28F008SA, "Intel E28F008SA Flash", tag, owner, clock, FLASH_INTEL_E28F008SA) { }
227238
r13012r13013
532543      {
533544         m_flash_mode = FM_READAMDID2;
534545      }
546      else if( ( address & 0x7ff ) == 0x2aa && ( data & 0xff ) == 0x55 && m_type == FLASH_AMD_29F080 )
547      {
548         m_flash_mode = FM_READAMDID2;
549      }
535550      else
536551      {
537552         logerror( "unexpected %08x=%02x in FM_READAMDID1\n", address, data & 0xff );
r13012r13013
591606      {
592607         m_flash_mode = FM_BANKSELECT;
593608      }
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      }
594627      else
595628      {
596629         logerror( "unexpected %08x=%02x in FM_READAMDID2\n", address, data & 0xff );
src/emu/machine/intelfsh.h
r13012r13013
1616#define MCFG_SHARP_LH28F016S_ADD(_tag) \
1717   MCFG_DEVICE_ADD(_tag, SHARP_LH28F016S, 0)
1818
19#define MCFG_AMD_29F080_ADD(_tag) \
20   MCFG_DEVICE_ADD(_tag, AMD_29F080, 0)
21
1922#define MCFG_FUJITSU_29F016A_ADD(_tag) \
2023   MCFG_DEVICE_ADD(_tag, FUJITSU_29F016A, 0)
2124
r13012r13013
6871      FLASH_INTEL_28F016S5 = 0x0800,
6972      FLASH_FUJITSU_29F016A,
7073      FLASH_FUJITSU_29DL16X,
74      FLASH_AMD_29F080,
7175      FLASH_SHARP_LH28F016S,
7276      FLASH_INTEL_E28F008SA,
7377      FLASH_MACRONIX_29L001MC,
r13012r13013
178182   fujitsu_29dl16x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
179183};
180184
185class amd_29f080_device : public intelfsh8_device
186{
187public:
188   amd_29f080_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
189};
190
181191class sharp_lh28f016s_device : public intelfsh8_device
182192{
183193public:
r13012r13013
239249// device type definition
240250extern const device_type INTEL_28F016S5;
241251extern const device_type SHARP_LH28F016S;
252extern const device_type AMD_29F080;
242253extern const device_type FUJITSU_29F016A;
243254extern const device_type FUJITSU_29DL16X;
244255extern const device_type INTEL_E28F400;
src/mess/drivers/avigo.c
r13012r13013
2525            - 128k ram
2626            - stylus pen
2727            - 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
2842        TODO:
2943                Dissassemble the rom a bit and find out exactly
3044                how memory paging works!
r13012r13013
939953   MCFG_RP5C01_ADD("rtc", XTAL_32_768kHz, rtc_intf)
940954
941955   /* 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")
945959
946960   /* internal ram */
947961   MCFG_RAM_ADD(RAM_TAG)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team