[4219] Emulate address wrap in CFI02 chips mapping (Jan Kiszka).
Revision: 4219
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4219 Author: balrog Date: 2008-04-16 23:45:36 +0000 (Wed, 16 Apr 2008)
Log Message:
-----------
Emulate address wrap in CFI02 chips mapping (Jan Kiszka).
Modified Paths:
--------------
trunk/hw/flash.h
trunk/hw/pflash_cfi02.c
trunk/hw/ppc405_boards.cModified: trunk/hw/flash.h
===================================================================
hw/flash.h +1 -1
@@ -11,7 +11,7 @@/* pflash_cfi02.c */ pflash_t *pflash_cfi02_register (target_phys_addr_t base,ram_addr_t off,BlockDriverState *bs,uint32_t sector_len, -int nb_blocs,int width, +int nb_blocs,int nb_mappings,int width,uint16_t id0,uint16_t id1,uint16_t id2,uint16_t id3,uint16_t unlock_addr0,uint16_t unlock_addr1);
Modified: trunk/hw/pflash_cfi02.c
===================================================================
hw/pflash_cfi02.c +32 -18
136 lines not on this page · raw message
Modified: trunk/hw/ppc405_boards.c
===================================================================
hw/ppc405_boards.c +6 -6
@@ -235,8 +235,8 @@ bdrv_get_device_name(drives_table[index].bdrv), fl_sectors);#endif pflash_cfi02_register ((uint32_t )(-bios_size), bios_offset, - drives_table[index].bdrv,65536 , fl_sectors,2 , -0x0001 ,0x22DA ,0x0000 ,0x0000 ,0x555 ,0x2AA ); + drives_table[index].bdrv,65536 , fl_sectors,1 , +2 ,0x0001 ,0x22DA ,0x0000 ,0x0000 ,0x555 ,0x2AA ); fl_idx++; } else#endif
@@ -552,8 +552,8 @@ bdrv_get_device_name(drives_table[index].bdrv), fl_sectors);#endif pflash_cfi02_register ((uint32_t )(-bios_size), bios_offset, - drives_table[index].bdrv,65536 , fl_sectors,4 , -0x0001 ,0x22DA ,0x0000 ,0x0000 ,0x555 ,0x2AA ); + drives_table[index].bdrv,65536 , fl_sectors,1 , +4 ,0x0001 ,0x22DA ,0x0000 ,0x0000 ,0x555 ,0x2AA ); fl_idx++; } else#endif
@@ -588,8 +588,8 @@ bdrv_get_device_name(drives_table[index].bdrv));#endif pflash_cfi02_register (0xfc000000 , bios_offset, - drives_table[index].bdrv,65536 , fl_sectors,4 , -0x0001 ,0x22DA ,0x0000 ,0x0000 ,0x555 ,0x2AA ); + drives_table[index].bdrv,65536 , fl_sectors,1 , +4 ,0x0001 ,0x22DA ,0x0000 ,0x0000 ,0x555 ,0x2AA ); fl_idx++; }/* Register CLPD & LCD display */