summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* common: dfu: ignore reset for spl-dfuB, Ravi2017-05-123-1/+9
| | | | | | | | | | The SPL-DFU feature enable to load and execute u-boot from RAM over usb from PC using dfu-util. Hence dfu-reset should not be issued when dfu-util -R switch is issued. Signed-off-by: Ravi Babu <ravibabu@ti.com>
* spl: Kconfig: dfu: spl-dfu depends on SPL_RAM_SUPPORTB, Ravi2017-05-121-0/+1
| | | | | | | | | Since SPL_DFU_SUPPORT is depends on SPL_RAM_SUPPORT, hence select SPL_DFU_SUPPORT only when SPL_RAM_SUPPORT is chosen. Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* stm32f7: configure mpu valid for f7 familyVikas Manocha2017-05-121-3/+12
| | | | | | | | | | | | | | | This configuration should be valid for all F7 family devices in general. Here is the regions info: - Region0 : 4GB : cacheable & executable. - Region1 : 512MB : text area : strogly ordered & executable. - Region2 : 512MB : peripherals : device memory & non-executable. - Region3 : 512MB : peripherals : device memory & non-executable. - Region4 : 512MB : cortexM area: strongly ordered & non-executable. Higher region number overrides the lower region configuration. Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
* stm32: use armv7m MPU configuration supportVikas Manocha2017-05-122-58/+22
| | | | Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
* armv7m: add MPU configuration supportVikas Manocha2017-05-124-21/+150
| | | | | | | | | | | | Cortex-M archs support option memory protection unit (MPU). MPU is used to set the memory types, attributes, access permissions for different regions, cache policies of the device. e.g. using MPU it is possible to configure memory region as device memory or strongly ordered, memory attributes like execute never, cache policies like write-back or write-through. Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
* armv7m: correct mpu region size define for 8MB sizeVikas Manocha2017-05-121-1/+2
| | | | Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
* arvm7m: add cleanup before linux bootingVikas Manocha2017-05-121-0/+19
| | | | | | | Data cache memory needs to be disabled before handing over control to linux kernel. This patch populates the cleanup_before_linux stub. Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
* armv7m: cache: add flush & invalidate all dcacheVikas Manocha2017-05-121-0/+23
| | | | | | | | | Add functionality to flush & invalidate all the dcache using the prototype declared in common header file. Signed-off-by: Vikas Manocha <vikas.manocha@st.com> [trini: Add dummy functions for the not-enabled case] Signed-off-by: Tom Rini <trini@konsulko.com>
* arm: am335x: Enable tiny printf in SPLLokesh Vutla2017-05-111-0/+1
| | | | | | | | am335x_evm SPL is very close to its limit in SRAM space. Switch to use tiny printf to reclaim some size. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
* configs: am335x_evm: Enable SPL_DMLokesh Vutla2017-05-113-1/+7
| | | | | | | Enable SPL_DM on all AM335x based TI platforms. http://patchwork.ozlabs.org/patch/751300/ 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>
* configs: am335x_evm: Use omap2 generic spl load scriptLokesh Vutla2017-05-1114-69/+13
| | | | | | | | No reason to use a separate load script for am33xx than using omap-common load script. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
* dm: mmc: omap_hsmmc: Add pre-reloc flag to the driverLokesh Vutla2017-05-111-0/+1
| | | | | | | | | | For platforms that don't use device tree in SPL the only way to mark this driver as 'required by relocation' is with the DM_FLAG_PRE_RELOC flag. Add this to ensure that the driver is bound. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
* dm: mmc: omap_hsmmc: Update to support of-platdataLokesh Vutla2017-05-112-10/+23
| | | | | | | This is to aid platforms that uses OF_PLATDATA. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
* serial: omap: Support debug UARTLokesh Vutla2017-05-113-11/+54
| | | | | | | | | | | Add debug UART functions to permit omap specific ns16550 to provide an early debug UART. This is mostly in common with DEBUG_UART_NS16550 except for Mode definition register which is required for selecting UART mode(16x auto-baud or 13x mode). Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
* Add 16-bit single register pin controller supportJames Balean2017-05-111-8/+8
| | | | | | | | | | | | | Enables the pinctrl-single driver to support 16-bit registers. Only 32-bit registers were supported previously. Reduced width registers are required for some platforms, such as OMAP. Signed-off-by: James Balean <james@balean.com.au> Cc: Felix Brack <fb@ltec.ch> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Felix Brack <fb@ltec.ch> Tested-by: Felix Brack <fb@ltec.ch> Reviewed-by: Simon Glass <sjg@chromium.org>
* boot: fdt: Perform arch_fixup_fdt() on the given device tree for falcon bootB, Ravi2017-05-111-0/+40
| | | | | | | | | | | In single stage bootmode or falcon boot mode, the SPL shall update the device tree that we load with the normal fixups done via arch_fixup_fdt(), when possible (ie we have enough information in this restricted environment to be able to do that still). This will include for example updating them memory nodes. Signed-off-by: Ravi Babu <ravibabu@ti.com> [trini: Reword commit message]
* spl: fdt: support for fdt fixup for falcon bootB, Ravi2017-05-113-2/+8
| | | | | | | | | | | | Adding support for fdt fixup to update the memory node in device tree for falcon boot. This is needed for single stage or falcon bootmode, to pass memory configuration to kernel through DT memory node. Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
* qspi: dra7xx: enable qspi-boot for dra7x paltformB, Ravi2017-05-111-0/+2
| | | | | | | Enables qspi boot configuration for dra7xx platform. Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
* arch: arm: omap: Declare size of ddr very earlyLokesh Vutla2017-05-112-0/+5
| | | | | | | | Declare the size of ddr very early in spl, so that this can be used to enable cache. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Ravi Babu <ravibabu@ti.com>
* spl: reorder the assignment of board info to global dataLokesh Vutla2017-05-111-1/+1
| | | | | | | | | | | Move the assignment of board info to global data a bit early which is safe, so that ram details can be used to enable caches. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
* spl: Makefile: include /config in the (reduced) FDT used by the SPL stagePhilipp Tomsich2017-05-111-1/+1
| | | | | | | | | | | | When OF control is enabled for the SPL stage, nodes are removed from the DTB to reduce its size. While /chosen is kept, /config is removed. There's no reason why /chosen should be kept over /config (and as we would like to put properties into /config that control the SPL stage), we add '/config' to the list of nodes to be retained for the SPL stage. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Simon Glass <sjg@chromium.org>
* doc: document /config/u-boot, spl-payload-offset propertyPhilipp Tomsich2017-05-111-0/+5
| | | | | | | | | This adds documentation on the u-boot,spl-payload-offset property (which overrides CONFIG_SYS_SPI_U_BOOT_OFFS during the SPI loading in the SPL stage, if present). Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Simon Glass <sjg@chromium.org>
* spl: spi: override CONFIG_SYS_SPI_U_BOOT_OFFS via /config-propertyPhilipp Tomsich2017-05-111-3/+12
| | | | | | | | | | | | | | For the RK3399-Q7, we need some flexibility (depending on the feature set we include in the SPL stage and how large our SPI flash is) in positioning the SPL payload (i.e. the FIT image containing U-Boot, ATF and the M0 payload) in our SPI flash. To avoid having to deal with this through different U-Boot images, we introduce a the '/config/u-boot,spl-payload-offset' property node allow it to override the default setting. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Simon Glass <sjg@chromium.org>
* arm: Support cache invalidateSimon Glass2017-05-113-1/+40
| | | | | | | | | At present there is not operation to invalidate a cache range. This seems to be needed to fill out the cache operations. Add an implementation based on the flush operation. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: York Sun <york.sun@nxp.com>
* arm: Correct signature for get_ticks()Simon Glass2017-05-111-1/+1
| | | | | | This should be uint64_t to match its definition in common.h. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
* disk: Return the partition number in part_get_info_by_name()Alex Deymo2017-05-113-5/+6
| | | | | | | | | | Similar to what blk_get_device_part_str() does, this patch makes part_get_info_by_name() return the partition number in case of a match. This is useful when the partition number is needed and not just the descriptor. Signed-off-by: Alex Deymo <deymo@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* image: Update include/android_image.hAlex Deymo2017-05-112-5/+28
| | | | | | | | | Update the Android image header format to the latest version published in AOSP. The original code moved to a new repository, so this patch also updates the reference to that path. Signed-off-by: Alex Deymo <deymo@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* usb: gadget: avoid variable name clipping in cb_getvarnicolas.le.bayon@st.com2017-05-111-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, A kind reminder to look at this patch (already reviewed by Marek and acked by Lukasz), and if possible to put it in the next pull list, or the one after is timing is too short. Thanks in advance for your time Best Regards Nicolas -----Original Message----- From: Nicolas LE BAYON Sent: mardi 25 avril 2017 10:18 To: Nicolas LE BAYON <nicolas.le.bayon@st.com>; u-boot@lists.denx.de; lukma@denx.de; marex@denx.de Cc: nlebayon@gmail.com; Patrice CHOTARD <patrice.chotard@st.com>; Jean-philippe ROMAIN <jean-philippe.romain@st.com> Subject: [U-Boot][PATCH v7] usb: gadget: avoid variable name clipping in cb_getvar From: Nicolas Le Bayon <nicolas.le.bayon@st.com> Instead of using a fixed-size array to store variable name, preferring a dynamic allocation treats correctly all variable name lengths. Variable names are growing through releases and features. By this way, name clipping is prevented. Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Reviewed-by: Marek Vasut <marex@denx.de> Acked-by: Lukasz Majewski <lukma@denx.de>
* Merge git://git.denx.de/u-boot-rockchipTom Rini2017-05-1078-573/+5877
|\ | | | | | | | | | | 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: dts: evb_rk3288: Add mipi display supportEric Gao2017-05-102-0/+121
| | | | | | | | | | | | | | Add mipi dsi configuration for evb-rk3288 device tree. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: rk3288: grf: Add grf define for mipi dsiEric Gao2017-05-101-0/+62
| | | | | | | | | | | | | | Add grf register define for rk3288 mipi dsi Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: defconfigs: Add mipi dsi support for rk3399 evb boardEric Gao2017-05-101-0/+7
| | | | | | | | | | | | | | Add mipi dsi configs for rk3399 evb board Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: dts: Add mipi dsi support for rk3399Eric Gao2017-05-102-0/+148
| | | | | | | | | | | | | | | | | | Add dts config for mipi display, include vop, mipi controller, panel, backlight . And Enable rk808 for lcd_3v3 in another patch. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
| * 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: video: vop: Reserve enough space for mipi dispalyEric Gao2017-05-101-1/+1
| | | | | | | | | | | | | | | | | | plat->size here is used to reserve frame buffer space befor relocation. our mipi panel use 24 bitwidth, and vop require 32bit align. So the frame buffer size should be at least 1920*1200*32/8. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: video: vop: Set different bitwidth for different display modeEric Gao2017-05-101-4/+16
| | | | | | | | | | | | | | | | Because the bitwidth is different for different display mode, so we need to set them according to demand. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: video: vop: Add mipi display mode for rk3399Eric Gao2017-05-102-0/+7
| | | | | | | | | | | | | | | | Add mipi display mode for rk3399 vop, so that we can use mipi panel for display. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: video: vop: Fix rk_display_init() return errorEric Gao2017-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It's caused by the difference of clk_set_rate function implement between rk3288 andd rk3399. clk_set_rate() of rk3288 return 0 in normal condition. clk_set_rate() of rk3399 return input parameter in normal condition. So check clk_set_rate's return value by IS_ERR_VALUE. Signed-off-by: Eric Gao <eric.gao@rock-chips.com>
| * rockchip: video: Add mipi driver support for rockchip socEric Gao2017-05-104-1/+695
| | | | | | | | | | | | | | Add basic driver for mipi display on rockchip soc platform. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
| * rockchip: include: grf: Add GRF register declaration for mipi dsiEric Gao2017-05-101-3/+26
| | | | | | | | | | | | | | | | Add GRF register declaration for mipi dsi. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
| * power: rk808: rename to rk8xxJacob Chen2017-05-1019-97/+97
| | | | | | | | | | | | | | | | | | Since this driver can be used for rk8xx series pmic, let's rename rk808 to rk8xx, to make it clear. Configs parts are done by sed -i "s/RK808/RK8XX/g" `grep RK808 -lr ./` Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com>
| * power: regulator: rk808: add rk818 supportJacob Chen2017-05-101-4/+51
| | | | | | | | | | | | | | | | | | Add support for the rk818 regulator. The regulator module consists of 4 DCDCs, 9 LDOs, 1 switch and 1 BOOST converter which is used to power OTG and HDMI5V. Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * power: regulator: rk808: replace vsel_bits with vsel_maskJacob Chen2017-05-101-17/+22
| | | | | | | | | | | | | | Using mask is more flexible than bits. Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * power: pmic: rk808: add RK818 supportJacob Chen2017-05-102-0/+28
| | | | | | | | | | | | | | | | | | | | The RK818 chip is a Power Management IC (PMIC) for multimedia and handheld devices. For boards use rk818, the input current should be set in the early stage, before ddr initialization. Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com>
| * power: pmic: append rk818 regs to rk808Jacob Chen2017-05-102-39/+143
| | | | | | | | | | | | | | | | | | | | Both RK808 and RK818 chips are using a similar register map, so we can reuse them. I have also add reg prefix to exist registers, to keep them same style. Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: tinker: set ethaddr in late initJonas Karlman2017-05-103-0/+38
| | | | | | | | | | | | | | | | | | | | | | 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>
| * i2c_eeprom: add read and write functionsJonas Karlman2017-05-102-6/+50
| | | | | | | | | | Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: pinctrl: rk3399: add support for the HDMI I2C pinsPhilipp Tomsich2017-05-102-0/+28
| | | | | | | | | | | | | | | | | | To add HDMI support for the RK3399, this commit provides the needed pinctrl functionality to configure the HDMI I2C pins (used for reading the screen's EDID). Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
| * rockchip: clk: rk3399: allow requests for HDMI clocksPhilipp Tomsich2017-05-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | This allows requests (via the DTS) for PCLK_HDMI_CTRL/PCLK_VIO_GRF, which are clock gates in the HDMI output path for the RK3399. As these are enabled by default (i.e. after reset), we don't implement any logic to actively open/close these clock gates and simply assume that their reset-default has not been changed. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>