Skip to content
Snippets Groups Projects
  1. Mar 17, 2017
    • Jagan Teki's avatar
      imx6: isiotmx6ul: Add I2C support · e411e67e
      Jagan Teki authored
      
      Add I2C support for Engicam Is.IoT MX6UL module.
      
      isiotmx6ul> i2c bus
      Bus 0:  i2c@021a0000
      Bus 1:  i2c@021a4000
      isiotmx6ul> i2c dev 0
      Setting bus to 0
      isiotmx6ul> i2c dev
      Current bus is 0
      isiotmx6ul> i2c speed 100000
      Setting bus speed to 100000 Hz
      isiotmx6ul> i2c probe
      Valid chip addresses: 00 2C 44 78
      isiotmx6ul> i2c md 2C 0xff
      00ff: 00 00 00 00 0f f0 01 64 ff ff 00 00 00 00 00 00    .......d........
      
      Cc: Matteo Lisi <matteo.lisi@engicam.com>
      Cc: Michael Trimarchi <michael@amarulasolutions.com>
      Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
      Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
      e411e67e
    • Jagan Teki's avatar
      arm: dts: imx6ul-isiot: Add I2C nodes · 08a480b4
      Jagan Teki authored
      
      Add I2C nodes for Engicam Is.IoT MX6UL module.
      
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Matteo Lisi <matteo.lisi@engicam.com>
      Cc: Michael Trimarchi <michael@amarulasolutions.com>
      Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
      08a480b4
    • Jagan Teki's avatar
      arm: imx6ul: Add Engicam Is.IoT MX6UL Starter Kit initial support · e9dfa1e1
      Jagan Teki authored
      
      Boot from MMC:
      -------------
      U-Boot SPL 2017.01-rc2-gba3c151-dirty (Jan 02 2017 - 16:59:33)
      Trying to boot from MMC1
      
      U-Boot 2017.01-rc2-gba3c151-dirty (Jan 02 2017 - 16:59:33 +0100)
      
      CPU:   Freescale i.MX6UL rev1.1 528 MHz (running at 396 MHz)
      CPU:   Industrial temperature grade (-40C to 105C) at 33C
      Reset cause: POR
      Model: Engicam Is.IoT MX6UL Starterkit
      DRAM:  512 MiB
      MMC:   FSL_SDHC: 0
      *** Warning - bad CRC, using default environment
      
      In:    serial
      Out:   serial
      Err:   serial
      Net:   CPU Net Initialization Failed
      No ethernet found.
      Hit any key to stop autoboot:  0
      isiotmx6ul>
      
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Matteo Lisi <matteo.lisi@engicam.com>
      Cc: Michael Trimarchi <michael@amarulasolutions.com>
      Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
      e9dfa1e1
    • Jagan Teki's avatar
      configs: imx6: Don't define USDHC2_BASE_ADDR · 85392ded
      Jagan Teki authored
      
      USDHC base address will assigned by SPL using fsl_esdhc_initialize
      and u-boot with devicetree, hence no remove base address assignment
      in config files.
      
      Cc: Matteo Lisi <matteo.lisi@engicam.com>
      Cc: Michael Trimarchi <michael@amarulasolutions.com>
      Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
      Signed-off-by: default avatarJagan Teki <jagan@amarulasolutions.com>
      85392ded
    • Peng Fan's avatar
      imx: mx7ulp_evk: enable mmc/regulator support · 04cb0d3e
      Peng Fan authored
      
      Enable MMC support.
      The fsl sdhc driver needs regulator to enable power, so enable
      regulator support.
      
      And bootcmd and more env.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      04cb0d3e
    • Peng Fan's avatar
      imx: imx7ulp: add EVK board support · 77fa0457
      Peng Fan authored
      
      Add EVK board support.
      Add the evk dts file.
      
      LOG:
      U-Boot 2017.03-rc2-00038-gab86c1d (Feb 22 2017 - 15:59:58 +0800)
      
      CPU:   Freescale i.MX7ULP rev1.0 at 500 MHz
      Reset cause: POR
      Boot mode: Dual boot
      Model: NXP i.MX7ULP EVK
      DRAM:  1 GiB
      MMC:   FSL_SDHC: 0
      In:    serial@402D0000
      Out:   serial@402D0000
      Err:   serial@402D0000
      Net:   Net Initialization Skipped
      No ethernet found.
      Hit any key to stop autoboot:  0
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      77fa0457
    • Peng Fan's avatar
      mmc: fsl_esdhc: support i.MX7ULP · b60f1457
      Peng Fan authored
      
      Add compatible property for i.MX7ULP.
      Add a weak init_usdhc_clk function, i.MX7ULP use this to init the clock.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Reviewed-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      b60f1457
    • Peng Fan's avatar
      arm: dts: add i.MX7ULP dtsi file · fa2f20d3
      Peng Fan authored
      
      Add i.MX7ULP dtsi file.
      Add clock and pinfun header files.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      fa2f20d3
    • Peng Fan's avatar
      mx7ulp: Add HAB boot support · 27117b20
      Peng Fan authored
      
      Add CAAM clock functions, SEC_CONFIG[1] fuse checking, and default CSF
      size for HAB support boot on mx7ulp.
      
      Users need to uncomment the CONFIG_SECURE_BOOT in mx7ulp_evk.h to build
      secure uboot.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      27117b20
    • Peng Fan's avatar
      serial: lpuart: add i.MX7ULP support · 7edf5c45
      Peng Fan authored
      
      Add i.MX7ULP support.
      The buadrate calculation on i.MX7ULP is different,so add a new setbrg
      function for i.MX7ULP.
      Add a enum lpuart_devtype for runtime check for different platforms.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Shaohui Xie <Shaohui.Xie@nxp.com>
      Cc: Alison Wang <b18965@freescale.com>
      7edf5c45
    • Peng Fan's avatar
      serial: lpuart: restructure lpuart driver · c40d612b
      Peng Fan authored
      
      Drop CONFIG_LPUART_32B_REG.
      Move the register structure to a common file include/fsl_lpuart.h
      Define lpuart_serial_platdata structure which includes the reg base and flags.
      For 32Bit register access, use lpuart_read32/lpuart_write32 which handles
      big/little endian.
      For 8Bit register access, still use the orignal code.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      Cc: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Shaohui Xie <Shaohui.Xie@nxp.com>
      Cc: Alison Wang <b18965@freescale.com>
      c40d612b
    • Peng Fan's avatar
      i2c: lpi2c: add lpi2c driver for i.MX7ULP · 7ee3f149
      Peng Fan authored
      
      Add lpi2c driver for i.MX7ULP.
      Need to enable the two options to use this driver:
      CONFIG_DM_I2C=y
      CONFIG_SYS_I2C_IMX_LPI2C=y
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Acked-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Stefano Babic <sbabic@denx.de>
      7ee3f149
    • Peng Fan's avatar
      pinctrl: Add i.MX7ULP pinctrl driver · 4aa9d4d0
      Peng Fan authored
      
      Add i.MX7ULP pinctrl driver.
      Select CONFIG_PINCTRL_IMX7ULP to use this driver.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      4aa9d4d0
    • Ye Li's avatar
      wdog: Add the watchdog driver for MX7ULP. · 253531bb
      Ye Li authored
      
      This driver implements the HW WATCHDOG functions. Which needs
      to set CONFIG_HW_WATCHDOG to use them. This is disabled by default for
      mx7ulp.
      
      Use watchdog for reset cpu. Implement this in the driver.
      Need to define CONFIG_ULP_WATCHDOG to build it.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      253531bb
    • Ye Li's avatar
      mx7ulp: Add iomux pins header file · 8359e556
      Ye Li authored
      
      Add the iomux pins header file from iomux tool team. Change the IOMUXC0 pins
      to add IOMUX_CONFIG_MPORTS flags.
      
      Note: The IOMUXC0 offset provided in this file is from 0xD000, this is not
      aligned with IOMUXC0 base address. We have adjusted the IOMUXC0 base address
      to aligin with it.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      8359e556
    • Peng Fan's avatar
      mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP · 3ca0f0d2
      Peng Fan authored
      
      Update the mxc_ocotp driver to support i.MX7ULP.
      The read/write sequence has some changes due to
      PDN and OUT_STATUS registers added and TIME register is
      removed. Also update the bank size and number.
      
      Add is_mx7ulp macro in sys_proto.h
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      3ca0f0d2
    • Peng Fan's avatar
      gpio: Add Rapid GPIO2P driver for i.MX7ULP · d665eb61
      Peng Fan authored
      
      Add the imx_rgpio2p driver for Rapid GPIO2P controllers on i.MX7ULP.
      Have added all ports on RGPIO2P_0 and RGPIO2P_1.
      
      The configurations CONFIG_IMX_RGPIO2P and CONFIG_DM_GPIO must be set
      to y to enable the drivers.
      
      To use the GPIO function, the IBE and OBE needs to set in IOMUXC.
      We did not set the bits in driver, but leave them to IOMUXC settings
      of the GPIO pins. User should use IMX_GPIO_NR to generate the GPIO number
      for gpio APIs access.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      d665eb61
    • Ye Li's avatar
      imx: mx7ulp: Implement the clock functions for i2c driver · d4dcee22
      Ye Li authored
      
      Implement the i2c clock enable and get function for mx7ulp. These
      functions are required by imx_lpi2c driver.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
      d4dcee22
    • Peng Fan's avatar
      imx: mx7ulp: Add soc level initialization codes and functions · 1b409828
      Peng Fan authored
      
      Implement soc level functions to get cpu rev, reset cause, enable cache,
      etc. We will disable the wdog and init clocks in s_init at very early u-boot
      phase.
      
      Since the we are seeking the way to get chip id for mx7ulp, the get_cpu_rev
      is hard coded to a fixed value. This may change in future.
      
      Reuse some code in imx-common.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      1b409828
    • Peng Fan's avatar
      imx: mx7ulp: Add clock framework and functions · d0f8516d
      Peng Fan authored
      
      Add a clock framework to support SCG1/PCC2/PCC3 for A7 to support get/set
      clock source, divider, clock rate and parent source.
      Users need to include pcc.h to use the APIs to for peripherals clock. Each
      peripheral clock is defined in enum pcc_clk type.
      
      SCG relevants APIs are defined in scg.h which supports clock rate get, PLL/PFD
      enablement and settings, and all SCG clock initialization. User need use enum
      scg_clk to access each clock source.
      
      In clock.c, we initialize necessary clocks at u-boot s_init and implement the
      clock functions used by driver modules to operate clocks dynamically.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      d0f8516d
    • Peng Fan's avatar
      imx: mx7ulp: add iomux driver to support IOMUXC0 and IOMUXC1 · 0cb3d82c
      Peng Fan authored
      
      Add a new driver under ULP directory to support its IOMUXC
      controllers. The ULP has two IOMUXC, the IOMUXC0 is used
      for M4 domain, while IOMUXC1 is for A7. We set IOMUXC1 as
      the default IOMUX in this driver. Any pins in IOMUXC0 needs
      to configure with IOMUX_CONFIG_MPORTS in its mux_mode field.
      
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      0cb3d82c
    • Peng Fan's avatar
      imx: mx7ulp: add registers header file · 7bc1ca39
      Peng Fan authored
      
      Add imx-regs.h for i.MX7ULP registers addresses definitions and some
      registers structures.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      7bc1ca39
    • Peng Fan's avatar
      imx: mx7ulp: Add mx7ulp to Kconfig · e90a08da
      Peng Fan authored
      
      i.MX7ULP is a new series SoC which has different architecture
      from previous i.MX platforms. Create a new cpu folder for it,
      and add it to Kconfig.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarYe Li <ye.li@nxp.com>
      Reviewed-by : Stefano Babic <sbabic@denx.de>
      e90a08da
  2. Mar 15, 2017
Loading