musicpal.c (940d5b132fab085bd8ec2bcfa5c1dd119785b217) | musicpal.c (ce14710f4fdfca32123d7efd3ddcbee984ef0ae5) |
---|---|
1/* 2 * Marvell MV88W8618 / Freecom MusicPal emulation. 3 * 4 * Copyright (c) 2008 Jan Kiszka 5 * 6 * This code is licensed under the GNU GPL v2. 7 * 8 * Contributions after 2012-01-13 are licensed under the terms of the --- 1623 unchanged lines hidden (view full) --- 1632 /* 1633 * The original U-Boot accesses the flash at 0xFE000000 instead of 1634 * 0xFF800000 (if there is 8 MB flash). So remap flash access if the 1635 * image is smaller than 32 MB. 1636 */ 1637#ifdef TARGET_WORDS_BIGENDIAN 1638 pflash_cfi02_register(0x100000000ULL - MP_FLASH_SIZE_MAX, 1639 "musicpal.flash", flash_size, | 1/* 2 * Marvell MV88W8618 / Freecom MusicPal emulation. 3 * 4 * Copyright (c) 2008 Jan Kiszka 5 * 6 * This code is licensed under the GNU GPL v2. 7 * 8 * Contributions after 2012-01-13 are licensed under the terms of the --- 1623 unchanged lines hidden (view full) --- 1632 /* 1633 * The original U-Boot accesses the flash at 0xFE000000 instead of 1634 * 0xFF800000 (if there is 8 MB flash). So remap flash access if the 1635 * image is smaller than 32 MB. 1636 */ 1637#ifdef TARGET_WORDS_BIGENDIAN 1638 pflash_cfi02_register(0x100000000ULL - MP_FLASH_SIZE_MAX, 1639 "musicpal.flash", flash_size, |
1640 blk, 0x10000, (flash_size + 0xffff) >> 16, | 1640 blk, 0x10000, |
1641 MP_FLASH_SIZE_MAX / flash_size, 1642 2, 0x00BF, 0x236D, 0x0000, 0x0000, 1643 0x5555, 0x2AAA, 1); 1644#else 1645 pflash_cfi02_register(0x100000000ULL - MP_FLASH_SIZE_MAX, 1646 "musicpal.flash", flash_size, | 1641 MP_FLASH_SIZE_MAX / flash_size, 1642 2, 0x00BF, 0x236D, 0x0000, 0x0000, 1643 0x5555, 0x2AAA, 1); 1644#else 1645 pflash_cfi02_register(0x100000000ULL - MP_FLASH_SIZE_MAX, 1646 "musicpal.flash", flash_size, |
1647 blk, 0x10000, (flash_size + 0xffff) >> 16, | 1647 blk, 0x10000, |
1648 MP_FLASH_SIZE_MAX / flash_size, 1649 2, 0x00BF, 0x236D, 0x0000, 0x0000, 1650 0x5555, 0x2AAA, 0); 1651#endif 1652 1653 } 1654 sysbus_create_simple(TYPE_MV88W8618_FLASHCFG, MP_FLASHCFG_BASE, NULL); 1655 --- 91 unchanged lines hidden --- | 1648 MP_FLASH_SIZE_MAX / flash_size, 1649 2, 0x00BF, 0x236D, 0x0000, 0x0000, 1650 0x5555, 0x2AAA, 0); 1651#endif 1652 1653 } 1654 sysbus_create_simple(TYPE_MV88W8618_FLASHCFG, MP_FLASHCFG_BASE, NULL); 1655 --- 91 unchanged lines hidden --- |