1. 11 9月, 2018 12 次提交
  2. 10 9月, 2018 1 次提交
    • M
      fdt: fix get_next_memory_node() · f8503719
      Marek Vasut 提交于
      The get_next_memory_node() always sets mem to -1 , which is incorrect,
      because then every iteration of memory bank parsing will start from the
      first memory bank instead of the previous one.
      
      On systems with 1 memory bank defined in DT and CONFIG_NR_DRAM_BANKS=4 ,
      like ie. r8a77965-salvator-x , this will result in U-Boot incorrectly
      reporting four identical memory banks with the same memory configuration.
      
      Fix this by setting mem to startoffset value, which restores the behavior
      before the fixed patch was applied.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Jens Wiklander <jens.wiklander@linaro.org>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@konsulko.com>
      Fixes: 452bc121 ("fdt: fix fdtdec_setup_memory_banksize()")
      Tested-by: Michal Simek <michal.simek@xilinx.com> [on ZynqMP}
      f8503719
  3. 07 9月, 2018 1 次提交
  4. 06 9月, 2018 7 次提交
  5. 05 9月, 2018 4 次提交
  6. 04 9月, 2018 15 次提交
    • F
      mx7dsabresd: Add the qspi target to the list of supported defconfigs · c1d1543e
      Fabio Estevam 提交于
      Add an entry for mx7dsabresd_qspi_defconfig to avoid the following
      warnings:
      
      WARNING: no status info for 'mx7dsabresd_qspi'
      WARNING: no maintainers for 'mx7dsabresd_qspi'
      Reported-by: NTom Rini <trini@konsulko.com>
      Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
      c1d1543e
    • S
      imx: missing CONFIG_MII in mx7dsabresd_qspi_defconfig · b8babd80
      Stefano Babic 提交于
      CONFIG_CMD_MII is set without CONFIG_MII, build is broken.
      Signed-off-by: NStefano Babic <sbabic@denx.de>
      b8babd80
    • S
      colibri_imx7_emmc: add Colibri iMX7D 1GB (eMMC) module support · a62c6061
      Stefan Agner 提交于
      This commit adds support for the Toradex Colibri iMX7D 1GB Computer
      on Module. The module is very similar to the Colibri iMX7D 512MB
      but uses eMMC instead of raw NAND. This patch introduces a new
      board specific Kconfig symbol to select between the two flash
      options.
      Signed-off-by: NStefan Agner <stefan.agner@toradex.com>
      a62c6061
    • S
      board: toradex: common: fail gracefully on missing NAND chip · bc53fb19
      Stefan Agner 提交于
      If the NAND chip is missing get_nand_dev_by_index() returns NULL. Fail
      gracefully in this case.
      Signed-off-by: NStefan Agner <stefan.agner@toradex.com>
      bc53fb19
    • A
      imx: mx7: add system suspend/resume support · 57b62025
      Anson Huang 提交于
      This patch adds system suspend/resume support,
      when linux kernel enters deep sleep mode, SoC will go
      into below mode:
      
       - CA7 platform goes into STOP mode;
       - SoC goes into DSM mode;
       - DDR goes into self-refresh mode;
       - CPU0/SCU will be powered down.
      
      When wake up event arrives:
      
       - SoC DSM mdoe exits;
       - CA7 platform exit STOP mode, SCU/CPU0 power up;
       - Invalidate L1 cache;
       - DDR exit self-refresh mode;
       - Do secure monitor mode related initialization;
       - Jump to linux kernel resume entry.
      
      Belwo is the log of 1 iteration of system suspend/resume:
      
      [  338.824862] PM: suspend entry (deep)
      [  338.828853] PM: Syncing filesystems ... done.
      [  338.834433] Freezing user space processes ... (elapsed 0.001 seconds) done.
      [  338.842939] OOM killer disabled.
      [  338.846182] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
      [  338.869717] PM: suspend devices took 0.010 seconds
      [  338.877846] Disabling non-boot CPUs ...
      [  338.960301] Retrying again to check for CPU kill
      [  338.964953] CPU1 killed.
      [  338.968104] Enabling non-boot CPUs ...
      [  338.973598] CPU1 is up
      [  339.267155] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
      [  339.275833] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
      [  339.284158] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
      [  339.385065] PM: resume devices took 0.400 seconds
      [  339.389836] OOM killer enabled.
      [  339.392986] Restarting tasks ... done.
      [  339.398990] PM: suspend exit
      
      The resume entry function has to initialize stack pointer before calling
      C code, otherwise there will be an external abort occur, in additional,
      invalidate L1 cache must be done in secure section as well, so this
      patch also adds assembly code back and keep it as simple as possible.
      Signed-off-by: NAnson Huang <Anson.Huang@nxp.com>
      Acked-by: NStefan Agner <stefan@agner.ch>
      Tested-by: NStefan Agner <stefan@agner.ch>
      57b62025
    • A
      imx: mx7: add gpc initialization for low power mode · b0598378
      Anson Huang 提交于
      Add i.MX7D GPC initialization for low power mode
      support like system suspend/resume from linux kernel:
      
       - Pending IOMUXC IRQ to workaround GPC state machine issue;
       - Mask all GPC interrupts for M4/C0/C1;
       - Configure SCU timing;
       - Configure time slot ack;
       - Configure C0/C1 power up/down timing;
       - Configure wakeup source mechanism;
       - Disable DSM/RBC related settings.
      Signed-off-by: NAnson Huang <Anson.Huang@nxp.com>
      b0598378
    • A
      imx: mx7: psci: improve cpu hotplug flow · 11e52bca
      Anson Huang 提交于
      This patch improves cpu hotplug, previous cpu_off
      implementation is NOT safe, a CPU can NOT power down
      itself in runtime, it will cause system bus hang due
      to pending transaction. So need to use other online
      CPU to kill it when it is ready for killed.
      
      Here use SRC parameter register and a magic number
      of ~0 as handshake for killing a offline CPU,
      when the online CPU checks the psci_affinity_info,
      it will help kill the offline CPU according to
      the magic number stored in SRC parameter register.
      Signed-off-by: NAnson Huang <Anson.Huang@nxp.com>
      11e52bca
    • A
      Cleanup CONFIG_BOOTDELAY on cl-som-imx7 · 41b7b4b9
      Alex Kiernan 提交于
      CONFIG_BOOTDELAY has been migrated to Kconfig, but cl-som-imx7 was
      missed. We can just delete the assignments as the config already has
      the correct value.
      Signed-off-by: NAlex Kiernan <alex.kiernan@gmail.com>
      41b7b4b9
    • M
      watchdog: mx25: use the imx_watchdog driver for mx25 · 69f78cf8
      Martin Kaiser 提交于
      The existing imx_watchdog driver is compatible with mx25 chipsets.
      Add a WDOG1_BASE_ADDR define for the base address and enable the driver
      in watchdog's Makefile.
      
      To use the driver, a board must define CONFIG_IMX_WATCHDOG and
      CONFIG_HW_WATCHDOG.
      
      This fixes an issue when booting an mx25 chip via usb/serial. In this
      case, the boot rom will always enable the watchdog. If u-boot is running
      in interactive mode and the watchdog is not serviced, the system is
      rebooted when the watchdog expires.
      Signed-off-by: NMartin Kaiser <martin@kaiser.cx>
      Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
      69f78cf8
    • Y
      imx: imx6ul_evk: Enable DM driver for iMX6UL EVK u-boot · 1a8c0199
      Ye Li 提交于
      Convert the codes and configurations to enable DM drivers in u-boot for
      modules: i2c, PMIC, regulator, USB, Ethernet, SD/MMC, GPIO and QSPI
      
      This patch does not change SPL, so it still uses non-DM driver for
      UART, GPIO and SD/MMC.
      Signed-off-by: NYe Li <ye.li@nxp.com>
      1a8c0199
    • Y
      dts: imx6ul_evk: Add DTS files for 14x14 EVK and 9x9 EVK boards · 25baafc4
      Ye Li 提交于
      Add the board DTS files for 14x14 EVK and 9x9 EVK. They are necessary
      for converting to use u-boot DM driver.
      
      Two -u-boot.dtsi are added to modify compatible string of SPI flash
      device to "spi-flash".
      Signed-off-by: NYe Li <ye.li@nxp.com>
      25baafc4
    • Y
      dts: imx6ul: Update alias to support DM · 9e1e6f6f
      Ye Li 提交于
      Add spi0 alias for qspi for enabling DM SPI.
      Change usb alias for usbotg1 and usbotg2 for enabling DM USB
      Signed-off-by: NYe Li <ye.li@nxp.com>
      9e1e6f6f
    • Y
      imx: imx7d-sdb: Add DM QSPI support · 3b823350
      Ye Li 提交于
      On iMX7D SabreSD board, the QSPI has pins conflict with EPDC (default).
      To use QSPI, users have to rework the board (de-populate R388-R391, R396-R399
      populate R392-R395, R299, R300). So we add new DTS file and new defconfig
      dedicated for QSPI.
      
      Other changes to support the DM QSPI:
       - Add QSPI node and alias spi0.
       - Modify spi4 (spi-gpio) node and add alias spi5 for it to avoid req
         conflict
       - Add EPDC node in imx7d.dtsi and disable it in imx7d-sdb-qspi.dts to
         align with kernel and also present the conflict.
       - Add -u-boot.dtsi to modify compatible string of mx25l51245g@0 to
         "spi-flash"
       - Remove iomux settings of qspi in board codes which is not needed
         for DM driver.
      Signed-off-by: NYe Li <ye.li@nxp.com>
      3b823350
    • Y
      imx: imx6sx-sabreauto: convert to use DM QSPI driver · 0925ee21
      Ye Li 提交于
      To support DM QSPI driver:
       - Add -u-boot.dtsi to modify n25q256a@0 and n25q256a@1 compatible string
         to "spi-flash" and add "num-cs" property.
       - Enable DM SPI and DM SPI FLASH configurations
       - Remove iomux settings of qspi1 in board codes which is not needed
         for DM driver.
      Signed-off-by: NYe Li <ye.li@nxp.com>
      0925ee21
    • Y
      imx: imx6sx-sdb: Enable DM QSPI driver · 536c5c7a
      Ye Li 提交于
      To support DM QSPI driver
       - Add spi0 and spi1 alias for qspi1 and qspi2.
       - Add -u-boot.dtsi to modify n25q256a@0 and n25q256a@1 compatible string
         to "spi-flash" and add "num-cs" property.
       - Enable DM SPI/QSPI relavent configurations
       - Remove iomux settings of qspi2 in board codes which is not needed
         for DM driver.
       - Add sf default settings. So running "sf probe" can detect the flash
      Signed-off-by: NYe Li <ye.li@nxp.com>
      536c5c7a