summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | gpio: dwapb_gpio: Change to use dev_read_addr()Ley Foon Tan2018-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the driver to use dev_read_addr() which is safe both for flat trees and live trees. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
| * | | gpio: dwapb_gpio: Add reset ctrl to driverLey Foon Tan2018-09-151-2/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add code to reset all reset signals as in gpio DT node. A reset property is an optional feature, so only print out a warning and do not fail if a reset property is not present. If a reset property is discovered, then use it to deassert, thus bringing the IP out of reset. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
| * | | gpio: dwapb_gpio: Enable get_function supportLey Foon Tan2018-09-151-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabled get_function support for dwapb where the function will return the state of GPIO port. Signed-off-by: Chin Liang See <chin.liang.see@intel.com> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
* | | | Merge branch 'master' of git://git.denx.de/u-boot-usbTom Rini2018-09-161-1/+61
|\ \ \ \
| * | | | usb: ehci-generic: Add vbus-supply regulator supportPatrice Chotard2018-09-151-1/+61
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add vbus-supply regulator support. On some board vbus is not controlled by the phy but by an external regulator. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
* | | | Merge branch 'master' of git://git.denx.de/u-boot-shTom Rini2018-09-1637-179/+32
|\ \ \ \ | |_|/ / |/| | |
| * | | ARM: rmobile: Repair TMU clock on Gen2Marek Vasut2018-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Gen2 TMU is fed with fixed 32.5 MHz signal from CP . This is then divided by 4 in TMU. Fix the timer clock setting in Gen2. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: tmu: Zap get_tbclk and timer_read_counterMarek Vasut2018-09-154-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace those two functions with generic ones by defining the timer macros in include/config/*.h . Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: tmu: Clean up register usageMarek Vasut2018-09-151-43/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code uses all in all three TMU registers, drop the massive register layout structures and just define the required timer registers and use them throughout the code. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: tmu: Inline sh_tmu.hMarek Vasut2018-09-152-71/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The header contains only the TMU register layout, just inline it into the TMU timer implementation and drop the header completely. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: tmu: Clean up CONFIG_SH_TMU_CLK_FREQMarek Vasut2018-09-1531-38/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The R-Car Gen2 feeds the TMU with CONFIG_SYS_CLK_FREQ / 2, while the old SH parts use CONFIG_SYS_CLK_FREQ directly. Just put this into the TMU implementation and drop the CONFIG_SH_TMU_CLK_FREQ config option. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: tmu: Inline get_tmu0_clk_rate()Marek Vasut2018-09-152-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function just returns CONFIG_SH_TMU_CLK_FREQ, use the constant directly instead. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: tmu: Inline tmu_timer_{start,stop}()Marek Vasut2018-09-151-17/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These functions are always called for timer = 0, so drop the timer check. Since these functions are called from one place only and they are reduced to one line of code, just inline them. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: tmu: Simplify the tmu_bit mathMarek Vasut2018-09-151-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The tmu_bit value evaluates to (ffs(4) >> 1) - 1 = (3 >> 1) - 1 = 0. Just drop the tmu_bit completely as well as CONFIG_SYS_TMU_CLK_DIV. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: tmu: Clean up CONFIG_SYS_TMU_CLK_DIVMarek Vasut2018-09-1529-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This constant is always 4 , for all boards that exist. Define it once in arch/sh/lib/time.c and remove it from the configs. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
| * | | sh: sh7724: Drop EDMR macroMarek Vasut2018-09-151-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop the macro as it is never used and it collides with sh_eth.h macros. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * | | sh: sh7723: ap325rxa: Drop duplicate HIZCRB macroMarek Vasut2018-09-151-3/+1
| |/ / | | | | | | | | | | | | | | | | | | Drop the macro as it is defined in sh7723.h already. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* | | Merge branch 'master' of git://git.denx.de/u-boot-ubiTom Rini2018-09-141-3/+3
|\ \ \ | |/ / |/| |
| * | fs: ubifs: Add missing newlines in super.cStefan Roese2018-09-141-3/+3
| |/ | | | | | | | | | | | | | | I just stumbled over some cluttered UBIFS messages. It seems some newline chars are missing in the current U-Boot UBI source. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Heiko Schocher <hs@denx.de>
* | Revert "ARM: da850evm_direct_nor_defconfig: Enable DM_SERIAL"Tom Rini2018-09-142-5/+2
| | | | | | | | | | | | | | | | This commit is breaking several variants of da850, so: This reverts commit 5f389201dece76b484443773dce2525dc205f5a1. Signed-off-by: Tom Rini <trini@konsulko.com>
* | am3517_evm: Drop inadvertently added lineTom Rini2018-09-141-1/+0
| | | | | | | | | | | | | | I added in the CONFIG_MISC_INIT_R line by mistake when applying the previous patch, fix. Signed-off-by: Tom Rini <trini@konsulko.com>
* | Merge branch 'master' of git://git.denx.de/u-boot-i2cTom Rini2018-09-142-320/+0
|\ \
| * | i2c: Drop CONFIG_SYS_I2C_MXSTuomas Tynkkynen2018-09-142-320/+0
| |/ | | | | | | | | | | | | Last user of this driver went away in May 2017, in commit eb5ba3aefdf0f6 ("i2c: Drop use of CONFIG_I2C_HARD") Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
* | MMC: davinici_mmc: Enable CD and WP with DM and OF_CONTROLAdam Ford2018-09-111-0/+41
| | | | | | | | | | | | | | | | | | When used with a device tree, this will extract the card detect and write protect pins from the device tree and configure them accordingly. This assumes the GPIO_ACTIVE_LOW/HIGH is supported by da8xx_gpio. Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: am3517_evm: Disable DM_I2C_COMPATAdam Ford2018-09-112-2/+4
| | | | | | | | | | | | | | | | | | | | DM_I2C_COMPAT is somehow being enabled outside of Kconfig, so this explicitly undefines it in the header file, and brackets the I2C initialization around an #ifdef to not manually initialize the I2C controller when the DM_I2C is enabled. Signed-off-by: Adam Ford <aford173@gmail.com> Tested-by: Derald D. Woods <woods.technical@gmail.com>
* | Configs: am3517_evm: Remove TWL4030 referenceAdam Ford2018-09-111-0/+1
| | | | | | | | | | | | | | This SOM and kit do not nor have they ever had a twl4030 PMIC. This patch removes the references to it. Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: omap3_logic: Enable DM_PMIC and DM_REGULATORAdam Ford2018-09-111-0/+5
| | | | | | | | | | | | | | | | | | | | Enabling DM_PMIC, DM_REGULATOR_FIXED, and DM_REGULATOR_GPIO gives us the ability to better monitor voltages and enable hardware through the device tree. The TL4030 (TPS65950) is not yet migrated to DM, so this patch only enables the fixed and GPIO controlled regulators. Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: da850evm_direct_nor_defconfig: Enable DM_SERIALAdam Ford2018-09-112-2/+5
| | | | | | | | | | | | | | | | With DM enabled, this patch enables DM_SERIAL and removes the NS16550 initialization from da850_lowlevel since the driver will take care of that itself. Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: davinci: omapl138_lcdk: Enable DM_MMCAdam Ford2018-09-112-0/+3
| | | | | | | | | | | | | | | | With DM_MMC now available, this patch enables DM_MMC for the omapl138_lcdk in U-Boot and keeps the older style for SPL. Signed-off-by: Peter Howard <phoward@gme.net.au> Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: davinci: da850evm: Support DM_MMCAdam Ford2018-09-112-0/+3
| | | | | | | | | | | | | | With the updated driver available to support DM_MMC, this patch enables DM_MMC for da850evm. Signed-off-by: Adam Ford <aford173@gmail.com>
* | MMC: Enable DM_MMC for DavinciAdam Ford2018-09-111-11/+147
| | | | | | | | | | | | | | | | | | | | | | With CONFIG_BLK becoming a requirement, the Davinci MMC driver needs to be updated with DM_MMC support. Since SPL is tiny and many boards do not support DM in SPL, this retains the backwards compatibility for those boards who need to initialize MMC manually in SPL. Signed-off-by: Peter Howard <phoward@gme.net.au> Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: omap3_logic: Enable PinctrlAdam Ford2018-09-111-0/+2
| | | | | | | | | | | | | | | | The simple pinctrl driver currently available works with the omap3. Enabling this will use the device tree to automatically set the pin-muxing for various drivers. Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: omap3_logic_defconfig: Convert to DM_SPLAdam Ford2018-09-112-0/+34
| | | | | | | | | | | | | | | | The OF_CONTROL and OF_PLATDATA are not really useful without DM. This patch supports DM_SPL, but it requires manual references both Serial and MMC. Signed-off-by: Adam Ford <aford173@gmail.com>
* | mmc: omap_hsmmc: Make DM_GPIO calls dependent on DM_GPIOAdam Ford2018-09-111-5/+9
| | | | | | | | | | | | | | | | The getcd and getwp functions when DM_MMC is enabled are assumming the DM_GPIO is enabled. In cases (like SPL) where DM_GPIO may not be enabled, wrap these calls in an #ifdef Signed-off-by: Adam Ford <aford173@gmail.com>
* | DM: serial: ti_omap3_common: Don't define serial unless !DM_SERIALAdam Ford2018-09-111-3/+1
| | | | | | | | | | | | | | | | | | | | The serial port was being manually configured during SPL build, however in preparation to allow DM in SPL, this needs to change to be based on whether or not DM_SERIAL is enabled because, soon the assumption that SPL means no DM may not be accurate. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | ARM: mach-omap2: Don't initialize I2C if DM_I2C is enabledAdam Ford2018-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | boot-common.c checks to see if I2C is enabled in SPL, but it doens't check for DM_I2C before initializing it. This will now only initialize the I2C is the DM_I2C is not enabled to avoid initializing it more than once. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | DM: omap_gpio: Reduce overhead when used with OF_PLATDATAAdam Ford2018-09-111-3/+4
| | | | | | | | | | | | | | | | | | | | | | Platforms with limited resources in SPL may enable OF_PLATDATA, this limits some of the library functions and cannot extract data from the device tree. This patch adds additional wrappers around these functions to only allow them when OF_CONTROL is enabled and OF_PLATDATA is not. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | DM: OMAP24XX_I2C: Reduce overhead when used with OF_PLATDATAAdam Ford2018-09-111-6/+10
| | | | | | | | | | | | | | | | | | | | Platforms with limited resources in SPL may enably OF_PLATDATA, this limits some of the library functions and cannot extract data from the device tree. This patch adds additional wrappers around these functions to only allow them when OF_CONTROL is enabled and OF_PLATDATA is not. Signed-off-by: Adam Ford <aford173@gmail.com>
* | DM: I2C: Reduce overhead when used with OF_PLATDATAAdam Ford2018-09-111-4/+4
| | | | | | | | | | | | | | | | | | | | Platforms with limited resources in SPL may enably OF_PLATDATA, this limits some of the library functions and cannot extract data from the device tree. This patch adds additional wrappers around these functions to only allow them when OF_CONTROL is enabled and OF_PLATDATA is not. Signed-off-by: Adam Ford <aford173@gmail.com>
* | regulator: pbias: Add additional compatible flagsAdam Ford2018-09-111-0/+4
| | | | | | | | | | | | | | | | The driver was developed with references for more than just dra7, but never included. At least for omap3, this appears to be functional. Signed-off-by: Adam Ford <aford173@gmail.com>
* | GPIO: omap_gpio: Fix gpio name names with device treeAdam Ford2018-09-111-3/+1
| | | | | | | | | | | | | | | | | | | | | | The GPIO bank numbers do not appear in the device tree, so this patch makes the gpio name based on the address (ie gpio@49054000_31 vs gpio4_31) adam Signed-off-by: Adam Ford <aford173@gmail.com> Tested-by: Derald D. Woods <woods.technical@gmail.com>
* | ARM: dts: da850-evm-u-boot: Remove redundant entriesAdam Ford2018-09-111-11/+0
| | | | | | | | | | | | | | | | With the re-sync from Linux 4.18, several entries in da850-evm-u-boot.dtsi are no longer necessary, so this patch removes them. Signed-off-by: Adam Ford <aford173@gmail.com>
* | arm: dts: da850: Re-sync da850-evm.dts from Linux 4.18Adam Ford2018-09-111-136/+172
| | | | | | | | Signed-off-by: Adam Ford <aford173@gmail.com>
* | dm: gpio: da8xx_gpio: Add support for GPIO_ACTIVE_LOW/HIGHAdam Ford2018-09-111-0/+13
| | | | | | | | | | | | | | With DM and device tree support, let's use the GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW from the device tree as they are intended. Signed-off-by: Adam Ford <aford173@gmail.com>
* | DM: GPIO: Fix da8xx GPIO indexing over GPIO 32Adam Ford2018-09-111-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The GPIO banks are broken up into two 16-bit registers for each bank set. Unfortunately, the math that determines how to shift blindly shifted by the number of the gpio. This worked for gpio numbers under 32, but higher gpio's are broken. This fixes the gpio index, so the bank is passed and the shift amount within the register is passed now instead of the gpio number. Fixes: 8e51c0f25406("dm: gpio: Add DM compatibility to GPIO driver for Davinci") Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: configs: Add da850evm_nand to boot from NANDAdam Ford2018-09-113-3/+69
| | | | | | | | | | | | | | | | | | | | The DA850-EVM supports booting from NAND when used with the UI expander board. da850evm_nand will create an ais file that can be burned to NAND and booted while storing the env in NAND along with some partitions tables for storing kernel, dtb and rootfs in NAND. Signed-off-by: Adam Ford <aford173@gmail.com>
* | ARM: da850evm_direct_nor: Enable CONFIG_BLKAdam Ford2018-09-111-0/+1
|/ | | | | | | | At least for now, CONFIG_BLK is working, but this variant of the da850evm doesn't need/support SPL so it's OK to enable it here. Signed-off-by: Adam Ford <aford173@gmail.com>
* Merge branch 'master' of git://git.denx.de/u-boot-uniphierTom Rini2018-09-1120-90/+68
|\
| * ARM: uniphier: remove ad-hoc clock enabling for EHCIMasahiro Yamada2018-09-114-15/+0
| | | | | | | | | | | | | | | | The MIO clock is enabled by default, and the STDMAC clock is enabled by the clk driver. The ad-hoc way to enable the clock is no longer needed. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * mmc: uniphier-sd: sync with LinuxMasahiro Yamada2018-09-1110-57/+49
| | | | | | | | | | | | Sync with the driver code and the binding recently merged in Linux. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>