timer: add EFM32 timer
PATCH 1/3 timer: add EFM32 timer
Add support for the TIMER block on the EFM32GG.
--- hw/timer/Makefile.objs | 1 + hw/timer/efm32-timer.c | 204 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 205 insertions(+) create mode 100644 hw/timer/efm32-timer.c
hw/timer/Makefile.objs +1 -0
@@ -18,6 +18,7 @@ common-obj-$(CONFIG_IMX) += imx_gpt.o common-obj-$(CONFIG_LM32) += lm32_timer.o common-obj-$(CONFIG_MILKYMIST) += milkymist-sysctl.o +obj-$(CONFIG_EFM32) += efm32-timer.o obj-$(CONFIG_EXYNOS4) += exynos4210_mct.o obj-$(CONFIG_EXYNOS4) += exynos4210_pwm.o obj-$(CONFIG_EXYNOS4) += exynos4210_rtc.o
hw/timer/efm32-timer.c new file +204 -0
204 lines not on this page · raw message
Signature · 1 line
2.0.0.rc0
PATCH 2/3 char: add EFM32 UART
Add support for the UART block on the EFM32GG.
--- hw/char/Makefile.objs | 1 + hw/char/efm32-uart.c | 217 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 218 insertions(+) create mode 100644 hw/char/efm32-uart.c
hw/char/Makefile.objs +1 -0
@@ -9,6 +9,7 @@ common-obj-$(CONFIG_XILINX) += xilinx_uartlite.o common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o common-obj-$(CONFIG_CADENCE) += cadence_uart.o +obj-$(CONFIG_EFM32) += efm32-uart.o obj-$(CONFIG_EXYNOS4) += exynos4210_uart.o obj-$(CONFIG_COLDFIRE) += mcf_uart.o obj-$(CONFIG_OMAP) += omap_uart.o
hw/char/efm32-uart.c new file +217 -0
217 lines not on this page · raw message
Signature · 1 line
2.0.0.rc0
PATCH 3/3 arm: add EFM32GG-DK3750 support
In reply to Rabin VincentAdd support for the EFM32GG990 MCU and its development board EFM32GG-DK3750. This is a Cortex-M3 platform supported by mainline Linux.
--- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs | 1 + hw/arm/efm32.c | 71 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 hw/arm/efm32.c
default-configs/arm-softmmu.mak +1 -0
@@ -57,6 +57,7 @@ CONFIG_PL310=y CONFIG_PL330=y CONFIG_CADENCE=y CONFIG_XGMAC=y +CONFIG_EFM32=y CONFIG_EXYNOS4=y CONFIG_PXA2XX=y CONFIG_BITBANG_I2C=y
hw/arm/Makefile.objs +1 -0
@@ -6,5 +6,6 @@ obj-y += tosa.o versatilepb.o vexpress.o virt.o xilinx_zynq.o z2.o obj-y += armv7m.o exynos4210.o pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o obj-$(CONFIG_DIGIC) += digic.o +obj-$(CONFIG_EFM32) += efm32.o obj-y += omap1.o omap2.o strongarm.o obj-$(CONFIG_ALLWINNER_A10) += allwinner-a10.o cubieboard.o
hw/arm/efm32.c new file +71 -0
71 lines not on this page · raw message
Signature · 1 line
2.0.0.rc0
Re: [Qemu-devel] [PATCH 3/3] arm: add EFM32GG-DK3750 support
Hi,
Am 04.05.2014 17:52, schrieb Rabin Vincent:
Quoted 11 lines
Add support for the EFM32GG990 MCU and its development board EFM32GG-DK3750. This is a Cortex-M3 platform supported by mainline Linux.
Signed-off-by Rabin Vincent <[email protected]>--- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs | 1 + hw/arm/efm32.c | 71 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 hw/arm/efm32.c
Apart from a missing cover letter to reply to, the preceding two devices look good to me - this machine however is copying the wrong code. For one, no semicolon after machine_init() please ;) and more importantly please follow the example set by Canon A1000 and Allwinner A10 for SoC vs. machine modeling. Not only does it help clarify what is actually on the board and what on the chip and facilitates reuse by future EFM32 based boards, it also helps with the technical conversion to QOM realize and the QOM composition tree.
Thanks,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg