[U-Boot] [PATCH V2 00/23] imx: add i.MX8M support and i.MX8MQ EVK

Peng Fan peng.fan at nxp.com
Mon Dec 4 04:31:13 UTC 2017


This patchset is to add i.MX8M and i.MX8MQ-EVK support

V2:
 The two patches: "power: pmic.h: include dm/ofnode.h" and
                  "power: pmic/regulator allow dm be omited by SPL"
 are still included in the patchset.

 patch 02/23: convert to structure, drop is_boot_from_usb and
	      disconnect_from_usb
 patch 04/23: conver to use structure for the clock driver, removed the
              CCM_xxx macros. Add static for local functons.
	      Add init_usdhc_clk, init_uart_clk and etc to not enable
	      them all at default.
 patch 05/23: Add more commit msg for the sip part.
 patch 08/23: Merge the spl boot device with i.MX7
 patch 12/23: Typo fix and return error fix from Heiko for the SoC related part
 patch 22/23: Use a weak function ddr_init. If patch 23/23 could not be
              accepted at current stage, to make others still be could be
	      compiled.

The patchset depends on
https://patchwork.ozlabs.org/patch/841934/
https://patchwork.ozlabs.org/patch/841958/
to be tested on real hardware.

V1:


patch: "power: pmic.h: include dm/ofnode.h" and
"power: pmic/regulator allow dm be omited by SPL" is previously reviewed
in mailist to not merged. If no issue, you may pick it up.

The board support is a large patch because of the ddr related code.
If it is not good, please first review/pick-up other patches if they
are ok.

