arm-devs queue
Subsystems (2)
Usual arm-devs pullreq; this contains some minor exynos fixes and the iMX31 model. Please pull.
thanks
-- PMM
The following changes since commit 71ea2e016131a9fcde6f1ffd3e0e34a64c21f593:
bsd-user: fix build (2012-06-28 20:28:36 +0000)
are available in the git repository at:
git://git.linaro.org/people/pmaydell/qemu-arm.git arm-devs.for-upstream
Evgeny Voevodin (2):
hw/exynos4210_pwm.c: Fix STOP status in tick handler. hw/exynos4210.c: Fix misleading initialization of IROM mirror
Oleg Ogurtsov (1):
Exynos4: add RTC device
Peter Chubb (5):
i.MX: UART support
i.MX31: Clock Control Module
i.MX31: Timers
i.MX31: Interrupt Controller
i.MX31: KZM-ARM11-01 evaluation board
Peter Maydell (1):
hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t
Stanislav Vorobiov (1):
ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.
MAINTAINERS | 6 + hw/arm/Makefile.objs | 3 + hw/cadence_gem.c | 4 +- hw/exynos4210.c | 10 +- hw/exynos4210_mct.c | 4 - hw/exynos4210_pwm.c | 2 +- hw/exynos4210_rtc.c | 595 +++++++++++++++++++++++++++++++++++++++++++ hw/imx.h | 34 +++ hw/imx_avic.c | 408 +++++++++++++++++++++++++++++ hw/imx_ccm.c | 321 +++++++++++++++++++++++ hw/imx_serial.c | 467 ++++++++++++++++++++++++++++++++++ hw/imx_timer.c | 689 ++++++++++++++++++++++++++++++++++++++++++++++++++ hw/kzm.c | 154 +++++++++++ 13 files changed, 2689 insertions(+), 8 deletions(-) create mode 100644 hw/exynos4210_rtc.c create mode 100644 hw/imx.h create mode 100644 hw/imx_avic.c create mode 100644 hw/imx_ccm.c create mode 100644 hw/imx_serial.c create mode 100644 hw/imx_timer.c create mode 100644 hw/kzm.c
PATCH 1/10 ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.
From: Stanislav Vorobiov <[email protected]>
After some long period of time Linux kernel hanged due to ptimer_get_count may return 0 before timer interrupt occurs, thus, causing FRC to jump back in time
--- hw/exynos4210_mct.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
hw/exynos4210_mct.c +0 -4
@@ -376,10 +376,6 @@ static uint64_t exynos4210_gfrc_get_count(Exynos4210MCTGT *s) {uint64_t count =0 ; count =ptimer_get_count (s->ptimer_frc); -if (!count) { -/* Timer event was generated and s->reg.cnt holds adequate value */ -return s->reg.cnt; - } count = s->count - count;return s->reg.cnt + count; }
Signature · 1 line
1.7.1
PATCH 2/10 hw/exynos4210_pwm.c: Fix STOP status in tick handler.
In reply to Peter MaydellFrom: Evgeny Voevodin <[email protected]>
START/STOP bit was not cleaned correctly.
--- hw/exynos4210_pwm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/exynos4210_pwm.c +1 -1
@@ -200,7 +200,7 @@ static void exynos4210_pwm_tick(void *opaque)ptimer_run (p->timer[id].ptimer,1 ); }else {/* stop timer, set status to STOP, see Basic Timer Operation */ - p->reg_tcon = ~TCON_TIMER_START (id); + p->reg_tcon &= ~TCON_TIMER_START (id);ptimer_stop (p->timer[id].ptimer); } }
Signature · 1 line
1.7.1
PATCH 3/10 hw/exynos4210.c: Fix misleading initialization of IROM mirror
In reply to Peter MaydellFrom: Evgeny Voevodin <[email protected]>
We want to mirror whole IROM and should pass zero instead of EXYNOS4210_IROM_BASE_ADDR (though it equals to zero too) since memory_region_init_alias takes an offset within an original region as an argument.
--- hw/exynos4210.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/exynos4210.c +1 -1
@@ -216,7 +216,7 @@ Exynos4210State *exynos4210_init(MemoryRegion *system_mem,/* mirror of iROM */ memory_region_init_alias (&s->irom_alias_mem,"exynos4210.irom_alias" , &s->irom_mem, -EXYNOS4210_IROM_BASE_ADDR , +0 ,EXYNOS4210_IROM_SIZE );memory_region_set_readonly (&s->irom_alias_mem, true); memory_region_add_subregion(system_mem, EXYNOS4210_IROM_MIRROR_BASE_ADDR,
Signature · 1 line
1.7.1
PATCH 4/10 Exynos4: add RTC device
In reply to Peter MaydellFrom: Oleg Ogurtsov <[email protected]>
--- hw/arm/Makefile.objs | 1 + hw/exynos4210.c | 8 + hw/exynos4210_rtc.c | 595 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 604 insertions(+), 0 deletions(-) create mode 100644 hw/exynos4210_rtc.c
hw/arm/Makefile.objs +1 -0
@@ -11,6 +11,7 @@ obj-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o obj-y += exynos4210_gic.o exynos4210_combiner.o exynos4210.o obj-y += exynos4_boards.o exynos4210_uart.o exynos4210_pwm.o obj-y += exynos4210_pmu.o exynos4210_mct.o exynos4210_fimd.o +obj-y += exynos4210_rtc.o obj-y += arm_l2x0.o obj-y += arm_mptimer.o a15mpcore.o obj-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
hw/exynos4210.c +8 -0
@@ -33,6 +33,9 @@/* PWM */ #define EXYNOS4210_PWM_BASE_ADDR 0x139D0000 +/* RTC */ +#define EXYNOS4210_RTC_BASE_ADDR 0x10070000 +/* MCT */ #define EXYNOS4210_MCT_BASE_ADDR 0x10050000
@@ -258,6 +261,11 @@ Exynos4210State *exynos4210_init(MemoryRegion *system_mem, s->irq_table[exynos4210_get_irq (22 ,3 )], s->irq_table[exynos4210_get_irq (22 ,4 )], NULL); +/* RTC */ +sysbus_create_varargs ("exynos4210.rtc" ,EXYNOS4210_RTC_BASE_ADDR , + s->irq_table[exynos4210_get_irq (23 ,0 )], + s->irq_table[exynos4210_get_irq (23 ,1 )], +NULL );/* Multi Core Timer */ dev =qdev_create (NULL ,"exynos4210.mct" );
hw/exynos4210_rtc.c new file +595 -0
595 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 5/10 i.MX: UART support
In reply to Peter MaydellFrom: Peter Chubb <[email protected]>
Implement the Freescale i.MX UART. This uart is used in a variety of SoCs, including some by Motorola, as well as in the Freescale i.MX series.
This patch gives only a `bare-bones' implementation, enough to run Linux or OKL4, but that's about it.
--- hw/arm/Makefile.objs | 1 + hw/imx.h | 16 ++ hw/imx_serial.c | 467 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 484 insertions(+), 0 deletions(-) create mode 100644 hw/imx.h create mode 100644 hw/imx_serial.c
hw/arm/Makefile.objs +1 -0
@@ -35,6 +35,7 @@ obj-y += framebuffer.o obj-y += vexpress.o obj-y += strongarm.o obj-y += collie.o +obj-y += imx_serial.o obj-y += pl041.o lm4549.o obj-$(CONFIG_FDT) += ../device_tree.o
hw/imx.h new file +16 -0
@@ -0,0 +1,16 @@ +/* +* i.MX31 emulation +* +* Copyright (C) 2012 Peter Chubb +* NICTA +* +* This code is released under the GPL, version 2.0 or later +* See the file `../COPYING' for details. +*/ + +#ifndef IMX_H +#define IMX_H + +void imx_serial_create (int uart,const target_phys_addr_t addr,qemu_irq irq); + +#endif /* IMX_H */
hw/imx_serial.c new file +467 -0
467 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 6/10 i.MX31: Clock Control Module
In reply to Peter MaydellFrom: Peter Chubb <[email protected]>
For Linux to be able to work out how fast its clocks are going, so that timer ticks come approximately at the right time, it needs to be able to query the clock control module (CCM).
This is the start of a CCM implementation. It currently knows only about the MCU, HSP and IPG clocks --- i.e., the ones used to feed the periodic and general purpose timers.
--- hw/arm/Makefile.objs | 2 +- hw/imx.h | 10 ++ hw/imx_ccm.c | 321 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 332 insertions(+), 1 deletions(-) create mode 100644 hw/imx_ccm.c
hw/arm/Makefile.objs +1 -1
@@ -35,7 +35,7 @@ obj-y += framebuffer.o obj-y += vexpress.o obj-y += strongarm.o obj-y += collie.o -obj-y += imx_serial.o +obj-y += imx_serial.o imx_ccm.o obj-y += pl041.o lm4549.o obj-$(CONFIG_FDT) += ../device_tree.o
hw/imx.h +10 -0
@@ -13,4 +13,14 @@void imx_serial_create (int uart,const target_phys_addr_t addr,qemu_irq irq); +typedef enum { +NOCLK , +MCU , +HSP , +IPG , + CLK_32k +}IMXClk ; + +uint32_t imx_clock_frequency (DeviceState *s,IMXClk clock); +#endif /* IMX_H */
hw/imx_ccm.c new file +321 -0
321 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 7/10 i.MX31: Timers
In reply to Peter MaydellFrom: Peter Chubb <[email protected]>
Implement the timers on the Freescale i.MX31 SoC.
This is not a complete implementation, but gives enough for Linux to boot and run. In particular external triggers, which are not useful under QEMU, are not implemented.
--- hw/arm/Makefile.objs | 2 +- hw/imx.h | 8 + hw/imx_timer.c | 689 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 698 insertions(+), 1 deletions(-) create mode 100644 hw/imx_timer.c
hw/arm/Makefile.objs +1 -1
@@ -35,7 +35,7 @@ obj-y += framebuffer.o obj-y += vexpress.o obj-y += strongarm.o obj-y += collie.o -obj-y += imx_serial.o imx_ccm.o +obj-y += imx_serial.o imx_ccm.o imx_timer.o obj-y += pl041.o lm4549.o obj-$(CONFIG_FDT) += ../device_tree.o
hw/imx.h +8 -0
@@ -23,4 +23,12 @@ typedef enum {uint32_t imx_clock_frequency (DeviceState *s,IMXClk clock); +void imx_timerp_create (const target_phys_addr_t addr, +qemu_irq irq, +DeviceState *ccm); +void imx_timerg_create (const target_phys_addr_t addr, +qemu_irq irq, +DeviceState *ccm); + +#endif /* IMX_H */
hw/imx_timer.c new file +689 -0
689 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 8/10 i.MX31: Interrupt Controller
In reply to Peter MaydellFrom: Peter Chubb <[email protected]>
Implement the Freescale i.MX31 advanced vectored interrupt controller, at least to the extent it is used by Linux 3.x
Vectors are not implemented.
--- hw/arm/Makefile.objs | 2 +- hw/imx_avic.c | 408 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 409 insertions(+), 1 deletions(-) create mode 100644 hw/imx_avic.c
hw/arm/Makefile.objs +1 -1
@@ -35,7 +35,7 @@ obj-y += framebuffer.o obj-y += vexpress.o obj-y += strongarm.o obj-y += collie.o -obj-y += imx_serial.o imx_ccm.o imx_timer.o +obj-y += imx_serial.o imx_ccm.o imx_timer.o imx_avic.o obj-y += pl041.o lm4549.o obj-$(CONFIG_FDT) += ../device_tree.o
hw/imx_avic.c new file +408 -0
408 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 9/10 i.MX31: KZM-ARM11-01 evaluation board
In reply to Peter MaydellFrom: Peter Chubb <[email protected]>
Board support for Kyoto Micro's KZM-ARM11-01, an evaluation board built around the Freescale i.MX31.
--- MAINTAINERS | 6 ++ hw/arm/Makefile.objs | 1 + hw/kzm.c | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 161 insertions(+), 0 deletions(-) create mode 100644 hw/kzm.c
MAINTAINERS +6 -0
@@ -207,6 +207,12 @@ M: [email protected] S: Orphan F: hw/gumstix.c +i.MX31 +M: Peter Chubb <[email protected]> +S: Odd fixes +F: hw/imx* +F: hw/kzm.c + Integrator CP M: Paul Brook <[email protected]> M: Peter Maydell <[email protected]>
hw/arm/Makefile.objs +1 -0
@@ -36,6 +36,7 @@ obj-y += vexpress.o obj-y += strongarm.o obj-y += collie.o obj-y += imx_serial.o imx_ccm.o imx_timer.o imx_avic.o +obj-y += kzm.o obj-y += pl041.o lm4549.o obj-$(CONFIG_FDT) += ../device_tree.o
hw/kzm.c new file +154 -0
154 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 10/10 hw/cadence_gem: Make rx_desc_addr and tx_desc_addr uint32_t
In reply to Peter MaydellMake the state fields rx_desc_addr and tx_desc_addr uint32_t; this matches the VMStateDescription, and also conforms to how hardware works: the registers don't magically become larger if the device is attached to a CPU with a larger physical address size. It also fixes a compile failure if the target_phys_addr_t type is changed to 64 bits.
--- hw/cadence_gem.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
hw/cadence_gem.c +2 -2
@@ -339,8 +339,8 @@ typedef struct {uint8_t phy_loop;/* Are we in phy loopback? */ /* The current DMA descriptor pointers */ -target_phys_addr_t rx_desc_addr; -target_phys_addr_t tx_desc_addr; +uint32_t rx_desc_addr; +uint32_t tx_desc_addr; } GemState;
Signature · 1 line
1.7.1
Quoted 2 lines · Peter Maydell
Usual arm-devs pullreq; this contains some minor exynos fixes and the iMX31 model. Please pull.
Thanks, pulled.
Quoted 53 lines
thanks
-- PMMThe following changes since commit
71ea2e016131a9fcde6f1ffd3e0e34a64c21f593:bsd-user: fix build (2012-06-28 20:28:36 +0000)
are available in the git repository at:
git://git.linaro.org/people/pmaydell/qemu-arm.gitarm-devs.for-upstreamEvgeny Voevodin (2):
hw/exynos4210_pwm.c: Fix STOP status in tick handler.hw/exynos4210.c: Fix misleading initialization of IROM mirrorOleg Ogurtsov (1):
Exynos4: add RTC devicePeter Chubb (5):
i.MX: UART support
i.MX31: Clock Control Module
i.MX31: Timers
i.MX31: Interrupt Controller
i.MX31: KZM-ARM11-01 evaluation boardPeter Maydell (1):
hw/cadence_gem: Makerx_desc_addrandtx_desc_addruint32_tStanislav Vorobiov (1):
ARM:hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.MAINTAINERS | 6 + hw/arm/Makefile.objs | 3 + hw/cadence_gem.c | 4 +- hw/exynos4210.c | 10 +- hw/exynos4210_mct.c | 4 - hw/exynos4210_pwm.c | 2 +- hw/exynos4210_rtc.c | 595 +++++++++++++++++++++++++++++++++++++++++++ hw/imx.h | 34 +++ hw/imx_avic.c | 408 +++++++++++++++++++++++++++++ hw/imx_ccm.c | 321 +++++++++++++++++++++++ hw/imx_serial.c | 467 ++++++++++++++++++++++++++++++++++ hw/imx_timer.c | 689 ++++++++++++++++++++++++++++++++++++++++++++++++++ hw/kzm.c | 154 +++++++++++ 13 files changed, 2689 insertions(+), 8 deletions(-) create mode 100644 hw/exynos4210_rtc.c create mode 100644 hw/imx.h create mode 100644 hw/imx_avic.c create mode 100644 hw/imx_ccm.c create mode 100644 hw/imx_serial.c create mode 100644 hw/imx_timer.c create mode 100644 hw/kzm.c