1. 12 11月, 2018 1 次提交
  2. 08 11月, 2018 1 次提交
  3. 25 10月, 2018 1 次提交
    • P
      imx: mkimage: avoid stop CI when required files not exists · d7961159
      Peng Fan 提交于
      Introduce a new script to check whether file exists and
      use that check in Makefile to avoid break CI system.
      
      The script return 1 when the required files not exists, return 0
      when files exists. The script will ignore check to u-boot-dtb.bin,
      because if there is something wrong to generate u-boot-dtb.bin,
      there must be some code error.
      Signed-off-by: NPeng Fan <peng.fan@nxp.com>
      d7961159
  4. 22 10月, 2018 13 次提交
  5. 16 10月, 2018 3 次提交
  6. 11 10月, 2018 1 次提交
    • P
      arm: remove prototype for get_timer_masked · 6180ea7e
      Patrick Delaunay 提交于
      The interruption support had be removed for ARM architecture and
      the function get_timer_masked() is no more used except in some
      the timer.c files.
      
      This patch clean each timer.c which implement this function and
      remove the associated prototype in u-boot-arm.h
      
      For timer.c, I don't verify if the weak version of get_timer
      (in lib/time.c) can be used
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      6180ea7e
  7. 10 10月, 2018 1 次提交
  8. 14 9月, 2018 1 次提交
  9. 04 9月, 2018 3 次提交
    • 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
  10. 01 8月, 2018 1 次提交
  11. 30 7月, 2018 4 次提交
  12. 23 7月, 2018 10 次提交
    • A
      imx: i.mx6q: imx6q_logic: Migrate to SPL and enable SDP · bbbb50f9
      Adam Ford 提交于
      Since the vast majority of i.MX6 boards are migrating to SPL,
      this patch converts im6q_logic to SPL and enables the SDP for
      loading SPL and u-boot.img over USB.  The Falcon mode only
      supports NAND flash as of now due to limited space/RAM, but
      all i.MX6D/Q SOM's from Logic PD have internal NAND from which
      to boot.
      Signed-off-by: NAdam Ford <aford173@gmail.com>
      bbbb50f9
    • F
      pico-imx7d: Add SPL support · d5b7177f
      Fabio Estevam 提交于
      Convert pico-imx7d to SPL support.
      
      There are two variants of pico-imx7d SOMs:
      - One with 512MB of RAM
      - One with 1GB of RAM
      
      The 512MB module contains two Hynix H5TC2G63GFR-PBA.
      The 1GB module contains two Hynix H5TC4G63GFR-PBA.
      
      The RAM size is determined in runtime by reading GPIO1_12.
      
      While at it, also add USB Serial Download mode support as it
      is very helpful for loading SPL and u-boot.img via imx_usb_loader.
      Signed-off-by: NFabio Estevam <festevam@gmail.com>
      Signed-off-by: NOtavio Salvador <otavio@ossystems.com.br>
      d5b7177f
    • S
      imx: mx7: psci: implement MIGRATE_INFO_TYPE · f97df688
      Stefan Agner 提交于
      Implement MIGRATE_INFO_TYPE. This informs Linux that no migration
      for the trusted operating system is necessary:
        [    0.000000] psci: Trusted OS migration not required
      Signed-off-by: NStefan Agner <stefan.agner@toradex.com>
      f97df688
    • S
      imx: mx7: psci: support CPU0 on/off · 28a5af11
      Stefan Agner 提交于
      So far psci_cpu_(on|off) only worked for CPU1. Allow to control
      CPU0 too. This allows to run the Linux PSCI checker successfully:
        [    2.213447] psci_checker: PSCI checker started using 2 CPUs
        [    2.219107] psci_checker: Starting hotplug tests
        [    2.223859] psci_checker: Trying to turn off and on again all CPUs
        [    2.267191] IRQ21 no longer affine to CPU0
        [    2.293266] Retrying again to check for CPU kill
        [    2.302269] CPU0 killed.
        [    2.311648] psci_checker: Trying to turn off and on again group 0 (CPUs 0-1)
        [    2.354354] IRQ21 no longer affine to CPU0
        [    2.383222] Retrying again to check for CPU kill
        [    2.392148] CPU0 killed.
        [    2.398063] psci_checker: Hotplug tests passed OK
        [    2.402910] psci_checker: Starting suspend tests (10 cycles per state)
        [    2.410019] psci_checker: cpuidle not available on CPU 0, ignoring
        [    2.416452] psci_checker: cpuidle not available on CPU 1, ignoring
        [    2.422757] psci_checker: Could not start suspend tests on any CPU
        [    2.429370] psci_checker: PSCI checker completed
      Signed-off-by: NStefan Agner <stefan.agner@toradex.com>
      28a5af11
    • S
      imx: mx7: psci: provide complete PSCI 1.0 implementation · a89eb89b
      Stefan Agner 提交于
      PSCI 1.0 require PSCI_VERSION, PSCI_FEATURES, AFFINITY_INFO and
      CPU_SUSPEND to be implemented. Commit 0ec3d98f ("mx7_common:
      use psci 1.0 instead of 0.1") marked the i.MX 7 implementation to
      be PSCI 1.0 compliant but failed to implement those functions.
      Especially the missing PSCI version callback was noticeable when
      booting Linux:
      
        [    0.000000] psci: probing for conduit method from DT.
        [    0.000000] psci: PSCIv65535.65535 detected in firmware.
        [    0.000000] psci: Using standard PSCI v0.2 function IDs
        [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
        [    0.000000] psci: SMC Calling Convention v1.0
      
      This patch provides a minimal implementation thereof. With this
      patch applied Linux detects PSCI 1.0:
      
        [    0.000000] psci: probing for conduit method from DT.
        [    0.000000] psci: PSCIv1.0 detected in firmware.
        [    0.000000] psci: Using standard PSCI v0.2 function IDs
        [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
        [    0.000000] psci: SMC Calling Convention v1.0
      
      Fixes: 0ec3d98f ("mx7_common: use psci 1.0 instead of 0.1")
      Suggested-by: NMark Rutland <mark.rutland@arm.com>
      Signed-off-by: NStefan Agner <stefan.agner@toradex.com>
      a89eb89b
    • S
      imx: mx7: psci: use C code exclusively · cff38c55
      Stefan Agner 提交于
      There is no need for assembly in the platform specific part of
      the PSCI implementation.
      
      Note that this does not make it a complete PSCI 1.0 implementation
      yet but aids to do so in upcoming patches.
      Signed-off-by: NStefan Agner <stefan.agner@toradex.com>
      cff38c55
    • M
      imx: imx6: Add comment to gpr_init function · 4a72abcb
      Michael Trimarchi 提交于
      This function can be used only for some of the nxp SoC. Make
      it explicit in the comment. This adjust a bit commit
      3aa4b703 ("imx: imx6: Move gpr_init() function to soc.c")
      Signed-off-by: NMichael Trimarchi <michael@amarulasolutions.com>
      Acked-by: NJagan Teki <jagan@amarulasolutions.com>
      4a72abcb
    • F
      mx7: Remove BMODE support · 2756d31f
      Fabio Estevam 提交于
      i.MX7 does not support BMODE due to the erratum e10574 ("Watchdog:
      A watchdog timeout or software trigger will not reset the SOC"), so
      remove its support.
      Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
      2756d31f
    • M
      imx: mx6: Fix implementantion reset_misc · 9236269d
      Michael Trimarchi 提交于
      lcdif_power_down should not be included in spl build to avoid build
      failure introduced by commit eb111bb3Signed-off-by: NMichael Trimarchi <michael@amarulasolutions.com>
      Reviewed-by: NPeng Fan <peng.fan@nxp.com>
      9236269d
    • S
      board: toradex: add Colibri iMX6ULL support · 31b1e17f
      Stefan Agner 提交于
      Add support for the Colibri iMX6ULL module which comes with
      on-board raw NAND.
      Signed-off-by: NStefan Agner <stefan.agner@toradex.com>
      31b1e17f