Skip to contentSkip to conversation

i.MX: Add the i.MX6UL SOC and a reference board.

PATCH Applied Jean-Christophe Dubois 3 participants 6 messages Jul 30, 2018 – Oct 26, 2018 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

v3 cover i.MX: Add the i.MX6UL SOC and a reference board.

This series adds the i.MX6UL SOC from NXP/Freescale and the reference evaluation board.

This series was tested by booting linux 4.18 (built using imx_v6_v7_defconfig) on the emulated board (with the appropriate device tree).

Jean-Christophe Dubois (3):
i.MX6UL: Add i.MX6UL specific CCM device i.MX6UL: Add i.MX6UL SOC
i.MX6UL: Add Freescale i.MX6 UltraLite 14x14 EVK Board

 default-configs/arm-softmmu.mak |   1 +
 hw/arm/Makefile.objs            |   1 +
 hw/arm/fsl-imx6ul.c             | 617 ++++++++++++++++++++++
 hw/arm/mcimx6ul-evk.c           |  85 +++
 hw/misc/Makefile.objs           |   1 +
 hw/misc/imx6ul_ccm.c            | 890 ++++++++++++++++++++++++++++++++
 hw/misc/trace-events            |   7 +
 include/hw/arm/fsl-imx6ul.h     | 339 ++++++++++++
 include/hw/misc/imx6ul_ccm.h    | 226 ++++++++
 9 files changed, 2167 insertions(+)
 create mode 100644 hw/arm/fsl-imx6ul.c
 create mode 100644 hw/arm/mcimx6ul-evk.c
 create mode 100644 hw/misc/imx6ul_ccm.c
 create mode 100644 include/hw/arm/fsl-imx6ul.h
 create mode 100644 include/hw/misc/imx6ul_ccm.h
Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/3 i.MX6UL: Add i.MX6UL specific CCM device

---

Changes in V3:
* None

Changes in V2:
* move all CCM "debug" to the "trace" framework for i.MX6UL
* remove unecessary breaks
* prevent g_assert_not_reached triggered by guest.
* Add assert to help static analyzer.
* use FIELD_EX32 from hw/registerfields.h instead of defining my own.

 hw/misc/Makefile.objs        |   1 +
 hw/misc/imx6ul_ccm.c         | 890 +++++++++++++++++++++++++++++++++++
 hw/misc/trace-events         |   7 +
 include/hw/misc/imx6ul_ccm.h | 226 +++++++++
 4 files changed, 1124 insertions(+)
 create mode 100644 hw/misc/imx6ul_ccm.c
 create mode 100644 include/hw/misc/imx6ul_ccm.h
hw/misc/Makefile.objs +1 -0
index 9350900845..51d27b3af1 100644
@@ -36,6 +36,7 @@ obj-$(CONFIG_IMX) += imx_ccm.o
 obj-$(CONFIG_IMX) += imx31_ccm.o
 obj-$(CONFIG_IMX) += imx25_ccm.o
 obj-$(CONFIG_IMX) += imx6_ccm.o
+obj-$(CONFIG_IMX) += imx6ul_ccm.o
 obj-$(CONFIG_IMX) += imx6_src.o
 obj-$(CONFIG_IMX) += imx7_ccm.o
 obj-$(CONFIG_IMX) += imx2_wdt.o
hw/misc/imx6ul_ccm.c new file +890 -0

890 lines not on this page · raw message

hw/misc/trace-events +7 -0
index c956e1419b..1341508b33 100644
@@ -109,3 +109,10 @@ iotkit_secctl_s_write(uint32_t offset, uint64_t data, unsigned size) "IoTKit Sec
 iotkit_secctl_ns_read(uint32_t offset, uint64_t data, unsigned size) "IoTKit SecCtl NS regs read: offset 0x%x data 0x%" PRIx64 " size %u"
 iotkit_secctl_ns_write(uint32_t offset, uint64_t data, unsigned size) "IoTKit SecCtl NS regs write: offset 0x%x data 0x%" PRIx64 " size %u"
 iotkit_secctl_reset(void) "IoTKit SecCtl: reset"
+
+# hw/misc/imx6ul_ccm.c
+ccm_entry(void) "\n"
+ccm_freq(uint32_t freq) "freq = %d\n"
+ccm_clock_freq(uint32_t clock, uint32_t freq) "(Clock = %d) = %d\n"
+ccm_read_reg(const char *reg_name, uint32_t value) "reg[%s] <= 0x%" PRIx32 "\n"
+ccm_write_reg(const char *reg_name, uint32_t value) "reg[%s] => 0x%" PRIx32 "\n"
include/hw/misc/imx6ul_ccm.h new file +226 -0

226 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw

PATCH v3 2/3 i.MX6UL: Add i.MX6UL SOC

In reply to Jean-Christophe Dubois

---

Changes in V3:
* Fix coding style issue with indent.

Changes in V2:
* use object_initialize_child instead of several funcions
* use sysbus_init_child_obj instead for several functions

 default-configs/arm-softmmu.mak |   1 +
 hw/arm/Makefile.objs            |   1 +
 hw/arm/fsl-imx6ul.c             | 617 ++++++++++++++++++++++++++++++++
 include/hw/arm/fsl-imx6ul.h     | 339 ++++++++++++++++++
 4 files changed, 958 insertions(+)
 create mode 100644 hw/arm/fsl-imx6ul.c
 create mode 100644 include/hw/arm/fsl-imx6ul.h
