summaryrefslogtreecommitdiff
path: root/arch
Commit message (Collapse)AuthorAgeFilesLines
* arm: dts: am335x-pdu001: Sync with Linux 5.0-rc2Felix Brack2019-01-181-8/+17
| | | | | | This patch synchronizes the PDU001 board DTS file with the one used by Linux 5.0-rc2. Signed-off-by: Felix Brack <fb@ltec.ch>
* x86: Kconfig: spelling fixesChris Packham2019-01-182-2/+2
| | | | | Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* arm: Kconfig: spelling fixesChris Packham2019-01-181-5/+5
| | | | Signed-off-by: Chris Packham <judge.packham@gmail.com>
* mach-snapdragon: db410: pinctrl: fix pin countRamon Fried2019-01-181-3/+3
| | | | | | | Pin count in APQ8016 was wrong, fix that. Fixes: ad97051b7ff6 ("mach-snapdragon: Introduce pinctrl driver") Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* dts: db410: fix indentationRamon Fried2019-01-181-1/+1
| | | | Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* Merge tag 'mips-pull-2019-11-16' of git://git.denx.de/u-boot-mipsTom Rini2019-01-1732-166/+1457
|\ | | | | | | | | | | | | | | | | | | - MIPS: mscc: various enhancements for Luton and Ocelot platforms - MIPS: mscc: added support for Jaguar2 platform - MIPS: optimised SPL linker script - MIPS: bcm6368: fix restart flow issues - MIPS: fixed CONFIG_OF_EMBED warnings for all MIPS boards - MIPS: mt7688: small fixes and enhancements - mmc: compile-out write support if disabled
| * mips: mt7688: gardena-smart-gateway: Enable green power LED on startupStefan Roese2019-01-161-1/+1
| | | | | | | | | | | | | | Set the correct power-up state (default-state) of the green power LED. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
| * MSCC: Add board support for Jaguar2 SOC familyHoratiu Vultur2019-01-162-2/+4
| | | | | | | | | | | | | | Add board support and configuration for Jaguar2 SOC family. The detection of the board type in this family is based on the phy ids. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
| * MSCC: add device tree for Serval2 boardHoratiu Vultur2019-01-161-0/+60
| | | | | | | | | | | | Add device tree based on evaluation board pcb112. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
| * MSCC: Add device tree for Jaguar2-48 boardHoratiu Vultur2019-01-161-0/+74
| | | | | | | | | | | | Add device tree based on evaluation board pcb111. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
| * MSCC: Add device tree for Jaguar2 boardHoratiu Vultur2019-01-162-0/+261
| | | | | | | | | | | | Add device tree based on evaluation board pcb110. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
| * MSCC: Add support for Jaguar2 SOC familyHoratiu Vultur2019-01-1610-8/+460
| | | | | | | | | | | | | | As the Ocelot and Luton SoCs, this family of SoCs are found in Microsemi Switches solution. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
| * mips: mscc: DT: Update luton device tree to use fast SPI driverLars Povlsen2019-01-161-13/+2
| | | | | | | | | | | | | | | | | | | | Thes patch change the luton base device tree to use the newly added SPI bitbang driver. It also updates the "mscc_luton_defconfig" to use the new driver. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
| * mips: spi: mscc: Add fast bitbang SPI driverLars Povlsen2019-01-161-0/+38
| | | | | | | | | | | | | | | | | | | | This patch add a new SPI driver for MSCC SOCs that does not sport the designware SPI hardware controller. Performance gain: 7.664 seconds vs. 17.633 for 1 Mbyte write. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
| * MIPS: jz47xx: remove custom u-boot-spl.ldsDaniel Schwierzeck2019-01-161-50/+0
| | | | | | | | | | | | | | | | | | There is no real difference between the generic variant and the custom variant except that the generic variant is more optimised. This also saves 24 Bytes in the SPL binary. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
| * MIPS: optimize and fix ELF sectionsDaniel Schwierzeck2019-01-162-68/+136
| | | | | | | | | | | | | | | | | | | | | | Discard ABI related sections which are not required for debugging. Rearrange debug sections similar to Linux. Remove the remaining explicitely specified sections in the unused part because those sections are not created anymore or because the linker puts them by default at the end of the ELF binary. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Tested-by: Ezequiel Garcia <ezequiel@collabora.com>
| * mips: ocelot: DT: Enable use of serial gpioLars Povlsen2019-01-163-0/+124
| | | | | | | | | | | | | | | | This enables the use of the MSCC serial GPIO driver on the MSCC VCoreIII 'ocelot' SOC, and add gpio-leds nodes to the pcb123 and pcb120 DT. Signed-off-by: Lars Povlsen <lars.povlsen@microsemi.com>
| * mips: luton: DT: Enable use of serial gpioLars Povlsen2019-01-163-0/+68
| | | | | | | | | | | | | | This enables the use of the MSCC serial GPIO driver, and add gpio-leds nodes to the 'luton' pcb090 and pcb091 DT. Signed-off-by: Lars Povlsen <lars.povlsen@microsemi.com>
| * mips: mscc: luton+ocelot: Remove board config options, do probingLars Povlsen2019-01-163-28/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we are moving to multi-dtb and board detection, remove static board config options, and introduce board probing instead. Luton: This add single-binary support for the two MSCC luton-based reference boards - pcb090 and pcb091. The SoC chip ID is used to determine the board type. Ocelot: This add single-binary support for the two MSCC ocelot-based reference boards - pcb120 and pcb123. The PHY ids on specific ports are used to determine the board type. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
| * mips: luton: DT: Add pcb090Lars Povlsen2019-01-161-0/+36
| | | | | | | | | | | | | | | | | | | | This prepares individual device trees for MSCC luton-based reference boards - pcb090 and pcb091. Note: Even though the devices trees are quite common, they will differ significantly in coming patches. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
| * mips: mscc: Add generic GPIO control utility functionLars Povlsen2019-01-165-1/+40
| | | | | | | | | | | | | | The GPIO control function can be used for controlling alternate functions associated with a GPIO. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
| * mips: mscc: Add generic PHY MIIM utility functionsLars Povlsen2019-01-165-1/+145
| | | | | | | | | | | | | | The PHY MIIM utility functions can/will be used for board detection purposes. Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
* | arm: bootm: fix sp detection at end of address rangeSimon Goldschmidt2019-01-161-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes 'arch_lmb_reserve()' for ARM that tries to detect in which DRAM bank 'sp' is in. This code failed if a bank was at the end of physical address range (i.e. size + length overflowed to 0). To fix this, calculate 'bank_end' as 'size + length - 1' so that such banks end at 0xffffffff, not 0. Fixes: 15751403b6 ("ARM: bootm: don't assume sp is in DRAM bank 0") Reported-by: Frank Wunderlich <frank-w@public-files.de> Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
* | Merge tag 'dm-pull-15jan19' of git://git.denx.de/u-boot-dmTom Rini2019-01-156-15/+29
|\ \ | | | | | | | | | | | | | | | | | | | | | Fix recent changes to serial API for driver model Buildman clang support and a few fixes Small fixes to 'dm tree' and regmap test Improve sandbox build compatibility A few other minor fixes
| * | sandbox: i2c_emul_find() No emulators for device 'rtc@43'Heinrich Schuchardt2019-01-142-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when running the date command on sandbox_defconfig an error occurs: ./u-boot -D u-boot.dtb => date i2c_emul_find() No emulators for device 'rtc@43' ## Get date failed Correct the references to the emulator devices in the sandbox device trees using test.dts as a reference. Fixes: 031a650e1309 ("dm: sandbox: i2c: Use new emulator parent uclass") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Dropped unnecessary #address/size-cells property in i2c_emul: Signed-off-by: Simon Glass <sjg@chromium.org>
| * | dm: serial: Adjust serial_getinfo() to use proper APISimon Glass2019-01-141-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | All driver-model functions should have a device as the first parameter. Update this function accordingly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
| * | dm: serial: Adjust serial_getconfig() to use proper APISimon Glass2019-01-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | All driver-model functions should have a device as the first parameter. Update this function accordingly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
| * | sandbox: Correct SDL build flagsSimon Glass2019-01-142-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | The check for CONFIG_SANDBOX_SDL in config.mk does not work since the build config is not available by the time that file is included. Remove it so that we always call sdl-config except when NO_SDL is used. Signed-off-by: Simon Glass <sjg@chromium.org>
| * | sandbox: add memset_io(..), memcpy_fromio(..) and memcpy_toio(..)Christian GMEINER2019-01-141-0/+12
| |/ | | | | | | | | | | | | These functions could be used by drivers. Signed-off-by: Christian GMEINER <christian.GMEINER@bachmann.info> Reviewed-by: Simon Glass <sjg@chromium.org>
* | Merge git://git.denx.de/u-boot-riscvTom Rini2019-01-154-11/+31
|\ \ | | | | | | | | | | | | 1. Improve cache implementation. 2. Fix and improve standalone applications
| * | riscv: qemu: define standalone load addressLukas Auer2019-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to define the standalone load address to use standalone application on qemu-riscv. Define it and set it equal to CONFIG_SYS_LOAD_ADDR. To not overwrite it, change the assigned of CONFIG_STANDALONE_LOAD_ADDR in arch/riscv/config.mk to a conditional one. Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | riscv: remove RISC-V standalone linker scriptLukas Auer2019-01-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Standalone applications do not require a separate linker script and can use the default linker script of the compiler instead. Remove the RISC-V standalone linker script. Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
| * | riscv: use invalidate/flush_*cache_range functions in cache.cLukas Auer2019-01-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The flush_cache() function in lib/cache.c ignores its arguments and flushes the complete data and instruction caches. Use the invalidate/flush_*cache_range() functions instead to only flush the requested memory region. This patch does not change the current behavior of U-Boot, since the implementation of the invalidate/flush_*cache_range() functions flush the complete data and instruction caches. It is in preparation for CPUs with the necessary functionality for flushing a selectable memory range. Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * | riscv: move the AX25-specific implementation of flush_dcache_allLukas Auer2019-01-152-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fence instruction is used to enforce device I/O and memory ordering constraints in RISC-V. It can not be relied on to directly affect the data cache on every CPU. Andes' AX25 does not have a coherence agent. Its fence instruction flushes the data cache and is used to keep data in the system coherent. The implementation of flush_dcache_all in lib/cache.c is therefore specific to the AX25. Move it into the AX25-specific cache.c in cpu/ax25/. This also adds a missing new line between flush_dcache_all and flush_dcache_range in lib/cache.c. Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| * | riscv: clarify error message on undefined exceptionsLukas Auer2019-01-151-1/+2
| |/ | | | | | | | | | | | | | | | | | | Undefined exceptions are treated as reserved. This is not clearly communicated to the user. Adjust the error message to clarify that a reserved exception has occurred and add additional details. Fixes: e8b522b ("riscv: treat undefined exception codes as reserved") Signed-off-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* | am335x: igep003x: Add Device Tree Support and DM_MMC driverEnric Balletbo i Serra2019-01-153-1/+420
| | | | | | | | | | | | | | This adds device tree and the DM_MMC driver for the AM335x IGEP based boards. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
* | am335x: sl50: Add Device Tree Support and DM_MMC driverEnric Balletbo i Serra2019-01-152-1/+551
| | | | | | | | | | | | This adds device tree and the DM_MMC driver for the SL50 board. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
* | omap3: igep00x0: Add Device Tree Support and DM_MMC driverEnric Balletbo i Serra2019-01-155-0/+591
| | | | | | | | | | | | | | This adds device tree for OMAP3 IGEP based boards and the DM_MMC driver. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* | arm: dts: Add MMC nodes for HiKey boardManivannan Sadhasivam2019-01-153-0/+43
| | | | | | | | | | | | | | | | | | | | Add MMC nodes for HiKey board based on HI6220 SoC. There are three MMC controllers in this SoC, first one used for eMMC, second one used for SD card and third one is not used by u-boot. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* | arm: dts: add ethernet related node for MT7629 SoCWeijie Gao2019-01-142-0/+54
| | | | | | | | | | | | This patch adds ethernet gmac node for MT7629 with internal gigabit phy. Signed-off-by: Mark Lee <Mark-MC.Lee@mediatek.com>
* | arm: dts: add ethernet related node for MT7623 SoCWeijie Gao2019-01-142-1/+33
| | | | | | | | | | | | This patch adds ethernet gmac node for MT7623 with MT7530 gigabit switch. Signed-off-by: Mark Lee <Mark-MC.Lee@mediatek.com>
* | reset: MedaiTek: add reset controller driver for MediaTek SoCsWeijie Gao2019-01-141-0/+13
| | | | | | | | | | | | | | This patch adds reset controller driver for MediaTek SoCs. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
* | poplar: add DWC2 OTG gadget supportShawn Guo2019-01-141-0/+5
| | | | | | | | | | | | | | | | It enables DWC2 OTG gadget driver support for Poplar board. As usb2_phy_init() is being always called from board_init(), we can save the call from board_usb_init(). Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
* | test: bootcount: add bootcount-uclass testPhilipp Tomsich2019-01-141-0/+6
|/ | | | | | | | Add a test for the bootcount uclass, which uses the RTC bootcount backend (i.e. drivers/bootcount/rtc.c is implictly also tested). Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* Merge branch 'master' of git://git.denx.de/u-boot-socfpgaTom Rini2019-01-111-0/+1
|\
| * ARM: dts: socfpga: Add missing SDMMC resetTien Fong Chee2019-01-111-0/+1
| | | | | | | | | | | | | | The SDMMC reset is missing from DT, so the reset manager cannot unreset the SDMMC. Add the missing DT reset entry. Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
* | Merge branch 'master' of git://git.denx.de/u-boot-usbTom Rini2019-01-113-2/+7
|\ \ | |/ |/|
| * Kconfig: rename CONFIG_SPL_USB_GADGET_SUPPORT as CONFIG_SPL_USB_GADGETJean-Jacques Hiblot2019-01-102-2/+2
| | | | | | | | | | | | | | The SPL option for USB gadget should be named after the option for u-boot (CONFIG_USB_GADGET) Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
| * ARM: dts: define USB aliases for all omap5 platformsJean-Jacques Hiblot2019-01-101-0/+5
| | | | | | | | | | | | | | | | This allows us to properly map the USB controller indexes Tested on dra76 evm, am572 evm Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
* | Merge tag 'u-boot-imx-20190110' of git://git.denx.de/u-boot-imxTom Rini2019-01-105-7/+12
|\ \ | | | | | | | | | Fixes for 2019.01