summaryrefslogtreecommitdiff
path: root/board
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git://git.denx.de/u-boot-i2cTom Rini2017-05-1519-226/+23
|\
| * i2c: omap: Modify code to work without CONFIG_I2C_HARDSimon Glass2017-05-152-2/+4
| | | | | | | | | | | | | | | | Drop use of this long-deprecated option. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
| * i2c: keymile: Drop use of CONFIG_I2C_HARDSimon Glass2017-05-152-9/+0
| | | | | | | | | | | | Drop use of this long-deprecated option. Signed-off-by: Simon Glass <sjg@chromium.org>
| * i2c: pdm360ng: Drop use of CONFIG_I2C_HARDSimon Glass2017-05-151-30/+0
| | | | | | | | | | | | Drop use of this long-deprecated option. Signed-off-by: Simon Glass <sjg@chromium.org>
| * i2c: cm5200: Drop use of CONFIG_I2C_HARDSimon Glass2017-05-151-3/+3
| | | | | | | | | | | | Drop use of this long-deprecated option. Signed-off-by: Simon Glass <sjg@chromium.org>
| * i2c: powerpc: Remove use of CONFIG_HARD_I2CSimon Glass2017-05-155-5/+0
| | | | | | | | | | | | Drop use of this long-deprecated option for powerpc. Signed-off-by: Simon Glass <sjg@chromium.org>
| * i2c: Drop use of CONFIG_I2C_HARDSimon Glass2017-05-159-178/+17
| | | | | | | | | | | | | | | | | | This option is pretty old. It predates CONFIG_SYS_I2C which is itself deprecated in favour of driver model. Disable it for all boards. Also drop I2C options which depend on this. Signed-off-by: Simon Glass <sjg@chromium.org>
* | omap3: omap3_logic: switch to using TI_COMMON_CMD_OPTIONAdam Ford2017-05-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | Enable TI_COMMON_CMD_OPTIONS and remove similar options from the defconfig. Updated with savedefconfig CMD_USB isn't enabled yet. I have some testing to do with musb. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* | Kconfig: USB: Migrate CONFIG_USB_EHCI to CONFIG_USB_EHCI_HCDTom Rini2017-05-1511-23/+23
| | | | | | | | | | | | | | | | | | | | In order to be able to migrate the various SoC EHCI CONFIG options we first need to finish the switch from CONFIG_USB_EHCI to CONFIG_USB_EHCI_HCD. Cc: Marek Vasut <marex@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Marek Vasut <marex@denx.de>
* | omap3: Drop CONFIG_OMAP3_EVM, switch to CONFIG_TARGET_OMAP3_EVM when neededTom Rini2017-05-151-12/+0
|/ | | | | | | | | | | | | | We make use of CONFIG_OMAP3_EVM today to know when to do a specific tweak in MUSB. This can be tested on via CONFIG_TARGET_OMAP3_EVM instead, so switch there so we can drop the now unused symbol CONFIG_OMAP3_EVM. In investigating what to do about the symbol usage we see that the cairo board defines the same function, but never called it (as it does not define CONFIG_OMAP3_EVM) and was just returning anyhow, so drop that function from that board. Cc: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr> Cc: Marek Vasut <marex@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge branch 'master' of git://git.denx.de/u-boot-mipsTom Rini2017-05-132-0/+28
|\
| * boston: Setup memory ranges in FDT provided to LinuxPaul Burton2017-05-122-0/+28
| | | | | | | | | | | | | | | | | | | | | | The boston memory map isn't suited to the simple "all memory starting from 0" approach that the MIPS arch_fixup_fdt() implementation takes. Instead we need to indicate the first 256MiB of DDR from 0 and the rest from 0x90000000. Implement ft_board_setup to do that. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | davinci: omapl138_lcdk: add support for TI_COMMON_CMD_OPTIONSSekhar Nori2017-05-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | OMAP-L138 LCDK board can benefit from using the commonly used commands enabled by TI_COMMON_CMD_OPTIONS. Source the relevant Kconfig file so TI_COMMON_CMD_OPTIONS can be enabled for OMAP-L138 LCDK board in a future patch. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* | m5253demo: Fix static variable in non-static inline function warningTom Rini2017-05-121-2/+2
| | | | | | | | | | | | | | | | | | The function 'spin_wheel' is declared as inline, but not static and thus we see warnings that 'w' and 'p' are declared static in a non-static inline function. Correct this by marking spin_wheel as static inline. Cc: TsiChung Liew <Tsi-Chung.Liew@freescale.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* | colibri_imx7: Fix unused variable warningTom Rini2017-05-121-16/+0
| | | | | | | | | | | | | | The variable usdhc3_emmc_pads is never referenced, drop. Cc: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* | apalis_imx6: Fix unused variable warningTom Rini2017-05-121-47/+0
| | | | | | | | | | | | | | | | The variable vga_pads is never referenced, drop. Cc: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
* | pcm058: Fix unused variable warningsTom Rini2017-05-121-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | The variable nfc_pads is only referenced when CONFIG_CMD_NAND is set, add a gaurd. The variable gpio_pads is never referenced, drop it. The variable usdhc4_pads are only referenced when we do not have CONFIG_CMD_NAND set and we are not doing an SPL build, modify the existing guard. Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* | gdsys: P1022: Fix unused variable warningsTom Rini2017-05-121-25/+24
| | | | | | | | | | | | | | | | | | The variables prg_stage2_prepare, prg_stage2_success and prg_stage_fail are only referenced when CCDM_SECOND_STAGE is set, move these to be by the existing guard. Cc: Dirk Eibach <eibach@gdsys.de> Signed-off-by: Tom Rini <trini@konsulko.com>
* | gw_ventana: Fix unused variable warningsTom Rini2017-05-122-29/+1
| | | | | | | | | | | | | | | | | | The variable nfc_pads is only referenced when CONFIG_CMD_NAND is set, move the existing guard and drop a now redundant comment. The variable gwproto_gpio_pads is never referenced, remove it. Cc: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* | mx6ul_14x14_evk: Fix unused variable warningTom Rini2017-05-121-0/+2
| | | | | | | | | | | | | | | | | | | | The variable usdhc1_pads is only referenced during SPL builds, add a guard. Cc: Stefano Babic <sbabic@denx.de> Cc: Peng Fan <peng.fan@nxp.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* | mx6slevk: Fix unused variable warningTom Rini2017-05-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | The variable usdhc1_pads is only referenced during SPL builds, add a guard. Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
* | cgtqmx6eval: Fix unused variable warningTom Rini2017-05-121-0/+2
| | | | | | | | | | | | | | The variable usdhc2_pads is only referenced during SPL builds, add a guard. Cc: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Tom Rini <trini@konsulko.com>
* | ot1200: Fix unused variable warningTom Rini2017-05-121-4/+0
| | | | | | | | | | | | | | | | The variable pwm_pad is never referenced, drop. Cc: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
* | socrates: Fix a misleading indentation warningTom Rini2017-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | With gcc-6 and later we see a warning about the fact that we have a construct of "if (test);\n\tstatement". Upon reviewing the code, the intention here is as the compiler suggests, we only want to execute the indented statement if the test was true. Cc: Sergei Poselenov <sposelenov@emcraft.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* | arm: am33xx: Add support for mulitiple PLL input frequenciesLokesh Vutla2017-05-122-43/+52
| | | | | | | | | | | | | | | | | | | | am335x supports various sysclk frequencies which can be determined using sysboot pins. PLLs should be configures based on this sysclk frequency. Add PLL configurations for all supported frequencies. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* | board: am335x: Introduce scale_vcoresLokesh Vutla2017-05-121-119/+148
| | | | | | | | | | | | | | Update voltages before programming plls. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
* | am33xx: Provide platform data for mmcLokesh Vutla2017-05-111-0/+32
|/ | | | | Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* Merge git://git.denx.de/u-boot-rockchipTom Rini2017-05-103-5/+80
|\ | | | | | | | | | | This adds a new firefly-rk3399 board, MIPI support for rk3399 and rk3288, rk818 pmic support, mkimage improvements for rockchip and a few other things.
| * rockchip: board: evb_rk3399: initialize pwm0 for dispaly backlightEric Gao2017-05-101-0/+7
| | | | | | | | | | | | | | | | | | Enable pwm0 for display of rk3399 evb board. The PWM do not have decicated interrupt number in dts and can not get periph_id by pinctrl framework. So init them here. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: tinker: set ethaddr in late initJonas Karlman2017-05-101-0/+28
| | | | | | | | | | | | | | | | | | | | | | Set ethernet mac address in late init for Tinker Board, prevents getting a random mac address each boot. Read mac address from eeprom, first 6 bytes from m24c08@50. Same as /etc/init.d/rockchip.sh on Tinker OS. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: ARM64: puma-rk3399: get DRAM size from DMC initPhilipp Tomsich2017-05-101-1/+25
| | | | | | | | | | | | | | | | | | With the RK3399 DRAM controller (DMC) driver providing all the infrastructure, retrieve the DRAM size from the DMC init in the board-specific code (instead of hard-coding) for the RK3399-Q7 (Puma). Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: rk3399: use actual dram sizeKever Yang2017-05-101-1/+18
| | | | | | | | | | | | | | | | Since our sdram driver is ready, we can use the actual size instead of hard code. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
| * rockchip: rk3399: use regulators_enable_boot_on() to init regulatorKever Yang2017-05-101-3/+2
| | | | | | | | | | | | | | | | Use regulators_enable_boot_on() instead of init regulators one by one, the interface can init all the regulators with regulator-boot-on property. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
* | Merge branch 'master' of git://git.denx.de/u-boot-mipsTom Rini2017-05-1019-10/+134
|\ \ | |/ |/|
| * mips: bmips: add NeufBox 4 (Sercomm) boardÁlvaro Fernández Rojas2017-05-104-0/+30
| | | | | | | | | | | | | | This serves as an example for bcm6358-leds. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * MIPS: add BMIPS Comtrend VR-3032u boardÁlvaro Fernández Rojas2017-05-104-0/+30
| | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * MIPS: add BMIPS Comtrend AR-5387un boardÁlvaro Fernández Rojas2017-05-104-0/+30
| | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * MIPS: add BMIPS Huawei HG556a boardÁlvaro Fernández Rojas2017-05-104-0/+30
| | | | | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * MIPS: tl-wdr4300: remove debug_uart_init callÁlvaro Fernández Rojas2017-05-101-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | In order to add a generic MIPS debug_uart_init call right before the call to board_early_init_f, we need to remove all calls to debug_uart_init from every MIPS boards. WDR4300 doesn't provide a board_debug_uart_init and configures pinmux in board_early_init_f instead. Since I have no idead of what's the needed uart pinmux config, I copied the whole pinmux config to a new function that is called from board_early_init_f if CONFIG_DEBUG_UART_BOARD_INIT is not enabled. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * MIPS: QCA AP143: remove debug_uart_init callÁlvaro Fernández Rojas2017-05-101-3/+0
| | | | | | | | | | | | | | | | In order to add a generic MIPS debug_uart_init call right before the call to board_early_init_f, we need to remove all calls to debug_uart_init from every MIPS boards. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
| * MIPS: QCA AP121: remove debug_uart_init callÁlvaro Fernández Rojas2017-05-101-3/+0
| | | | | | | | | | | | | | | | In order to add a generic MIPS debug_uart_init call right before the call to board_early_init_f, we need to remove all calls to debug_uart_init from every MIPS boards. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* | omap3_logic: Add Device Tree Support and more DM driversAdam Ford2017-05-092-10/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch also removes all the excessive code for NS16550 intiailization as the device tree can do that now. This also adds DM_I2C and DM_MMC since the overlying drivers have the built-in support already. The corresponding include/config/omap3_logic.h also reduced in size due to the new device tree support. Signed-off-by: Adam Ford <aford173@gmail.com> Changes in V2: Retain Auto-detect ability between SOM-LV and Torpedo Split this off from the device sub submissions
* | Allow boards to initialize the DT at runtime.Alex Deymo2017-05-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some boards like the Raspberry Pi the initial bootloader will pass a DT to the kernel. When using U-Boot as such kernel, the board code in U-Boot should be able to provide U-Boot with this, already assembled device tree blob. This patch introduces a new config option CONFIG_OF_BOARD to use instead of CONFIG_OF_EMBED or CONFIG_OF_SEPARATE which will initialize the DT from a board-specific funtion instead of bundling one with U-Boot or as a separated file. This allows boards like the Raspberry Pi to reuse the device tree passed from the bootcode.bin and start.elf firmware files, including the run-time selected device tree overlays. Signed-off-by: Alex Deymo <deymo@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* | bcm2835_wdt: support for the BCM2835/2836 watchdogPaolo Pisati2017-05-091-0/+4
| | | | | | | | Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
* | arm: rpi: Add a TODO to move all messages into the msg handlerSimon Glass2017-05-091-1/+1
| | | | | | | | | | | | | | The board code should all move into msg.c for consistency. Add a TODO for this. Signed-off-by: Simon Glass <sjg@chromium.org>
* | dm: mmc: rpi: Convert Raspberry Pi to driver model for MMCSimon Glass2017-05-091-13/+0
| | | | | | | | | | | | | | | | | | Convert the bcm2835 SDHCI driver over to support CONFIG_DM_MMC and move all boards over. There is no need to keep the old code since there are no other users. Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Simon Glass <sjg@chromium.org>
* | arm: rpi: Add a function to obtain the MMC clockSimon Glass2017-05-091-12/+4
| | | | | | | | | | | | Move this code into the new message handler file. Signed-off-by: Simon Glass <sjg@chromium.org>
* | arm: rpi: Add a file to handle messagesSimon Glass2017-05-091-32/+3
|/ | | | | | | | | | | | | | | The bcm283x chips provide a way for the ARM core to communicate with the graphics processor, which is in charge of many things. This is handled by way of a message prototcol. At present the code for sending message (and receiving a reply) is spread around U-Boot, primarily in the board file. This means that sending a message from a driver requires duplicating the code. Create a new message implementation with a function to support powering on a subsystem as a starting point. Signed-off-by: Simon Glass <sjg@chromium.org>
* Merge git://git.denx.de/u-boot-dmTom Rini2017-05-0912-415/+78
|\
| * board: at91sam9263ek: Enable early debug UARTWenyou Yang2017-05-091-0/+13
| | | | | | | | | | | | | | | | Enable the early debug UART to debug problems when an ICE or other debug mechanism is not available. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by: Simon Glass <sjg@chromium.org>