summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mmc: fsl_esdhc: drop CONFIG_SYS_FSL_ESDHC_FORCE_VSELECTPeng Fan2017-07-125-9/+1
| | | | | | | | | | | | CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT is not the correct method to set I/O to 1.8. To boards that does not support vqmmc-supply, use vs18_enable in fsl_esdhc_cfg. If regulator is supported, use fixed 1.8V regulator for vqmmc-supply. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: York Sun <york.sun@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
* dm: mmc: fsl_esdhc: handle vqmmc supplyPeng Fan2017-07-121-0/+25
| | | | | | | | | | | | | | | Handle vqmmc supply. Some boards have a fixed I/O voltage at 1.8V for emmc, so the usdhc also needs to be configured as 1.8V by setting VSELECT bit. The vs18_enable is the one that used to checking whether setting VSELECT or not in the driver. So if vqmmc supply is 1.8V, set vs18_enable, the driver will set VSELECT. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: York Sun <york.sun@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
* mmc: fsl_esdhc: introduce vs18_enable for 1.8V fix I/OPeng Fan2017-07-122-0/+10
| | | | | | | | | | | | | | | | | | | When using eMMC with 1.8V I/O, the VSELECT bit need to be set in the USDHC controller when init. This patch adds a parameter "vs18_enable" in fsl_esdhc_cfg structure and priv data, so each controller can have different settings. We could not use CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT, it has problem that it will apply to all USDHC controllers and it only set the 1.8V at init phase. So if user does not select to the eMMC device, the voltage on the I/O pins are not correct. Signed-off-by: Peng Fan <peng.fan@nxp.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: York Sun <york.sun@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
* mmc: fsl_esdhc: correct type of wp_enablePeng Fan2017-07-121-1/+1
| | | | | | | The type should be int, not u8. cfg->wp_enable will finally be assigned to priv->wp_enable whose type is int. Signed-off-by: Peng Fan <peng.fan@nxp.com>
* imx6_spl: Add u-boot-dtb.img for SPL payloadJagan Teki2017-07-121-1/+5
| | | | | | | Add u-boot-dtb.img for SPL_FS_LOAD_PAYLOAD_NAME when OF_CONTROL used. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
* mx6sabreauto: Update to SPL only modeVanessa Maegima2017-07-1215-555/+38
| | | | | | | | | | | | | | | | | As mx6sabreauto supports SPL now, all variants can boot using the same defconfig. This patch: - Removes non-SPL targets. - Renames target to mx6sabreauto_defconfig. - Renames folder and board files to mx6sabreauto. - Updates MAINTAINERS, Makefile and Kconfig accordingly. - Removes .cfg files. - Adds a README with instructions to build and flash SPL and u-boot.img. Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* mx6qsabreauto: Add SPL supportVanessa Maegima2017-07-124-115/+581
| | | | | | | | | | | | | | | | | | | | Add support for mx6q, mx6dl and mx6qp sabreauto boards in SPL. Retrieved the mx6q DCD table from: board/freescale/mx6qsabreauto/imximage.cfg Retrieved the mx6dl DCD table from: board/freescale/mx6qsabreauto/mx6dl.cfg Retrieved the mx6qp DCD table from: board/freescale/mx6qsabreauto/mx6qp.cfg Flashed SPL and u-boot.img to an SD card and could successfully boot it on mx6q, mx6qp and mx6dl sabreauto boards. Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* mx6cuboxi: Add support for sataPeter Robinson2017-07-122-0/+17
| | | | | | | | | | | The Cubox-i and Hummingboard series of devices have an option of SATA on board, and depending on how the fuses are blown even the option to boot SPL from SATA. So enable support for it so it can be used to boot the OS from if people desire. Cc: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Peter Robinson <pbrobinson@gmail.com> Acked-by: Fabio Estevam <fabio.estevam@nxp.com>
* mx7dsabresd: Set VLD04 output to 2.8V in PMIC initialization.Gautam Bhat2017-07-121-0/+6
| | | | | | | | | | This change sets the VLDO4 settings output to 2.8V in PMIC initialization so that the MIPI DSI/CSI input voltage is 2.8V as per the schematics. The original code provides an output of 3.3V which violates the voltage mentioned in the schematics. Signed-off-by: Gautam Bhat <mindentropy@gmail.com> Acked-by: Fabio Estevam <fabio.estevam@nxp.com>
* mx6: soc: Move mxs_dma_init() into the mxs nand driverFabio Estevam2017-07-122-5/+1
| | | | | | | | | | | | | Currently the following build error is seen when a board using MMC SPL is built and the MXS nand driver is also selected: arch/arm/cpu/armv7/built-in.o: In function `arch_cpu_init': arch/arm/cpu/armv7/mx6/soc.c:432: undefined reference to 'mxs_dma_init' On mx6 the only user of mxs_dma_init() is the mxs nand driver, so move it there. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* net: fec_mxc: fix PHY initialization bug with CONFIG_DM_ETHLothar Waßmann2017-07-121-11/+13
| | | | | | | | | | | | When CONFIG_DM_ETH is set, the FEC ethernet controller is reset after the PHY has been set up and initialzed. This breaks the communication with the PHY and results in an inoperable ethernet interface. Do the initialization with CONFIG_DM_ETH in the same order as with legacy ETH support to fix this. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
* icorem6_rqs: Rename icorem6_rqs config fileJagan Teki2017-07-122-1/+1
| | | | | | | | imx6qdl_icore_mmc_defconfig => imx6qdl_icore_rqs_defconfig Since icorem6_rqs support MMC/eMMC boot, so doesn't need to name it explicitly. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
* dt-bindings: Document the Broadcom STB wake-up timer nodeFlorian Fainelli2017-07-121-0/+22
| | | | | | | | Document the binding for the Broadcom STB SoCs wake-up timer node allowing the system to generate alarms and exit low power states. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* serial: mxc: Add debug uart supportJagan Teki2017-07-123-0/+38
| | | | | | | | Add support for the debug UART to assist with early debugging. Enable it for i.CoreM6 as an example. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* serial: mxc: Code cleanupJagan Teki2017-07-121-97/+94
| | | | | | | | - Remove space between #define to macro - Add tab between macro and value Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* serial: mxc: Move common baud gen into _mxc_serial_setbrgJagan Teki2017-07-121-26/+24
| | | | | | | | Move the common baud generation code into _mxc_serial_setbrg so-that dm and non-dm can call this func. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* serial: mxc: Move common init into _mxc_serial_initJagan Teki2017-07-121-20/+17
| | | | | | | | Move the common initialization code into _mxc_serial_init so-that dm and non-dm can call this func. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* serial: mxc: Move cr1 and cr2 write to mxc_serial_setbrgJagan Teki2017-07-121-5/+3
| | | | | | | | | Control reg write should be part of setbrg for better buadrate generation, so move cr1 and cr2 write to mxc_serial_setbrg Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* serial: mxc: Use RFDIV in dm-codeJagan Teki2017-07-121-3/+3
| | | | | | | | Use RFDIV in dm-code instead of numeric value, so-that it can be common for dm and non-dm. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* serial: mxc: Add common mxc_uart reg spaceJagan Teki2017-07-121-66/+49
| | | | | | | | | | | | | This patch will add common reg space for non-dm and dm code and non-dm reg space can be accessed using mxc_base. This will - get rid of __REG volatile assignments - Make common reg_space by removing unneeded macros Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* imx: mx6ull: fix USB bmode for i.MX 6UL and 6ULLStefan Agner2017-07-121-0/+4
| | | | | | | | | | | | | | | | i.MX 6UL and 6ULL have different boot device capabilities and use therefor use a different boot device selection table than other i.MX 6 devices. Particularly, the value which has been used so far (b0001) is assigned to QSPI boot for these two devices. There is no common reserved value for all i.MX 6devices. Use b0010 for i.MX 6UL and 6ULL via compile time ifdef. Reported-by: Joël Esponde <joel.esponde@honeywell.com> Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Tested-by: Joël Esponde <joel.esponde@honeywell.com>
* ot1200: enable CONFIG_IMX_THERMAL for detailed thermal informationChristian Gmeiner2017-07-123-0/+7
| | | | Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
* mx6sabresd: Fix guard file symbolFabio Estevam2017-07-121-3/+3
| | | | | | | Remove the "Q" from the file guard symbol, so that it matches the file name. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* wandboard: Remove unnecessary delayFabio Estevam2017-07-121-2/+0
| | | | | | | | There is no need to add a 100us delay after the DDR initialization. Other imx6 boards do not have such delay either, so simply remove it. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* cm_fx6: Remove SPL entry from CONFIG_SYS_EXTRA_OPTIONSFabio Estevam2017-07-121-1/+1
| | | | | | | SPL is already selected via CONFIG_SPL=y, so there is no need to pass it inside CONFIG_SYS_EXTRA_OPTIONS. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* cgtqmx6eval: Remove SPL entry from CONFIG_SYS_EXTRA_OPTIONSFabio Estevam2017-07-121-1/+1
| | | | | | | SPL is already selected via CONFIG_SPL=y, so there is no need to pass it inside CONFIG_SYS_EXTRA_OPTIONS. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* mx6slevk_spl: Remove SPL entry from CONFIG_SYS_EXTRA_OPTIONSFabio Estevam2017-07-121-1/+1
| | | | | | | SPL is already selected via CONFIG_SPL=y, so there is no need to pass it inside CONFIG_SYS_EXTRA_OPTIONS. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* mx6sabresd: Remove SPL entry from CONFIG_SYS_EXTRA_OPTIONSFabio Estevam2017-07-121-1/+1
| | | | | | | SPL is already selected via CONFIG_SPL=y, so there is no need to pass it inside CONFIG_SYS_EXTRA_OPTIONS. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
* Merge git://git.denx.de/u-boot-dmTom Rini2017-07-11282-1978/+3277
|\
| * dm: ofnode: use fdt32_t for DT property value to fix sparse warningMasahiro Yamada2017-07-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | DTB is encoded in big endian. When we retrieve property values, we need to use fdt32_to_cpu (aka be32_to_cpu) for endian conversion. This is a bit error-prone, but sparse is useful to detect endian mismatch. We need to use (fdt32_t *) instead of (u32 *) for a pointer of a property value. Otherwise sparse warns "cast to restricted __be32". Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * dm: include <dm/util.h> from driver/core/dump.cMasahiro Yamada2017-07-111-0/+1
| | | | | | | | | | | | | | | | | | | | Include <dm/util.h> to fix sparse warnings: symbol 'dm_dump_all' was not declared. Should it be static? symbol 'dm_dump_uclass' was not declared. Should it be static? Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
| * dm: ofnode: simplify ofnode_read_bool()Masahiro Yamada2017-07-111-9/+5
| | | | | | | | | | | | | | Reuse ofnode_get_property() to simplify the implementation. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Simon Glass <sjg@chromium.org>
| * dm: ofnode: rename ofnode_read_prop() to ofnode_get_property()Masahiro Yamada2017-07-118-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | This function returns the pointer to the value of a node property. The current name ofnode_read_prop() is confusing. Follow the naming of_get_property() from Linux. The return type (const u32 *) is wrong. DT property values can be strings as well as integers. This is why of_get_property/fdt_getprop returns an opaque pointer. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Simon Glass <sjg@chromium.org>
| * dm: ofnode: simplify ofnode_read_prop()Masahiro Yamada2017-07-111-9/+3
| | | | | | | | | | | | | | The code inside the if-block is the same as of_get_property(). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Simon Glass <sjg@chromium.org>
| * dm: ofnode: use ofnode_read_bool() to check property existenceMasahiro Yamada2017-07-111-5/+5
| | | | | | | | | | | | | | This will clarify the code. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Simon Glass <sjg@chromium.org>
| * dm: include <dm/util.h> from drivers/core/util.cMasahiro Yamada2017-07-111-0/+5
| | | | | | | | | | | | | | | | | | Fix sparse warnings "... was not declared. Should it be static?" Also, fix redefinition of dm_warn/dm_dbg. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * fdt: Check for NULL return from fdt_getprop in 'fdt set'Tom Rini2017-07-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | While the previous pass through fixed one place where we knew that fdt_getprop would be given a positive len, in the case of 'fdt set' we do not, so check that we did no get NULL from fdt_getprop(). Cc: Simon Glass <sjg@chromium.org> Reported-by: Coverity (CID: 163249) Fixes 72c98ed1ab48 ("fdt: Add a check to do_fdt() for coverity") Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * tegra: fdt: Ensure that the console UART is enabledSimon Glass2017-07-1117-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many tegra boards have the console UART node disabled. With livetree this prevents serial from working since it does not 'force' the console to be bound. Updates the affected boards to fix this error. The boards were checked with: for b in $(grep tegra boards.cfg |grep -v integrator | \ awk '{print $7}' | sort); do echo $b; fdtgrep -c nvidia,tegra20-uart b/$b/u-boot.dtb |grep okay; done Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * tegra: Show a debug message if the LCD PMIC fails to startSimon Glass2017-07-111-1/+3
| | | | | | | | | | | | | | | | This error condition should have a debug() message. Add it. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * dm: serial: Add livetree supportSimon Glass2017-07-111-3/+15
| | | | | | | | | | | | | | | | Add support for a live device tree to the core serial uclass. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * dm: serial: Separate out the core serial-device finding codeSimon Glass2017-07-111-40/+44
| | | | | | | | | | | | | | | | | | This function is quite long. Move the core code into a separate function in preparation for adding livetree support. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * dm: serial: ns16550: Convert to livetreeSimon Glass2017-07-111-10/+5
| | | | | | | | | | | | | | | | Update this driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * tegra: Fix up include file orderingSimon Glass2017-07-112-16/+10
| | | | | | | | | | | | | | | | Update these two files so include files in the right order. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * video: simple-panel: Add a little more debuggingSimon Glass2017-07-111-0/+2
| | | | | | | | | | | | | | | | | | Add some debugging to show when the backlight is enabled. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * dm: video: Update pwm_backlight to support livetreeSimon Glass2017-07-111-10/+12
| | | | | | | | | | | | | | | | | | Update this driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * dm: video: Sync display on backspaceSimon Glass2017-07-111-0/+1
| | | | | | | | | | | | | | | | | | | | We should sync the display (e.g. flush cache) when backspace is pressed to ensure that the character is erased correctly. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * tegra: nyan-big: Enable bootstageSimon Glass2017-07-111-0/+5
| | | | | | | | | | | | | | | | Enable full bootstage support so we can time SPL and U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * dm: Fix error handling when unflattening the DTSimon Glass2017-07-111-1/+6
| | | | | | | | | | | | | | | | | | The error handling code does not current detect an error right away. Adjust it to return immediately. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * tegra: nyan-big: Enable the debug UARTSimon Glass2017-07-111-0/+4
| | | | | | | | | | | | | | | | | | Enable this to allow debugging when the serial UART driver is misconfigured. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
| * tegra: video: Time the LCD initSimon Glass2017-07-111-0/+2
| | | | | | | | | | | | | | | | Calculate the time taken to set up the LCD. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1