ARM: Add a fake flash controller so that unmodified linux can boot

With this change an unmodified Linux kernel can boot in M5.
This commit is contained in:
Ali Saidi 2010-10-01 16:04:02 -05:00
parent 9792bbc324
commit f0c0b8a7f6

View file

@ -101,6 +101,7 @@ class RealViewPBX(RealView):
timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff, warn_access="1")
flash_fake = IsaFake(pio_addr=0x40000000, pio_size=0x4000000)
dmac_fake = AmbaFake(pio_addr=0x10030000)
uart1_fake = AmbaFake(pio_addr=0x1000a000)
uart2_fake = AmbaFake(pio_addr=0x1000b000)
@ -153,6 +154,7 @@ class RealViewPBX(RealView):
self.kmi0_fake.pio = bus.port
self.kmi1_fake.pio = bus.port
self.rtc_fake.pio = bus.port
self.flash_fake.pio = bus.port
class RealViewEB(RealView):
uart = Pl011(pio_addr=0x10009000, int_num=44)