aboutsummaryrefslogtreecommitdiff
path: root/hw/omap.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-07-04 11:18:44 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-07-25 13:33:28 +0100
commit3f774ca9699870879fa53aa26d484d3a39343fa0 (patch)
treef87b4fcba18a99ba91c785cd40d4e334b46e6c5d /hw/omap.h
parentacc0feaa4d96a1ed76aac6a24bc397a082717fea (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 'hw/omap.h')
-rw-r--r--hw/omap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/omap.h b/hw/omap.h
index bd902ea3a5..2371e1d4e3 100644
--- a/hw/omap.h
+++ b/hw/omap.h
@@ -1126,6 +1126,8 @@ struct omap_mpu_state_s {
struct omap_dss_s *dss;
struct omap_eac_s *eac;
+ MemoryRegion bootrom;
+ int bootrom_initialized;
};
/* omap1.c */
@@ -1138,6 +1140,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" TARGET_PRIxPHYS
uint32_t omap_badwidth_read8(void *opaque, target_phys_addr_t addr);