From: Zach Smith Date: Fri, 1 May 2015 18:41:37 +0000 (-0400) Subject: targets/pipistrello: add flash sizes X-Git-Tag: 24jan2021_ls180~2274 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1832f272206d0751f2f190281d243fb973ca8eae;p=litex.git targets/pipistrello: add flash sizes --- diff --git a/targets/pipistrello.py b/targets/pipistrello.py index cbd958c4..cde9be4c 100644 --- a/targets/pipistrello.py +++ b/targets/pipistrello.py @@ -120,6 +120,8 @@ class BaseSoC(SDRAMSoC): if not self.integrated_rom_size: self.submodules.spiflash = spiflash.SpiFlash(platform.request("spiflash4x"), dummy=10, div=4) + self.add_constant("SPIFLASH_PAGE_SIZE", 256) + self.add_constant("SPIFLASH_SECTOR_SIZE", 0x10000) self.flash_boot_address = 0x180000 self.register_rom(self.spiflash.bus, 0x1000000)