diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-29 19:23:55 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-29 19:23:55 +0000 |
commit | 5f9fc5ad7efe2840d3170775768fb85686d94869 (patch) | |
tree | 894d04b33056b936c6f0e09c6387c7e58bc7825c /hw/musicpal.c | |
parent | 53b67b3052f39b049bc7c79ae1ce132c90098c6c (diff) |
Compile pflash_cfi02 only once
Push TARGET_WORDS_BIGENDIAN dependency to board level.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/musicpal.c')
-rw-r--r-- | hw/musicpal.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hw/musicpal.c b/hw/musicpal.c index 7fc9fb37cb..ebd933e2f5 100644 --- a/hw/musicpal.c +++ b/hw/musicpal.c @@ -1558,12 +1558,22 @@ static void musicpal_init(ram_addr_t ram_size, * 0xFF800000 (if there is 8 MB flash). So remap flash access if the * image is smaller than 32 MB. */ +#ifdef TARGET_WORDS_BIGENDIAN pflash_cfi02_register(0-MP_FLASH_SIZE_MAX, qemu_ram_alloc(flash_size), dinfo->bdrv, 0x10000, (flash_size + 0xffff) >> 16, MP_FLASH_SIZE_MAX / flash_size, 2, 0x00BF, 0x236D, 0x0000, 0x0000, - 0x5555, 0x2AAA); + 0x5555, 0x2AAA, 1); +#else + pflash_cfi02_register(0-MP_FLASH_SIZE_MAX, qemu_ram_alloc(flash_size), + dinfo->bdrv, 0x10000, + (flash_size + 0xffff) >> 16, + MP_FLASH_SIZE_MAX / flash_size, + 2, 0x00BF, 0x236D, 0x0000, 0x0000, + 0x5555, 0x2AAA, 0); +#endif + } sysbus_create_simple("mv88w8618_flashcfg", MP_FLASHCFG_BASE, NULL); |