Skip to content
Snippets Groups Projects
  1. Aug 07, 2018
    • Troy Kisky's avatar
      h: initial addtion, Boundary Devices board · 22198231
      Troy Kisky authored
      
      Includes hsolo1g and hquad2g
      h.h: CONFIG_IPUV3_CLK 264000000
      h: setup_dispay is done in fbpanel
      h: add CONFIG_CMD_GPIO
      h: explicit fbp_detect_i2c
      h: verify port in board_ehci_hcd_init
      h: use boundary.h
      h: setup rgb_gpio_pads in board_early_init_f
      h: add CONFIG_SPI_FLASH_SPANSION
      h: hquad2g_defconfig add CONFIG_BLOCK_CACHE
      hsolo1g: hsolo1g_defconfig add CONFIG_BLOCK_CACHE
      h: use common code for eth init
      h: eth.c now in common directory
      h: move misc_init_r/do_kbd to common
      h: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      h: use common 1066mhz_4x256mx16.cfg
      h: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      h: use common ddr scripts
      h: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      h: update to v2017.01
      h: update to v2017.03
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      22198231
    • Troy Kisky's avatar
      eo: initial addition, Boundary Devices board · c3e23d58
      Troy Kisky authored
      
      eo: add eo_duallite_defconfig
      eo.h: CONFIG_IPUV3_CLK 264000000
      eo: use nitrogen6x/ddr-setup.cfg
      eo: use MX6Q or MX6DL instead of MX6QDL
      eo: add CONFIG_CMD_GPIO
      eo: explicit fbp_detect_i2c
      eo: add wlmac
      eo: use boundary.h
      eo: add CONFIG_SPI_FLASH_SPANSION
      eo: eo_defconfig add CONFIG_BLOCK_CACHE
      eo_duallite: eo_duallite_defconfig add CONFIG_BLOCK_CACHE
      eo: use common code for eth init
      eo: eth.c now in common directory
      eo: move misc_init_r/do_kbd to common
      eo: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      eo: use common 1066mhz_4x128mx16.cfg
      eo: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      eo: use common ddr scripts
      eo: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      eo: update to v2017.01
      eo: update to v2017.03
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      c3e23d58
    • Troy Kisky's avatar
      dash: initial addtion, Boundary Devices board · 7b126bdc
      Troy Kisky authored
      
      dash.h: CONFIG_IPUV3_CLK 264000000
      dash: add CONFIG_CMD_GPIO
      dash: explicit fbp_detect_i2c
      dash: verify port in board_ehci_hcd_init
      dash: use boundary.h
      dash: add CONFIG_SPI_FLASH_SPANSION
      dash: dash_defconfig add CONFIG_BLOCK_CACHE
      dash: use common code for eth init
      dash: eth.c now in common directory
      dash: move misc_init_r/do_kbd to common
      dash: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      dash: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      dash: add dash_q1g.cfg
      dash: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      dash: update to v2017.01
      dash: update to v2017.03
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      7b126bdc
    • Troy Kisky's avatar
      cob2: initial addition · e9a2d54d
      Troy Kisky authored
      
      cob2: 9 board sample for q1g ddr calibration
      cob2: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      cob2: use common ddr script
      cob2: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      e9a2d54d
    • Troy Kisky's avatar
      cob: initial addition, Boundary Devices board · 43f2e458
      Troy Kisky authored
      
      cob.h: CONFIG_IPUV3_CLK 264000000
      cob: use nitrogen6x/ddr-setup.cfg
      cob: add CONFIG_CMD_GPIO
      cob: explicit fbp_detect_i2c
      cob: verify port in board_ehci_hcd_init
      cob: use boundary.h
      cob: setup rgb_gpio_pads in board_early_init_f
      cob: add CONFIG_SPI_FLASH_SPANSION
      cob.h: skip fuses, they do it themselves
      cob: cob_defconfig add CONFIG_BLOCK_CACHE
      cob: use common code for eth init
      cob: eth.c now in common directory
      cob: move misc_init_r/do_kbd to common
      cob: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      cob: use common 1066mhz_4x128mx16.cfg
      cob: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      cob: use common ddr script
      cob: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      cod: update to v2017.01
      cob: update to v2017.03
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      43f2e458
    • Gary Bisson's avatar
      cnt: initial addition, Boundary Devices board · da6fbbe9
      Gary Bisson authored
      
      cnt: add defconfig for 1GB of RAM version
      cnt: fix boot devs configuration
      cnt: update to v2017.01
      cnt: update to v2017.03
      cnt.h: add custom BOOT_TARGET_DEVICES priority
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      
      cnt: print ethernet phy name (AR8035)
      cnt.h: CONFIG_IPUV3_CLK 264000000
      cnt: use nitrogen6x clock.cfg/ddr-setup.cfg
      cnt: add CONFIG_CMD_GPIO
      cnt: explicit fbp_detect_i2c
      cnt: verify port in board_ehci_hcd_init
      cnt: preboot_keys is not defined, remove call
      cnt: use boundary.h
      cnt: add CONFIG_SPI_FLASH_SPANSION
      cnt: 1066mhz_4x256mx16.cfg: update calibration for new spin of board
      cnt: cnt1g_defconfig add CONFIG_BLOCK_CACHE
      cnt2g: cnt2g_defconfig add CONFIG_BLOCK_CACHE
      cnt: 1066mhz_4x256mx16.cfg: increase cycles for tFAW/tRRD
      cnt2g: change ddr to 500.21 MHz
      cnt: use common code for eth init
      cnt: eth.c now in common directory
      cnt: move misc_init_r/do_kbd to common
      cnt: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      cnt: use common 1066mhz_4x256mx16.cfg
      cnt: use common 1066mhz_4x128mx16.cfg
      cnt: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      cnt: use common ddr scripts
      cnt: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      da6fbbe9
    • Troy Kisky's avatar
      cid_tab: initial addition, Boundary Devices board · f8f94b2e
      Troy Kisky authored
      
      cid_tab: delay 3P7V rail turn on
      cid_tab: turn off boost before poweroff
      cid_tab: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      cid_tab: tamper support checking TAMPER pin
      cid_tab: use common ddr script
      cid_tab: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      cid_tab: fix TP74 pad configuration
      
      cid_tab: add key combination to start fastboot
      cid_tab_q2g_defconfig: reduce bootdelay to 0
      cid_tab: limit boot sequence to eMMC
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      f8f94b2e
    • Gary Bisson's avatar
      cid: initial addition, Boundary Devices board · 19b81252
      Gary Bisson authored
      
      cid_2g_defconfig: reduce bootdelay to 0
      cid: limit boot sequence to eMMC
      cid: start fastboot when power and reset are pressed
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      
      cid: correct touchscreen interrupt pad
      cid: return 0 from board_eth_init to silence warning
      cid: use common code for eth init
      cid: eth.c now in common directory
      cid: move misc_init_r/do_kbd to common
      cid: add poweroff/ max77823_init
      cid: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      cid: document main power on, gpio8
      cid: add/correct a few pins
      cid: fix add/correct a few pins, typo
      cid: use max77823_otg_power to enable otg power
      cid: calibration for 2G board based on 6 boards
      cid: disable vibrator
      cid: fix gpio numbers  GP_ECSPI2_CS/GP_SIM_DETECT
      cid: use common 1066mhz_4x256mx16.cfg
      cid: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      cid: tamper support for new board
      cid: restore accidental removal of cmd_custom
      cid: turn on blue(LED1), off green/red LED2/3
      cid: enable usbh1 vbus in 'usb start'
      cid: use common ddr script
      cid: use max77823_is_charging to set leds
      cid: add cid2_q2g_defconfig for green led polarity change
      cid: turn on blue led only
      cid: flash red led twice before poweroff
      cid: add board_power_check
      cid: implement vibrator feedback at power on reset
      cid: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      19b81252
    • Troy Kisky's avatar
      cad: initial addition, Boundary Devices board · 1ff21e23
      Troy Kisky authored
      
      cad.h: CONFIG_IPUV3_CLK 264000000
      cad: add CONFIG_CMD_GPIO
      cad: explicit fbp_detect_i2c
      cad: use VDF_SPI_QVGA
      cad: use boundary.h
      cad: setup rgb_gpio_pads in board_early_init_f
      cad: add CONFIG_SPI_FLASH_SPANSION
      cad: cad_defconfig add CONFIG_BLOCK_CACHE
      cad: use common code for eth init
      cad: eth.c now in common directory
      cad: move misc_init_r/do_kbd to common
      cad: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      cad: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      cad: use common ddr script
      cad: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      cad: update to v2017.01
      cad: update to v2017.03
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      1ff21e23
    • Troy Kisky's avatar
      bt2: initial addition, Boundary Devices board · 667eb4df
      Troy Kisky authored
      
      bt2: GPS is thru i2c now
      bt2: swap J6/J7
      bt2: rename J6/J7 - J5V/J12v
      bt2: use nitrogen6x clock.cfg/ddr-setup.cfg
      bt2: 1066mhz_4x512mx16.cfg, remove confusing comment
      bt2: add/use 1066mhz_4x512mx16-r0.cfg for 4G memory option
      bt2: add CONFIG_CMD_GPIO
      bt2: explicit fbp_detect_i2c
      bt2: add wlmac
      bt2: increase refresh rate for 4G-rank0
      bt2: setup rgb_gpio_pads in board_early_init_f
      bt2: add CONFIG_SPI_FLASH_SPANSION
      bt2: bt2_2g_defconfig add CONFIG_BLOCK_CACHE
      bt2_4g: bt2_4g_defconfig add CONFIG_BLOCK_CACHE
      bt2: use common code for eth init
      bt2: eth.c now in common directory
      bt2: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      bt2: use common 1066mhz_4x256mx16.cfg
      bt2: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      bt2: use common ddr scripts
      bt2: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      bt2: update to v2017.01
      bt2: update to v2017.03
      bt2: move misc_init_r/do_kbd to common
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      667eb4df
    • Troy Kisky's avatar
      bt: initial addition, Boundary Devices board · 2ad77bc2
      Troy Kisky authored
      
      Two configurations bt2g and bt4g for two different memory layouts
      bt.h: CONFIG_IPUV3_CLK 264000000
      bt: rename J6/J7 to J12V/J5V
      bt: use nitrogen6x clock.cfg/ddr-setup.cfg
      bt: add CONFIG_CMD_GPIO
      bt: explicit fbp_detect_i2c
      bt: use boundary.h
      bt: add CONFIG_SPI_FLASH_SPANSION
      bt.h: use BD_CMA to specify cma= on cmd_line
      bt: bt2g_defconfig add CONFIG_BLOCK_CACHE
      bt4g: bt4g_defconfig add CONFIG_BLOCK_CACHE
      bt: use common code for eth init
      bt: eth.c now in common directory
      bt: move misc_init_r/do_kbd to common
      bt: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      bt: use common 1066mhz_4x256mx16.cfg
      bt: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      bt: use common ddr scripts
      bt: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      bt: update to v2017.01
      bt: update to v2017.03
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      2ad77bc2
    • Troy Kisky's avatar
      ash2: initial addition, Boundary Devices Board · 5b5b28ec
      Troy Kisky authored
      
      ash2: KEY_COL0 must be UART4_TX_DATA
      ash2: add power_init_board because mdelay cannot be used in board_early_init_f
      ash2: use common 800mhz_4x128mx16.cfg, and calibrate ddr
      ash2: rgb24 vs rgb66 panel have different backlight active levels
      ash2: fixup dtb backlight levels
      ash2: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      ash2: use common ddr script
      ash2: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      5b5b28ec
    • Troy Kisky's avatar
      ash: initial addition, Boundary Devices Board · 3ddd1e08
      Troy Kisky authored
      
      ash: add poweroff command
      ash: fix some input gpios(CH_ON_RBL/SG_ON_RBL/DOOR_CLOSED
      ash: use nitrogen6x/clock.cfg
      ash: use nitrogen6x ddr-setup.cfg
      ash: remove micrel phy references(only atheros on this board)
      ash: add CONFIG_CMD_GPIO
      ash: set rgb_gpio_pads
      ash: TP86 becomes lvds backlight enable
      ash: explicit fbp_detect_i2c
      ash: default uart1 to rs232
      ash: use 800mhz for memory
      ash: use boundary.h
      ash: GP_BSL_CB_ON_OFF high, TX23D200_18 default dispay
      ash: add CONFIG_VIDEO_SKIP_VERSION
      ash: GP_BSL_CB_ON_OFF default to low again
      ash: add EIM_EB2 for sd card power control
      ash: add CONFIG_SPI_FLASH_SPANSION
      ash: ash_defconfig add CONFIG_BLOCK_CACHE
      ash: use common code for eth init
      ash: eth.c now in common directory
      ash: move misc_init_r/do_kbd to common
      ash: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      ash: gpio3 is power off, don't redefine
      ash: add power_init_board because mdelay cannot be used in board_early_init_f
      ash: use common 800mhz_4x128mx16.cfg
      ash: rgb24 vs rgb66 panel have different backlight active levels
      ash: fixup dtb backlight levels
      ash: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      ash: use common ddr script
      ash: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      ash: update to v2017.01
      ash: update to v2017.03
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      3ddd1e08
    • Troy Kisky's avatar
      ap: initial addition, Boundary Devices board · 7aca4fbf
      Troy Kisky authored
      
      ap: forgot file include/configs/ap.h
      ap: ap_q2g_defconfig: add CONFIG_SPI_FLASH_GIGADEVICE
      ap: add bootscript_lp8860_eprom.txt
      ap: add verification to bootscript_lp8860_eprom.txt
      ap: use common ddr script
      ap: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      7aca4fbf
    • Gary Bisson's avatar
      acl: initial addition, Boundary Devices board · b17a1f63
      Gary Bisson authored
      
      acl: update to v2017.01
      acl update to v2017.03
      acl: fix scanner gpios initialization
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      
      acl: acl_q2g_defconfig add CONFIG_BLOCK_CACHE
      acl_s512m: acl_s512m_defconfig add CONFIG_BLOCK_CACHE
      acl: use common code for eth init
      acl: eth.c now in common directory
      acl: move misc_init_r/do_kbd to common
      acl: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      acl: calibrate 512m Solo board
      acl: use common 1066mhz_4x256mx16.cfg
      acl: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      acl: 800mhz_2x128mx16.cfg: remove _P1 accesses
      acl: 800mhz_2x128mx16.cfg: use common values
      
      CFG0: 0x40435323 to 0x3f435333
      tRFC - 65 to 64 clocks
      tFAW - 19 to 20 clocks
      
      CFG1: 0xB66E8D63 to 0xb68e8b63
      tRC from 20 to 21 clocks
      tWR from 7 to 6 clocks
      
      MR0: 0x13208030 to 0x15208030
      tWR from 5 to 6 clocks
      
      acl: use common ddr scripts
      acl: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      b17a1f63
    • Gary Bisson's avatar
      ys: initial addition, Boundary Devices board · 5f0bf994
      Gary Bisson authored
      
      ys: update to v2017.01
      ys: update to v2017.03
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      
      ys: ys_1g_defconfig add CONFIG_BLOCK_CACHE
      ys_512m: ys_512m_defconfig add CONFIG_BLOCK_CACHE
      ys: use common code for eth init
      ys: eth.c now in common directory
      ys: move misc_init_r/do_kbd to common
      ys: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      ys: don't define CONFIG_CMD_FBPANEL, no display
      ys: keep GP_RESET_DSP_N high
      ys: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      ys: add CONFIG_SPI_FLASH_WINBOND
      ys: fix eMMC voltage vccq to allows 1.8V
      ys: add comment for ddr
      ys: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      5f0bf994
    • Troy Kisky's avatar
      a: initial addition, Boundary Devices board · c46401a5
      Troy Kisky authored
      
      a: add usb hub reset/uart3/uart4/flexcan pins
      a: keep USB Huawei Modem in reset
      a: add leds rx active/tx active
      a: remove printf of board_mmc_init
      a.h: add cmd_custom to avoid update u-boot warning
      a: add CONFIG_CMD_GPIO
      a: remove redundant CONFIG_CMD_GPIO
      a: verify port in board_ehci_hcd_init
      a: use boundary.h
      a: call preboot_keys
      a: add CONFIG_SPI_FLASH_SPANSION
      a: add RV4162 rtc on I2C2
      a: a_defconfig add CONFIG_BLOCK_CACHE
      a: use common code for eth init
      a: eth.c now in common directory
      a: move misc_init_r/do_kbd to common
      a: move mmc_init/ dram_init/ overwrite_console/ common_board_init/ splash_screen_prepare/ board_cfb_skip to common
      a: add  CONFIG_SPI_FLASH_GIGADEVICE: to defconfigs
      a: add a_s512m.cfg
      a: port to v2018.07
      
      Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
      
      a: update to v2017.01
      a: update to v2017.03
      a.h: add custom BOOT_TARGET_DEVICES priority
      
      Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
      c46401a5
  2. Jul 27, 2018
  3. Jun 19, 2018
  4. May 18, 2018
  5. May 17, 2018
  6. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  7. Apr 26, 2018
  8. Apr 15, 2018
    • Lukasz Majewski's avatar
      imx: board: Add support for the K+P's kp_imx6q_tpc board · dd4671cb
      Lukasz Majewski authored
      This commit provides support for Kieback & Peter GmbH IMX6Q based
      TPC board.
      
      U-boot console output:
      
      U-Boot SPL 2018.05-rc1-00005-g631e2d01fd (Apr 04 2018 - 21:16:24 +0200)
      Trying to boot from MMC1
      
      U-Boot 2018.05-rc1-00005-g631e2d01fd (Apr 04 2018 - 21:16:24 +0200)
      
      CPU:   Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)
      CPU:   Extended Commercial temperature grade (-20C to 105C) at 37C
      Reset cause: POR
      Board: K+P KP_IMX6Q_TPC i.MX6Q
             Watchdog enabled
      I2C:   ready
      DRAM:  2 GiB
      MMC:   FSL_SDHC: 0, FSL_SDHC: 1
      Loading Environment from MMC... OK
      In:    serial
      Out:   serial
      Err:   serial
      Net:   FEC [PRIME]
      Autoboot in 3 seconds
      dd4671cb
    • Marek Vasut's avatar
      ARM: mx6: ddr: Add write leveling correction code · 14eeb683
      Marek Vasut authored
      When the DDR calibration is enabled, a situation may happen that it
      will fail on a few select boards out of a whole production lot. In
      particular, after the first write leveling stage, the MPWLDECTRLx
      registers will contain a value 0x1nn , for nn usually being 0x7f or
      slightly lower.
      
      What this means is that the HW write leveling detected that the DQS
      rising edge on one or more bundles arrives slightly _after_ CLK and
      therefore when the DDR DRAM samples CLK on the DQS rising edge, the
      CLK signal is already high (cfr. AN4467 rev2 Figure 7 on page 18).
      
      The HW write leveling then ends up adding almost an entire cycle (thus
      the 0x17f) to the DQS delay, which indeed aligns it, but also triggers
      subsequent calibration failure in DQS gating due to this massive offset.
      
      There are two observations here:
      - If the MPWLDECTRLx value is corrected from 0x17f to 0x0 , then the
        DQS gating passes, the entire calibration passes as well and the
        DRAM is perfectly stable even under massive load.
      - When using the NXP DRAM calibrator for iMX6/7, the value 0x17f or so
        in MPWLDECTRx register is not there, but it is replaced by 0x0 as one
        would expect.
      
      Someone from NXP finally explains why, quoting [1]:
      
          "
          Having said all that, the DDR Stress Test does something that we
          do not advertise to the users. The Stress Test iself looks at the
          values of the MPWLDECTRL0/1 fields before reporting results, and
          if it sees any filed with a value greater than 200/256 delay
          (reported as half-cycle = 0x1 and ABS_OFFSET > 0x48), the DDR
          Stress test will reset the Write Leveling delay for this lane
          to 0x000 and not report it in the log.
      
          The reason that the DDR Stress test does this is because a delay
          of more than 78% a clock cycle means that the DQS edge is arriving
          within the JEDEC tolerence of 25% of the clock edge. In most cases,
          DQS is arriving < 5% tCK of the SDCLK edge in the early case, and
          it does not make sense to delay the DQS strobe almost a full clock
          cycle and add extra latency to each Write burst just to make the
          two edges align exactly. In this case, we are guilty of making a
          decision for the customer without telling them we are doing it so
          that we don't have to provide the above explanation to every customer.
          They don't need to know it.
          "
      
      This patch adds the correction described above, that is if the MPWLDECTRx
      value is over 0x148, the value is corrected back to 0x0.
      
      [1] https://community.nxp.com/thread/456246
      
      
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Stefano Babic <sbabic@denx.de>
      Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      Reviewed-by: default avatarEric Nelson <eric@nelint.com>
      Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
      14eeb683
  9. Mar 05, 2018
  10. Feb 22, 2018
  11. Feb 04, 2018
    • Peng Fan's avatar
      imx: cleanup bootaux · 8cf22313
      Peng Fan authored
      
      Move i.MX6/7 bootaux code to imx_bootaux.c.
      The i.MX6/7 has different src layout, so define M4 reg offset
      to ease the cleanup. Redefine the M4 related BIT for share
      common code.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Fabio Estevam <fabio.estevam@nxp.com>
      8cf22313
    • Peng Fan's avatar
      imx: refactor imx_get_mac_from_fuse · 6ce8b10b
      Peng Fan authored
      
      Move imx_get_mac_from_fuse to a new mac.c for i.MX6/7.
      Since fuse regs structure are different for i.MX6/7, use mac
      address offset in code and define a new local struture
      imx_mac_fuse.
      
      Also sort the config order.
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Fabio Estevam <fabio.estevam@nxp.com>
      Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
      6ce8b10b
  12. Jan 24, 2018
  13. Jan 12, 2018
  14. Jan 08, 2018
  15. Jan 04, 2018
Loading