omap1.c (4482e05cbbb7e50e476f6a9500cf0b38913bd939) omap1.c (ba1ba5cca3962a9cc400c713c736b4fb8db1f38e)
1/*
2 * TI OMAP processors emulation.
3 *
4 * Copyright (C) 2006-2008 Andrzej Zaborowski <balrog@zabor.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 or

--- 3836 unchanged lines hidden (view full) ---

3845static int omap_validate_tipb_mpui_addr(struct omap_mpu_state_s *s,
3846 hwaddr addr)
3847{
3848 return range_covers_byte(0xe1010000, 0xe1020004 - 0xe1010000, addr);
3849}
3850
3851struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *system_memory,
3852 unsigned long sdram_size,
1/*
2 * TI OMAP processors emulation.
3 *
4 * Copyright (C) 2006-2008 Andrzej Zaborowski <balrog@zabor.org>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 or

--- 3836 unchanged lines hidden (view full) ---

3845static int omap_validate_tipb_mpui_addr(struct omap_mpu_state_s *s,
3846 hwaddr addr)
3847{
3848 return range_covers_byte(0xe1010000, 0xe1020004 - 0xe1010000, addr);
3849}
3850
3851struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *system_memory,
3852 unsigned long sdram_size,
3853 const char *core)
3853 const char *cpu_type)
3854{
3855 int i;
3856 struct omap_mpu_state_s *s = g_new0(struct omap_mpu_state_s, 1);
3857 qemu_irq dma_irqs[6];
3858 DriveInfo *dinfo;
3859 SysBusDevice *busdev;
3860
3854{
3855 int i;
3856 struct omap_mpu_state_s *s = g_new0(struct omap_mpu_state_s, 1);
3857 qemu_irq dma_irqs[6];
3858 DriveInfo *dinfo;
3859 SysBusDevice *busdev;
3860
3861 if (!core)
3862 core = "ti925t";
3863
3864 /* Core */
3865 s->mpu_model = omap310;
3861 /* Core */
3862 s->mpu_model = omap310;
3866 s->cpu = ARM_CPU(cpu_generic_init(TYPE_ARM_CPU, core));
3863 s->cpu = ARM_CPU(cpu_create(cpu_type));
3867 s->sdram_size = sdram_size;
3868 s->sram_size = OMAP15XX_SRAM_SIZE;
3869
3870 s->wakeup = qemu_allocate_irq(omap_mpu_wakeup, s, 0);
3871
3872 /* Clocks */
3873 omap_clk_init(s);
3874

--- 209 unchanged lines hidden ---
3864 s->sdram_size = sdram_size;
3865 s->sram_size = OMAP15XX_SRAM_SIZE;
3866
3867 s->wakeup = qemu_allocate_irq(omap_mpu_wakeup, s, 0);
3868
3869 /* Clocks */
3870 omap_clk_init(s);
3871

--- 209 unchanged lines hidden ---