targets/pipistrello: add flash sizes

This commit is contained in:
Zach Smith 2015-05-01 14:41:37 -04:00 committed by Sebastien Bourdeauducq
parent 5e649a6577
commit 1832f27220
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ class BaseSoC(SDRAMSoC):
if not self.integrated_rom_size: if not self.integrated_rom_size:
self.submodules.spiflash = spiflash.SpiFlash(platform.request("spiflash4x"), self.submodules.spiflash = spiflash.SpiFlash(platform.request("spiflash4x"),
dummy=10, div=4) dummy=10, div=4)
self.add_constant("SPIFLASH_PAGE_SIZE", 256)
self.add_constant("SPIFLASH_SECTOR_SIZE", 0x10000)
self.flash_boot_address = 0x180000 self.flash_boot_address = 0x180000
self.register_rom(self.spiflash.bus, 0x1000000) self.register_rom(self.spiflash.bus, 0x1000000)