summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* x86: tangier: acpi: add I2C6 nodeGeorgii Staroselskii2018-09-171-0/+10
| | | | | | | | | Now that we have I2C#6 working, it's time to add a corresponsing ACPI binding. Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* x86: dts: edison: configure I2C#6 pinsGeorgii Staroselskii2018-09-171-0/+22
| | | | | | | | | | | | | Now that we have the pinctrl driver for Merrifield in place we can make use of it and set I2C#6 pins appropriately. Initial configuration came from the firmware. Which quite likely has been used in the phones, where that is not part of Atom peripheral, is in use. Thus we need to override the leftover. Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* x86: tangier: pinmux: add API to configure protected pinsGeorgii Staroselskii2018-09-172-1/+195
| | | | | | | | | | | | | | | | | | | | | | | | | This API is going to be used to configure some pins that are protected for simple modification. It's not a comprehensive pinctrl driver but can be turned into one when we need this in the future. Now it is planned to be used only in one place. So that's why I decided not to pollute the codebase with a full-blown pinctrl-merrifield nobody will use. This driver reads corresponding fields in DT and configures pins accordingly. The "protected" flag is used to distinguish configuration of SCU-owned pins from the ordinary ones. The code has been adapted from Linux work done by Andy Shevchenko in pinctrl-merrfifield.c Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> [bmeng: fix build warning] Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
* x86: cpu: introduce scu_ipc_raw_command()Georgii Staroselskii2018-09-172-0/+55
| | | | | | | | | | | | | | This interface will be used to configure properly some pins on Merrifield that are shared with SCU. scu_ipc_raw_command() writes SPTR and DPTR registers before sending a command to SCU. This code has been ported from Linux work done by Andy Shevchenko. Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* x86: drop custom CONFIG_SYS_BAUDRATE_TABLE defineChristian Gmeiner2018-09-171-2/+0
| | | | | | | This will add support for a baud rate of 57600. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* 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>
| * ARM: uniphier: enable CONFIG_CMD_UBIMasahiro Yamada2018-09-112-0/+2
| | | | | | | | | | | | | | Now that CONFIG_SYS_MONITOR_LEN increased, we have room for enabling more options again. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * ARM: uniphier: increase CONFIG_SYS_MONITOR_LEN againMasahiro Yamada2018-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | With the migration to distro-boot, the size of the U-Boot proper image for uniphier_v7_defconfig exceeded the current limit, 576KB. Increase it to 832KB. CONFIG_SYS_UBOOT_BASE must be moved as well to avoid the image over-wrap because the boot ROM of Pro4, Pro5, PXs2/LD6b loads the SPL to the physical address 0x100000. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
| * ARM: dts: uniphier: sync DT with Linux 4.19-rc1Masahiro Yamada2018-09-1110-16/+15
| | | | | | | | Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
* | Merge tag 'fpga-for-v2018.11' of git://git.denx.de/u-boot-microblazeTom Rini2018-09-114-324/+904
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | FPGA changes for v2018.11 - add fpga tests to cover fpga commands - fpga Kconfig cleanup - fix cmd/fpga.c - add support for missing fpga loadmk commands - add fpga fragment to MAINTAINERS
| * | MAINTAINERS: Add myself as the FPGA maintainerMichal Simek2018-09-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | FPGA subsystem requires special care that's why it should be maintained via one tree. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | cmd: fpga: Fix loads commandMichal Simek2018-09-111-112/+36
| | | | | | | | | | | | | | | | | | | | | Convert last loads command to fpga subcommands. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | cmd: fpga: Use CMD_RET_FAILURE instead of simple 1Michal Simek2018-09-111-7/+7
| | | | | | | | | | | | | | | | | | | | | Use standard return command failure macro. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | cmd: fpga: Add support for missing fpga loadmk commandsMichal Simek2018-09-111-20/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are ways how to call fpga loadmk 1. Full command fpga loadmk [dev] [address] 2. Dev setup via variable set fpga [dev] fpga loadmk [address] 3. Address setup via variable set fpgadata [address] fpga loadmk [dev] 4. Dev and address setup via variables set fpga [dev] set fpgadata [address] fpga loadmk Before this patch only cases 1 and 3 are working but the part of code was trying to support also cases 2 and 4. This patch is adding support for cases 2 and 4 to have all of combinations supported. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | cmd: fpga: Fix loadmk commandMichal Simek2018-09-111-115/+123
| | | | | | | | | | | | | | | | | | | | | | | | Convert loadmk command to fpga subcommands. Not all combinations are working but they have never worked properly. This will be fixed later. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | cmd: fpga: Fix loadfs commandMichal Simek2018-09-111-30/+28
| | | | | | | | | | | | | | | | | | | | | Convert loadfs command to fpga subcommands. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | cmd: fpga: Fix dump and all direct fpga load commandsMichal Simek2018-09-111-44/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | Separate dump, load, loadb, loadp and loadbp commands to separate functions to make it clear how they are called and what parameters they need. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * | cmd: fpga: Extract fpga info command to separate functionMichal Simek2018-09-111-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move fpga info to U_BOOT_CMD_MKENT subcommand. Also use strtol instead of simple_strtoul. The reason is that if -1 is passed (or fpga info without "fpga" variable) the list of all fpgas is shown. This functionality is in the fpga core but it couldn't be performed. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>