aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-02-18 16:58:30 +0000
committerPeter Maydell <peter.maydell@linaro.org>2015-05-03 21:30:50 +0100
commitcb3defe8b9149cfe432b5cb4236f42724b0a9272 (patch)
treec498dc27eec174a76bb803a2e55a21c2ea147b5f /include
parent94e4bdbb9b623d32db574140a1e178e9871f8426 (diff)
add hw/omap3_boot.c file
omap3 bootrom emulation small changes in boot rom code - update comments and include a note for r12=1 smc call - leave the cpu in SYS mode when jumping to bootloader code Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com> Changes by: Loïc Minier <loic.minier@linaro.org> Fix use of p after free() in omap3_mmc_fat_boot() Fix logic test to use && in omap3_mmc_fat_boot Changes by: Peter Maydell <peter.maydell@linaro.org> Remove code which was erroneously overriding the detection of a CHSETUP header in an OMAP boot image loaded from an MMC card. Fix raw mode boot (try sectors 0 and 256, use right offsets) Changes by: Juha: - do not map boot rom at address zero - make use of the arm cp15 vector base address register - run boot rom emulation from omap3 instead of board Changes by: Peter Chubb <peter.chubb@nicta.com.au> - bugfixes to make FAT12/FAT16 work
Diffstat (limited to 'include')
-rw-r--r--include/hw/arm/omap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/arm/omap.h b/include/hw/arm/omap.h
index 08e034750..b2bc36853 100644
--- a/include/hw/arm/omap.h
+++ b/include/hw/arm/omap.h
@@ -1127,6 +1127,8 @@ struct omap_mpu_state_s {
struct omap_dss_s *dss;
struct omap_eac_s *eac;
+ MemoryRegion bootrom;
+ int bootrom_initialized;
};
/* omap1.c */
@@ -1139,6 +1141,10 @@ struct omap_mpu_state_s *omap2420_mpu_init(MemoryRegion *sysmem,
unsigned long sdram_size,
const char *core);
+/* omap3_boot.c */
+void omap3_boot_rom_init(struct omap_mpu_state_s *s);
+void omap3_boot_rom_emu(struct omap_mpu_state_s *s);
+
#define OMAP_FMT_plx "%#08" HWADDR_PRIx
uint32_t omap_badwidth_read8(void *opaque, hwaddr addr);