summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ARM: rmobile: Update V2H BlancheMarek Vasut2018-05-206-410/+302
| | | | | | | | | The V2H Blanche port was broken since some time. This patch updates the V2H Blanche port to use modern frameworks, DM, DT probing, SPL for the preloading and puts it on par with the M2 Porter board. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* ARM: rmobile: Enable DM capable RCar I2C driver on SilkMarek Vasut2018-05-201-0/+1
| | | | | | | Enable the DM capable driver instead of the legacy one. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* ARM: rmobile: Enable DM capable RCar I2C driver on LagerMarek Vasut2018-05-201-0/+1
| | | | | | | Enable the DM capable driver instead of the legacy one. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* i2c: rcar_i2c: Add DM and DT capable I2C driverMarek Vasut2018-05-203-0/+360
| | | | | | | | | Add derivative of the rcar_i2c driver which is capable of probing itself from DM and uses DT. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Heiko Schocher <hs@denx.de> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* i2c: rcar_i2c: Remove the driverMarek Vasut2018-05-202-293/+0
| | | | | | | | | Remove the rcar_i2c driver, since it's no longer used by any board and will be superseded by a DM and DT capable variant. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Heiko Schocher <hs@denx.de> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Fixup various SPDX tags from the latest mergeTom Rini2018-05-1821-42/+21
| | | | Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge git://git.denx.de/u-boot-imxTom Rini2018-05-1887-417/+2344
|\
| * arm: imx53: Add support for imx53 boards from K+PLukasz Majewski2018-05-1810-0/+690
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for DDC and HSC boards from K+P in u-boot. Console output: U-Boot 2018.05-rc2-00090-g752b7ed6f9 (Apr 26 2018 - 14:24:24 +0200) CPU: Freescale i.MX53 rev2.1 at 800 MHz Reset cause: WDOG Model: K+P iMX53 DRAM: 512 MiB MMC: FSL_SDHC: 0 Loading Environment from MMC... OK In: serial Out: serial Err: serial Module EEPROM: ID: TQMa53-CB.0401 SN: 63152762 MAC: 00:0b:64:03:14:2a BBoard:40x0 Rev:10 Net: eth0: ethernet@63fec000 Hit any key to stop autoboot: 0 Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * sandbox: tests: Add tests for mc34708 PMIC deviceLukasz Majewski2018-05-181-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | Following tests has been added for mc34708 device: - get_test for mc34708 PMIC - Check if proper number of registers is read - Check if default (emulated via i2c device) value is properly read - Check if value write/read operation is correct - Perform tests to check if pmic_clrsetbits() is working correctly Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * sandbox: tests: Exclude common test code (pmic_get) in test/dm/pmic.cLukasz Majewski2018-05-181-2/+10
| | | | | | | | | | | | | | The common code can be excluded to be reused by tests for other PMIC. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * sandbox: Enable MC34708 PMIC supportLukasz Majewski2018-05-183-0/+3
| | | | | | | | | | | | | | | | This MC34708 PMIC is somewhat special - it used single transfers (R/W) with 3 bytes size - up till now U-Boot's PMICs only used 1 byte. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * sandbox: Enable support for MC34708 PMIC in DTSLukasz Majewski2018-05-184-0/+45
| | | | | | | | | | | | | | | | This commit also provides the default values of the emulated MC34708 PMIC internal registers content. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * sandbox: Rewrite i2c_pmic_emul.c to support PMIC with 3 bytes transmissionLukasz Majewski2018-05-181-14/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enables support for MC34708 PMIC in sandbox. Now we can emulate the I2C transfers larger than 1 byte. Notable changes for this driver: - From now on the register number is not equal to index in the buffer, which emulates the PMIC registers - The PMIC register's pool is now dynamically allocated up till 64 regs * 3 bytes each = 192 B Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * pmic: Rewrite the pmic command to not only work with single byte transmissionLukasz Majewski2018-05-181-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | Up till now it was only possible to use 'pmic' command with a single byte transmission. The pmic_read|write functions has been replaced with ones, which don't need the transmission length as a parameter. Due to that it is possible now to read data from PMICs transmitting more data than 1 byte at once (e.g. mc34708) Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * pmic: dm: Add support for MC34708 for PMIC DMLukasz Majewski2018-05-183-0/+113
| | | | | | | | | | | | | | | | This patch adds support for MC34708 PMIC, to be used with driver model (DM). Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * pmic: dm: Rewrite pmic_reg_{read|write|clrsetbits} to support 3 bytes ↵Lukasz Majewski2018-05-181-12/+30
| | | | | | | | | | | | | | | | | | | | transmissions This commit provides support for transmissions larger than 1 byte for PMIC devices used with DM (e.g. MC34708 from NXP). Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * pmic: Add support for setting transmission length in uclass private dataLukasz Majewski2018-05-182-0/+19
| | | | | | | | | | | | | | | | The struct uc_pmic_priv's trans_len field stores the number of types to be transmitted per PMIC transfer. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * pmic: fsl: Define number of bytes sent at once by MC34708 PMICLukasz Majewski2018-05-181-0/+1
| | | | | | | | | | | | | | | | This patch adds definition of the number of bytes sent at once by the MC34708 PMIC. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * pmic: fsl: Provide some more definitions for MC34708 PMICLukasz Majewski2018-05-181-0/+40
| | | | | | | | | | | | | | This commit adds some more defines for MC34708 PMIC. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
| * configs: imx6dl-mamoj: Enable HABJagan Teki2018-05-181-0/+1
| | | | | | | | | | | | Enable Secure boot(HAB) for BTicino Mamoj board. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| * configs: imx6dl-mamoj: Add Falcon mode supportJagan Teki2018-05-184-0/+51
| | | | | | | | | | | | Add Falcon mode support to boot Linux directly after SPL. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| * configs: imx6dl-mamoj: Add DFU supportJagan Teki2018-05-183-1/+42
| | | | | | | | | | | | | | | | | | Add DFU support for BTicino Mamoj board and update the same steps in README. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Simone CIANNI <simone.cianni@bticino.it> Signed-off-by: Raffaele RECALCATI <raffaele.recalcati@bticino.it>
| * configs: imx6dl_mamoj: Enable fastboot and umsJagan Teki2018-05-181-0/+6
| | | | | | | | | | | | | | | | | | Enable fastboot and ums for host to interact eMMC on Mamoj board. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Simone CIANNI <simone.cianni@bticino.it> Signed-off-by: Raffaele RECALCATI <raffaele.recalcati@bticino.it>
| * i.MX6DL: mamoj: Add PFUZE100 supportJagan Teki2018-05-183-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MX6DL Mamoj boards has Freescale PFUZE100 PMIC, add support for it through DM_PMIC dt definition. pmic log: Reviewed-by: Stefano Babic <sbabic@denx.de> ======== => pmic list | Name | Parent name | Parent uclass @ seq | pfuze100@08 | i2c@021f8000 | i2c @ 3 => pmic dev pfuze100@08 dev: 0 @ pfuze100@08 => pmic dump Dump pmic: pfuze100@08 registers 0x00: 10 00 00 21 00 01 3f 01 00 7f 00 00 00 00 00 81 0x10: 00 00 3f 00 00 00 00 00 00 00 00 10 00 00 00 00 0x20: 2b 2b 2b 08 c4 00 00 00 00 00 00 00 00 00 2b 2b 0x30: 2b 08 c4 00 00 72 72 72 08 d4 00 00 2c 2c 2c 08 0x40: e4 00 00 2c 2c 2c 08 e4 00 00 6f 6f 6f 08 f4 00 0x50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x60: 00 00 00 00 00 00 48 00 00 00 10 06 1e 1e 17 10 0x70: 1a 1f 00 00 00 00 00 00 00 00 00 00 00 00 00 Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Simone CIANNI <simone.cianni@bticino.it> Signed-off-by: Raffaele RECALCATI <raffaele.recalcati@bticino.it>
| * i.MX6DL: mamoj: Add I2C supportJagan Teki2018-05-183-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | i.MX6DL Mamoj has i2c3 and i2c4 buses, add support through DM_I2C with dt definition. i2c log: Reviewed-by: Stefano Babic <sbabic@denx.de> ======= => i2c bus Bus 2: i2c@021a8000 Bus 3: i2c@021f8000 => i2c dev 2 Setting bus to 2 => i2c speed 400000 Setting bus speed to 400000 Hz => i2c probe Valid chip addresses: 20 51 53 => i2c md 53 0xff 00ff: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ => i2c md 51 0xff 00ff: a8 08 40 50 09 43 46 52 42 18 80 8e ae a9 d0 53 ..@P.CFRB......S => i2c dev 3 Setting bus to 3 => i2c speed 100000 Setting bus speed to 100000 Hz => i2c probe Valid chip addresses: 08 40 48 4B => i2c md 08 0xff 00ff: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Simone CIANNI <simone.cianni@bticino.it> Signed-off-by: Raffaele RECALCATI <raffaele.recalcati@bticino.it>
| * i.MX6: board: Add BTicino i.MX6DL Mamoj initial supportJagan Teki2018-05-1812-0/+534
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add initial support for i.MX6DL BTicino Mamoj board. Mamoh board added: - SPL - SPL_DM - SPL_OF_CONTROL - DM for U-Boot proper - OF_CONTROL for U-Boot proper - eMMC - FEC - Boot from eMMC - Boot from USB SDP Signed-off-by: Simone CIANNI <simone.cianni@bticino.it> Signed-off-by: Raffaele RECALCATI <raffaele.recalcati@bticino.it> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| * ARM: i.MX6: dts: Build dtb based on SOC typeJagan Teki2018-05-181-5/+13
| | | | | | | | | | | | Build dtb's based on SOC type instead building arch type. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| * ARM: dts: i.MX6UL: U-Boot specific dts for u-boot, dm-splJagan Teki2018-05-1810-13/+93
| | | | | | | | | | | | | | | | | | | | | | u-boot,dm-spl property is specific to U-Boot, so move it into *u-boot.dtsi files for relevant i.MX6UL files. This make syncing Linux dts files straight forward. Also update the MAINTAINERS file for dts files. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| * ARM: dts: imx6ul-isiot: Move usdhc2 into dtsiJagan Teki2018-05-182-24/+26
| | | | | | | | | | | | | | Move usdhc2 node along with pinctrl to imx6ul-isiot.dts from imx6ul-isiot-emmc.dts Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| * ARM: dts: i.MX6QDL: U-Boot specific dts for u-boot, dm-splJagan Teki2018-05-1815-15/+129
| | | | | | | | | | | | | | | | | | | | | | u-boot,dm-spl property is specific to U-Boot, so move it into *u-boot.dtsi files for relevant i.MX6QDL files. This make syncing Linux dts files straight forward. Also update the MAINTAINERS file for dts files. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
| * imx6: sabrelite: update defconfig to use distro defaultsGuillaume GARDET2018-05-171-10/+5
| | | | | | | | | | | | | | | | | | | | Boot tested with boot.scr script and EFI/Grub2 on mmc0 and mmc1 slots on sabrelite board. Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr> Cc: Troy Kisky <troy.kisky@boundarydevices.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Gary Bisson <gary.bisson@boundarydevices.com>
| * imx6: Convert sabrelite and nitrogen6x boards to distro boot supportGuillaume GARDET2018-05-171-136/+43
| | | | | | | | | | | | | | | | | | | | | | Boot tested on sabrelite board. Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr> Cc: Troy Kisky <troy.kisky@boundarydevices.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Gary Bisson <gary.bisson@boundarydevices.com> Tested-by: Denis Pynkin <denis.pynkin@collabora.com>
| * dts: pinctrl: Provide IMX_PAD_SION definition for imx53 pinctrlLukasz Majewski2018-05-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SION pin must be set for proper operation of I2C when DM is enabled. When legacy I2C is used, this bit is set implicitly in the u-boot code: arch/arm/include/asm/arch-mx5/iomux-mx53.h:92: MX53_PAD_KEY_ROW3__I2C2_SDA = IOMUX_PAD(0x368, 0x040, 4 | IOMUX_CONFIG_SION, 0x820, 0, NO_PAD_CTRL), The Linux kernel uses similar approach with: arch/arm/boot/dts/imx53-tqma53.dtsi:182: MX53_PAD_KEY_ROW3__I2C2_SDA 0xc0000000 After applying this patch it is possible to have the I2C working with DM on imx53 devices: MX53_PAD_KEY_ROW3__I2C2_SDA (0x1ee | IMX_PAD_SION) Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * dts: imx53: Add gpio and i2c nodes to imx53.dtsi fileLukasz Majewski2018-05-171-1/+100
| | | | | | | | | | | | Those DTS nodes has been ported from Linux kernel (v4.16) Signed-off-by: Lukasz Majewski <lukma@denx.de>
| * ge: ppd: move CONFIG_ENV_IS_IN_MMC to defconfigSebastian Reichel2018-05-172-1/+1
| | | | | | | | | | | | | | CONFIG_ENV_IS_IN_MMC must be declared in defconfig to properly support "env save". Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
| * mx6: remove duplicated BOUNCE_BUFFER definesPeter Robinson2018-05-176-7/+0
| | | | | | | | | | | | | | | | The mx6_common.h file already defines BOUNCE_BUFFER so no need to definit it again in specific configs. Signed-off-by: Peter Robinson <pbrobinson@gmail.com> Acked-by: Lukasz Majewski <lukma@denx.de>
| * mx6: Select CONFIG_MP with MX6_SMPPeter Robinson2018-05-172-1/+1
| | | | | | | | | | | | | | It makes sense to select the MP multi processor option at the same time we select the other SMP options needed for SMP capable i.MX6 SoCs. Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
| * mx7: remove empty ifndef statementPeter Robinson2018-05-171-3/+0
| | | | | | | | Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
| * mx6 common: remove dangling commentPeter Robinson2018-05-171-2/+0
| | | | | | | | Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
| * mx31: Convert MX31_HCLK_FREQ and MX31_CLK32 to Kconfig.Magnus Lilja2018-05-172-8/+14
| | | | | | | | | | | | | | | | Also remove the #ifdef's from clock.h since the Kconfig values defaults the to old default values in clock.h. Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
| * mx31pdk: Convert CONFIG_MX31 flag to use Kconfig.Magnus Lilja2018-05-174-11/+28
| | | | | | | | | | | | | | | | Move CONFIG_MX31 from mx31pdk.h to mx31pdk_defconfig and introduce necessary Kconfig changes as well. Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
| * board: ge: bx50v3: remove redundant targetsIan Ray2018-05-176-113/+5
| | | | | | | | | | | | | | | | | | This replaces TARGET_GE_B{4,6,8}50V3 with common TARGET_GE_BX50V3. The boards are identified automatically at runtime. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
| * board: ge: bx50v3: configure video arguments using VPDIan Ray2018-05-172-4/+4
| | | | | | | | | | | | | | | | Configure video arguments at run-time instead of at compile-time. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
| * board: ge: bx50v3: use VPD instead of compile-time checksIan Ray2018-05-171-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | B{46}50v3s have an internal LCD that needs to be configured, in comparison with B850v3 which has only external displays. Use VPD instead of `CONFIG_TARGET_GE_B{4,6,8}50V3' compile-time checks to correct initialize video based on the monitor type. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
| * board: ge: bx50v3: detect the monitor type by reading VPD earlierNandor Han2018-05-171-7/+29
| | | | | | | | | | | | | | | | | | | | | | Move the VPD reading earlier in order to establish the monitor type as soon as possible. The configuration of the specific environment variables needs to be done later after the environment is configured. Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
| * board: ge: bx50v3: fix display support for b{46}50v3Ian Ray2018-05-171-0/+2
| | | | | | | | | | | | | | | | | | Enable Video PLL to fix non-working display support for Bx50v3 internal displays. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
| * board: ge: bx50v3: unify two switch statementsNandor Han2018-05-171-10/+3
| | | | | | | | | | | | | | | | Simplify process_vpd() by unifying the switch statements handling product specific configurations. Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
| * board: ge: bx50v3: rename detect_baseboard functionIan Ray2018-05-171-2/+2
| | | | | | | | | | | | | | | | | | The detect_baseboard() function actually determines whether there is an internal LCD panel or not. Rename for clarity. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
| * board: ge: bx50v3: add winbond SPI NOR supportIan Ray2018-05-173-0/+3
| | | | | | | | | | | | | | Add winbond SPI NOR support, which is being used by newer hardware. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
* | Merge git://www.denx.de/git/u-boot-marvellTom Rini2018-05-1732-13/+2459
|\ \