default-configs/arm-softmmu.mak +1 -0
index 834d45cfaf..311584fd74 100644
@@ -133,6 +133,7 @@ CONFIG_FSL_IMX6=y
 CONFIG_FSL_IMX31=y
 CONFIG_FSL_IMX25=y
 CONFIG_FSL_IMX7=y
+CONFIG_FSL_IMX6UL=y
 
 CONFIG_IMX_I2C=y
 
hw/arm/Makefile.objs +1 -0
index d51fcecaf2..e419ad040b 100644
@@ -36,3 +36,4 @@ obj-$(CONFIG_MSF2) += msf2-soc.o msf2-som.o
 obj-$(CONFIG_IOTKIT) += iotkit.o
 obj-$(CONFIG_FSL_IMX7) += fsl-imx7.o mcimx7d-sabre.o
 obj-$(CONFIG_ARM_SMMUV3) += smmu-common.o smmuv3.o
+obj-$(CONFIG_FSL_IMX6UL) += fsl-imx6ul.o
hw/arm/fsl-imx6ul.c new file +617 -0

617 lines not on this page · raw message

include/hw/arm/fsl-imx6ul.h new file +339 -0

339 lines not on this page · raw message

Signature · 1 line
2.17.1
#3 lore raw

PATCH v3 3/3 i.MX6UL: Add Freescale i.MX6 UltraLite 14x14 EVK Board

In reply to Jean-Christophe Dubois

Tested by booting linux 4.18 (built using imx_v6_v7_defconfig) on the emulated board.

---

Changes in V3:
* None

Changes in V2:
* use object_initialize_child instead of several funcions

 hw/arm/Makefile.objs  |  2 +-
 hw/arm/mcimx6ul-evk.c | 85 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+), 1 deletion(-)
 create mode 100644 hw/arm/mcimx6ul-evk.c
hw/arm/Makefile.objs +1 -1
index e419ad040b..2902f47b4c 100644
@@ -36,4 +36,4 @@ obj-$(CONFIG_MSF2) += msf2-soc.o msf2-som.o
 obj-$(CONFIG_IOTKIT) += iotkit.o
 obj-$(CONFIG_FSL_IMX7) += fsl-imx7.o mcimx7d-sabre.o
 obj-$(CONFIG_ARM_SMMUV3) += smmu-common.o smmuv3.o
-obj-$(CONFIG_FSL_IMX6UL) += fsl-imx6ul.o
+obj-$(CONFIG_FSL_IMX6UL) += fsl-imx6ul.o mcimx6ul-evk.o
hw/arm/mcimx6ul-evk.c new file +85 -0

85 lines not on this page · raw message

Signature · 1 line
2.17.1
#4 lore raw
In reply to Jean-Christophe Dubois
Quoted 10 lines · Jean-Christophe Dubois

This series adds the i.MX6UL SOC from NXP/Freescale and the reference evaluation board.

This series was tested by booting linux 4.18 (built using imx_v6_v7_defconfig) on the emulated board (with the appropriate device tree).

Jean-Christophe Dubois (3):
i.MX6UL: Add i.MX6UL specific CCM device i.MX6UL: Add i.MX6UL SOC
i.MX6UL: Add Freescale i.MX6 UltraLite 14x14 EVK Board

Applied to target-arm.next, thanks (I fixed up a few comment typos like "the the").

-- PMM

#5 lore raw
In reply to Jean-Christophe Dubois
Quoted 11 lines · Jean-Christophe Dubois

This series adds the i.MX6UL SOC from NXP/Freescale and the reference evaluation board.

This series was tested by booting linux 4.18 (built using imx_v6_v7_defconfig) on the emulated board (with the appropriate device tree).

Jean-Christophe Dubois (3):
i.MX6UL: Add i.MX6UL specific CCM device i.MX6UL: Add i.MX6UL SOC
i.MX6UL: Add Freescale i.MX6 UltraLite 14x14 EVK Board

Quoted 15 lines
 default-configs/arm-softmmu.mak |   1 +
 hw/arm/Makefile.objs            |   1 +
 hw/arm/fsl-imx6ul.c             | 617 ++++++++++++++++++++++
 hw/arm/mcimx6ul-evk.c           |  85 +++
 hw/misc/Makefile.objs           |   1 +
 hw/misc/imx6ul_ccm.c            | 890 ++++++++++++++++++++++++++++++++
 hw/misc/trace-events            |   7 +
 include/hw/arm/fsl-imx6ul.h     | 339 ++++++++++++
 include/hw/misc/imx6ul_ccm.h    | 226 ++++++++
 9 files changed, 2167 insertions(+)
 create mode 100644 hw/arm/fsl-imx6ul.c
 create mode 100644 hw/arm/mcimx6ul-evk.c
 create mode 100644 hw/misc/imx6ul_ccm.c
 create mode 100644 include/hw/arm/fsl-imx6ul.h
 create mode 100644 include/hw/misc/imx6ul_ccm.h

Can we please also get an entry to the MAINTAINERS file for this new board / files?

Thanks,
Thomas