Peng Fan (23):
  imx: add i.MX8M into Kconfig
  imx: mx8m: add register definition header file
  imx: mx8m: add pin header file
  imx: mx8m: add clock driver
  imx: add sip function
  imx: boot_mode: add USB_BOOT entry
  power: pmic.h: include dm/ofnode.h
  imx: cpu: update cpu file to support i.MX8M
  imx: spl: implement spl_boot_device for i.MX8M
  imx: add i.MX8MQ SoC Revision and is_mx8m helper
  imx: add pad settings bit definition for i.MX8M
  imx: mx8m: add soc related settings and files
  imx: makefile: compile files for i.MX8M
  misc: ocotp: add i.MX8M support
  mmc: fsl_esdhc: support i.MX8M
  imx: lcdif: include i.MX8M
  gpio: mxc: add i.MX8M support
  net: fec: do not access reserved register for i.MX8M
  net: fec: fix build warnings for 64bits support
  power: pmic/regulator allow dm be omitted by SPL
  imx: imx8mq: add dtsi file
  imx: add i.MX8MQ EVK support
  Add DDR settings

 arch/arm/Kconfig                                   |    8 +
 arch/arm/Makefile                                  |    4 +-
 arch/arm/dts/Makefile                              |    2 +
 arch/arm/dts/fsl-imx8-ca53.dtsi                    |   92 ++
 arch/arm/dts/fsl-imx8mq-evk.dts                    |  424 ++++++++
 arch/arm/dts/fsl-imx8mq.dtsi                       |  425 ++++++++
 arch/arm/include/asm/arch-imx/cpu.h                |    6 +-
 arch/arm/include/asm/arch-mx8m/clock.h             |  657 +++++++++++
 arch/arm/include/asm/arch-mx8m/crm_regs.h          |   10 +
 arch/arm/include/asm/arch-mx8m/ddr_memory_map.h    |  495 +++++++++
 arch/arm/include/asm/arch-mx8m/gpio.h              |   12 +
 arch/arm/include/asm/arch-mx8m/imx-regs.h          |  318 ++++++
 arch/arm/include/asm/arch-mx8m/mx8mq_pins.h        |  623 +++++++++++
 arch/arm/include/asm/arch-mx8m/sys_proto.h         |   18 +
 arch/arm/include/asm/mach-imx/boot_mode.h          |    1 +
 arch/arm/include/asm/mach-imx/iomux-v3.h           |   22 +-
 arch/arm/include/asm/mach-imx/regs-lcdif.h         |   11 +-
 arch/arm/include/asm/mach-imx/sys_proto.h          |    4 +
 arch/arm/mach-imx/Makefile                         |   14 +-
 arch/arm/mach-imx/cpu.c                            |   11 +-
 arch/arm/mach-imx/mx8m/Kconfig                     |   22 +
 arch/arm/mach-imx/mx8m/Makefile                    |    8 +
 arch/arm/mach-imx/mx8m/clock.c                     |  788 ++++++++++++++
 arch/arm/mach-imx/mx8m/clock_slice.c               |  742 +++++++++++++
 arch/arm/mach-imx/mx8m/lowlevel_init.S             |   63 ++
 arch/arm/mach-imx/mx8m/soc.c                       |  539 +++++++++
 arch/arm/mach-imx/sip.c                            |   23 +
 arch/arm/mach-imx/spl.c                            |   10 +-
 board/freescale/mx8mq_evk/Kconfig                  |   12 +
 board/freescale/mx8mq_evk/Makefile                 |   12 +
 board/freescale/mx8mq_evk/README                   |   38 +
 board/freescale/mx8mq_evk/ddr/ddr.h                |   38 +
 board/freescale/mx8mq_evk/ddr/ddr_init.c           |  256 +++++
 board/freescale/mx8mq_evk/ddr/ddrphy_train.c       | 1147 ++++++++++++++++++++
 board/freescale/mx8mq_evk/ddr/helper.c             |  101 ++
 .../mx8mq_evk/ddr/wait_ddrphy_training_complete.c  |   97 ++
 board/freescale/mx8mq_evk/mx8mq_evk.c              |  156 +++
 board/freescale/mx8mq_evk/spl.c                    |  233 ++++
 configs/mx8mq_evk_defconfig                        |   28 +
 drivers/gpio/mxc_gpio.c                            |   22 +-
 drivers/misc/mxc_ocotp.c                           |    7 +
 drivers/mmc/fsl_esdhc.c                            |   12 +-
 drivers/net/fec_mxc.c                              |   78 +-
 drivers/power/pmic/Makefile                        |    4 +-
 drivers/power/regulator/Makefile                   |    2 +-
 include/configs/mx8mq_evk.h                        |  265 +++++
 include/dt-bindings/clock/imx8mq-clock.h           |  612 +++++++++++
 include/dt-bindings/pinctrl/pins-imx8mq.h          |  632 +++++++++++
 include/imx_sip.h                                  |   14 +
 include/power/pmic.h                               |    1 +
 50 files changed, 9058 insertions(+), 61 deletions(-)
 create mode 100644 arch/arm/dts/fsl-imx8-ca53.dtsi
 create mode 100644 arch/arm/dts/fsl-imx8mq-evk.dts
 create mode 100644 arch/arm/dts/fsl-imx8mq.dtsi
 create mode 100644 arch/arm/include/asm/arch-mx8m/clock.h
 create mode 100644 arch/arm/include/asm/arch-mx8m/crm_regs.h
 create mode 100644 arch/arm/include/asm/arch-mx8m/ddr_memory_map.h
 create mode 100644 arch/arm/include/asm/arch-mx8m/gpio.h
 create mode 100644 arch/arm/include/asm/arch-mx8m/imx-regs.h
 create mode 100644 arch/arm/include/asm/arch-mx8m/mx8mq_pins.h
 create mode 100644 arch/arm/include/asm/arch-mx8m/sys_proto.h
 create mode 100644 arch/arm/mach-imx/mx8m/Kconfig
 create mode 100644 arch/arm/mach-imx/mx8m/Makefile
 create mode 100644 arch/arm/mach-imx/mx8m/clock.c
 create mode 100644 arch/arm/mach-imx/mx8m/clock_slice.c
 create mode 100644 arch/arm/mach-imx/mx8m/lowlevel_init.S
 create mode 100644 arch/arm/mach-imx/mx8m/soc.c
 create mode 100644 arch/arm/mach-imx/sip.c
 create mode 100644 board/freescale/mx8mq_evk/Kconfig
 create mode 100644 board/freescale/mx8mq_evk/Makefile
 create mode 100644 board/freescale/mx8mq_evk/README
 create mode 100644 board/freescale/mx8mq_evk/ddr/ddr.h
 create mode 100644 board/freescale/mx8mq_evk/ddr/ddr_init.c
 create mode 100644 board/freescale/mx8mq_evk/ddr/ddrphy_train.c
 create mode 100644 board/freescale/mx8mq_evk/ddr/helper.c
 create mode 100644 board/freescale/mx8mq_evk/ddr/wait_ddrphy_training_complete.c
 create mode 100644 board/freescale/mx8mq_evk/mx8mq_evk.c
 create mode 100644 board/freescale/mx8mq_evk/spl.c
 create mode 100644 configs/mx8mq_evk_defconfig
 create mode 100644 include/configs/mx8mq_evk.h
 create mode 100644 include/dt-bindings/clock/imx8mq-clock.h
 create mode 100644 include/dt-bindings/pinctrl/pins-imx8mq.h
 create mode 100644 include/imx_sip.h

-- 
2.14.1



More information about the U-Boot mailing list