[U-Boot] [PATCH 5/6] configs: am335x_evm: Enable SPL_DM

2017-04-21 Thread Lokesh Vutla
Enable SPL_DM on all AM335x based TI platforms. Signed-off-by: Lokesh Vutla --- arch/arm/mach-omap2/am33xx/Kconfig | 5 + include/configs/am335x_evm.h | 1 - include/configs/ti_am335x_common.h | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/am3

[U-Boot] [PATCH 3/6] configs: am335x_evm: Use omap2 generic spl load script

2017-04-21 Thread Lokesh Vutla
No reason to use a separate load script for am33xx than using omap-common load script. Signed-off-by: Lokesh Vutla --- include/configs/am335x_evm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index fc8a08f5b7..79

[U-Boot] [PATCH 6/6] arm: am335x: Enable tiny printf in SPL

2017-04-21 Thread Lokesh Vutla
am335x_evm SPL is very close to its limit in SRAM space. Switch to use tiny printf to reclaim some size. Signed-off-by: Lokesh Vutla --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 7812f21f36..7368f6b95c 100644 --- a/arch/arm/Kco

[U-Boot] [PATCH 2/6] dm: mmc: omap_hsmmc: Add pre-reloc flag to the driver

2017-04-21 Thread Lokesh Vutla
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. Signed-off-by: Lokesh Vutla --- drivers/mmc/omap_hsmmc.c | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 4/6] am33xx: Provide platform data for mmc

2017-04-21 Thread Lokesh Vutla
Signed-off-by: Lokesh Vutla --- board/ti/am335x/board.c | 32 1 file changed, 32 insertions(+) diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 3e842d3187..566183e669 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -9,6 +

[U-Boot] [PATCH 1/6] dm: mmc: omap_hsmmc: Update to support of-platdata

2017-04-21 Thread Lokesh Vutla
This is to aid platforms that uses OF_PLATDATA. Signed-off-by: Lokesh Vutla --- arch/arm/include/asm/omap_mmc.h | 9 + drivers/mmc/omap_hsmmc.c| 24 ++-- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/arch/arm/include/asm/omap_mmc.h b/arch/a

[U-Boot] [PATCH 0/6] arm: am335x: Enable SPL_DM

2017-04-21 Thread Lokesh Vutla
Enable SPL_DM on all AM335x based TI platforms. am335x_evm_defconfig: Before this seires: text data bss dec hex filename 76508 4185 204672 285365 45ab5 spl/u-boot-spl spl/u-boot-spl.bin: 80700 After this seires: text data bss dec hex filename 75589

Re: [U-Boot] __FILE__ usage and and SPL limits for SRAM

2017-04-21 Thread Masahiro Yamada
2017-04-10 4:27 GMT+09:00 Simon Glass : > Hi Tom, > > On 4 April 2017 at 13:06, Tom Rini wrote: >> On Tue, Mar 28, 2017 at 11:37:45AM +0530, Lokesh Vutla wrote: >>> + more folks. >>> >>> On Tuesday 28 March 2017 03:14 AM, Nishanth Menon wrote: >>> > Hi, >>> > >>> > we've kind of run into an intere

Re: [U-Boot] [PATCH 4/7] board: sama5d2_xplained: clean up macb init code

2017-04-21 Thread sjg
Because the MACB driver supports the driver model and device tree, the pins configuration and clock enabling are handled by the pinctrl driver and clock driver, remove this hardcoded init code. The USB Ether init code is removed as well. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplai

Re: [U-Boot] [PATCH 1/7] ARM: dts: sama5d2: add clock property for uart1 node

2017-04-21 Thread sjg
Add clock property for uart1 node. Signed-off-by: Wenyou Yang --- arch/arm/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) Applied to u-boot-dm/next, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 3/6] ARM: dts: at91: Add dts files for at91sam9m10g45ek

2017-04-21 Thread sjg
The device tree source files of at91sam9m10g45ek boards are copied from the Linux v4.10, do the changes as below. - Add the reg property for the pinctrl node. - Move the gpio (pioA, pioB, pioC, pioD, pioE) nodes as the pinctrl's slibling nodes, instead of the child nodes. - Add the "u-boot,dm

Re: [U-Boot] [PATCH v4 3/3] clk: at91: Align the at91 pmc's compatibles

2017-04-21 Thread sjg
Align the at91 pmc's compatibles with kernel. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass Reviewed-by: Andreas Bießmann --- Changes in v4: - Incorporate [PATCH v2] clk: at91: pmc: align the at91 pmc's compatibles. - Rebase on the master branch (22e10be45) of u-boot-dm git tree. - Ad

Re: [U-Boot] [PATCH v3 1/2] serial: atmel_usart: Fix early debug not work in SPL

2017-04-21 Thread sjg
Add the uart init function to be used on both probe and the early debug uart init. For the latter, the input clock should be from CONFIG_DEBUG_UART_CLOCK. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/serial/atmel_usart.c | 36

Re: [U-Boot] [PATCH 5/7] board: sama5d2_xplained: remove uart1 init

2017-04-21 Thread sjg
Due to the pin configuration and clock enabling is handling by the driver, remove the unneeded hardcode uart1 init during board_early_init_f stage. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) Applied to

Re: [U-Boot] [PATCH 3/7] configs: sama5d2_xplained: enable CONFIG_DM_ETH

2017-04-21 Thread sjg
Enable CONFIG_DM_ETH to make MACB to support driver model. Because the USB Ether doesn't support driver model so far, remove this feature. Signed-off-by: Wenyou Yang --- configs/sama5d2_xplained_mmc_defconfig | 2 ++ configs/sama5d2_xplained_spiflash_defconfig | 2 ++ include/configs/sa

Re: [U-Boot] [PATCH 2/7] ARM: dts: sama5d2_xplained: update for SPL

2017-04-21 Thread sjg
Add the "u-boot,dm-pre-reloc" property to determine which nodes which are needed by SPL and by the board_init_f stage. Signed-off-by: Wenyou Yang --- arch/arm/dts/at91-sama5d2_xplained.dts | 12 arch/arm/dts/sama5d2.dtsi | 20 2 files changed, 32 i

Re: [U-Boot] [PATCH v5 3/3] board: at91sam9x5ek: Enable early debug UART

2017-04-21 Thread sjg
Hi Simon, The patches has been rebased on the master branch of u-boot-dm git tree, and you added Reviewed-by tag before. Could you help take them? Best Regards, Wenyou Yang On 2017/4/18 14:51, Wenyou Yang wrote: > Enable the early debug UART to debug problems when an ICE or other > debug mec

Re: [U-Boot] [PATCH v5 2/3] board: at91sam9260ek: Clean up code

2017-04-21 Thread sjg
Since the introduction of the pinctrl and clk drivers and the device tree files, remove unneeded hard coded related code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/at9

Re: [U-Boot] [PATCH v3 2/6] ARM: dts: at91: Add dts files for at91sam9n12ek

2017-04-21 Thread sjg
The device tree source files of at91sam9n12ek boards are copied from the Linux v4.10, do the changes as below. - Add the reg property for the pinctrl node. - Move the gpio (pioA, pioB, pioC, pioD) nodes as the pinctrl's slibling nodes, instead of the child nodes. - Change the compatible of th

Re: [U-Boot] [PATCH v2] configs: sama5d3xek: add default config for CMP board

2017-04-21 Thread sjg
The sama5d36ek CMP board is the variant of sama5d3xek board. It is equipped with the low-power DDR2 SDRAM, PMIC ACT8865, and some power rails. The board is mainly used to measure the power consumption. As all those changes are done in at91bootstrap, in U-Boot, only use another device tree file, no

Re: [U-Boot] [PATCH v3 4/6] ARM: dts: at91: Add dts files for at91sam9260ek/9g20ek

2017-04-21 Thread sjg
The device tree source files of at91sam9g20ek and at91sam9260ek boards are copied from the Linux v4.10, do the changes below. - Fix the build error for the usb0 node. - Add the reg property for the pinctrl node. - Move the gpio (pioA, pioB, pioC ...) nodes as the pinctrl's slibling nodes, ins

Re: [U-Boot] [PATCH v3 2/2] net: macb: Align the compatibles with kernel

2017-04-21 Thread sjg
Add the compatibles to align with the kernel. Signed-off-by: Wenyou Yang Acked-by: Joe Hershberger --- Changes in v3: - Incorporate [PATCH] net: macb: align the compatibles with kernel. - Rebase on the latest commit (db40c1aa1c10) of master branch of u-boot-net. - Add Acked-by tag. Changes

Re: [U-Boot] [PATCH v3 2/2] serial: atmel_usart: Add clk support

2017-04-21 Thread sjg
Add the clock support. Note that the clock handling of the DBGU peripheral is different from the USART. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v3: - Rebase on the master branch (22e10be45) of u-boot-dm git tree. Changes in v2: - Fix the DBGU clock handling. - Add

Re: [U-Boot] [PATCH] board: sama5d4ek: fix DD2 configuration

2017-04-21 Thread sjg
Fix the DDR2 configuration to make SPL work. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/include/mach/atmel_mpddrc.h | 7 ++- board/atmel/sama5d4ek/sama5d4ek.c | 16 +++- 2 files changed, 21 insertions(+), 2 deletions(-) Applied to u-boot-dm/next, thanks! __

Re: [U-Boot] [PATCH v4 2/3] board: at91sam9n12ek: Clean up code

2017-04-21 Thread sjg
Since the introduction of the pinctrl and clk driver and the device tree files, remove unneeded related code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/at91sam9n12ek/at91sam9n12ek.c | 53

Re: [U-Boot] [PATCH v5 3/3] board: at91sam9260ek/9g20ek: Enable early debug UART

2017-04-21 Thread sjg
Hi Simon, The patches has been rebased on the master branch of u-boot-dm git tree Could you help take them? Best Regards, Wenyou Yang On 2017/4/18 15:18, Wenyou Yang wrote: > Enable the early debug UART to debug problems when an ICE or other > debug mechanism is not available. > > Signed-off-

Re: [U-Boot] [PATCH v3 5/6] ARM: dts: at91: Add dts files for at91sam9rlek

2017-04-21 Thread sjg
The device tree source files of at91sam9rlek boards are copied from the Linux v4.10, do the changes as below. - Add the reg property for the pinctrl node. - Move the gpio (pioA, pioB, pioC, pioD) nodes as the pinctrl's slibling nodes, instead of the child nodes. - Add the "u-boot,dm-pre-reloc

Re: [U-Boot] [PATCH v4 1/3] configs: at91sam9n12ek: Update for DT and DM support

2017-04-21 Thread sjg
Update the configuration files to support the device tree and driver model. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Because the limitation of internal SRAM size, the SPL with driver model can't be supported, disable the SPL option. Si

Re: [U-Boot] [PATCH 6/7] board: sama5d2_xplained: remove unnecessary header files

2017-04-21 Thread sjg
Remove the unnecessary header files. Signed-off-by: Wenyou Yang --- board/atmel/sama5d2_xplained/sama5d2_xplained.c | 2 -- 1 file changed, 2 deletions(-) Applied to u-boot-dm/next, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.d

Re: [U-Boot] [PATCH v5 2/3] board: at91sam9x5ek: Clean up code

2017-04-21 Thread sjg
Since the introduction of the pinctrl and clock driver and the device tree files, remove unneeded hard coded related code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v5: None Changes in v4: None Changes in v3: - Remove Atmel mci related code. Change

Re: [U-Boot] [PATCH v4 1/3] clk: at91: Enhance the peripheral clock

2017-04-21 Thread sjg
Enhance the peripheral clock to support both at9sam9x5's and at91rm9200's peripheral clock via the different compatibles. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Use an enum with a descriptive name to denote the clock typ

Re: [U-Boot] [PATCH 7/7] configs: sama5d2_xplained: update for SPL

2017-04-21 Thread sjg
Enable config options to support the SPL, increase the malloc memory size for the SPL and board_init_f stage and increase the memory space for the SPL binary. Signed-off-by: Wenyou Yang --- configs/sama5d2_xplained_mmc_defconfig | 8 +++- configs/sama5d2_xplained_spiflash_defconfig | 7

Re: [U-Boot] [PATCH v4 2/3] clk: at91: Align clk-master compatibles with kernel

2017-04-21 Thread sjg
Add the compatible "atmel,at91rm9200-clk-master" to align with the kernel. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: - Add the Reviewed-by tags. drivers/clk/at91/clk-master.c | 1 + 1 file changed, 1 insertion(+) Applied t

Re: [U-Boot] [PATCH v3 1/6] ARM: dts: at91: Add dts files for at91sam9x5ek

2017-04-21 Thread sjg
The device tree source files of at91sam9x5ek board are copied from the Linux v4.10, do the changes below. - Add the reg property for the pinctrl node. - Move the gpio (pioA, pioB, pioC ...) nodes as the pinctrl's slibling nodes, instead of the child nodes. - Add the "u-boot,dm-pre-reloc" prop

Re: [U-Boot] [PATCH v5 1/3] configs: at91sam9x5ek: Update to support DM/DT

2017-04-21 Thread sjg
Update the configuration files to support the device tree and driver model. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Because the limitation of internal SRAM size, the SPL with driver model can't be supported, disable the SPL option. Si

Re: [U-Boot] [PATCH v3 6/6] ARM: dts: at91: Add dts files for at91sam9263ek

2017-04-21 Thread sjg
The device tree source files of at91sam9263ek boards are copied from the Linux v4.10, do the changes as below. - Add the reg property for the pinctrl node. - Move the gpio (pioA, pioB, pioC, pioD, pioE) nodes as the pinctrl's slibling nodes, instead of the child nodes. - Add the "u-boot,dm-pr

Re: [U-Boot] [PATCH v3 1/2] net: macb: Add remove callback

2017-04-21 Thread sjg
To avoid the failure of mdio_register(), add the remove callback to unregister the mii_dev when removing the ethernet device. Signed-off-by: Wenyou Yang Acked-by: Joe Hershberger --- Changes in v3: None Changes in v2: - Rebase on v2017.03. drivers/net/macb.c | 45

Re: [U-Boot] [PATCH v4 2/3] board: at91sam9m10g45ek: Clean up code

2017-04-21 Thread sjg
Since the introduction of the pinctrl and clk drivers and the device tree files, remove unneeded hard coded related code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/at91sam9m10g45ek/at91sa

Re: [U-Boot] [PATCH v4 1/3] configs: at91sam9263ek: Update for DT and DM support

2017-04-21 Thread sjg
Update the configuration files to support the device tree and driver model. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: - Adjust CONFIG_ENV_OFFSET for NAND to avoid

Re: [U-Boot] [PATCH v4 3/3] board: at91sam9m10g45ek: Enable early debug UART

2017-04-21 Thread sjg
Hi Simon, The patches has been rebased on the master branch of u-boot-dm git tree Could you help take them? Best Regards, Wenyou Yang On 2017/4/18 15:15, Wenyou Yang wrote: > Enable the early debug UART to debug problems when an ICE or other > debug mechanism is not available. > > Signed-off-

Re: [U-Boot] [PATCH v4 1/3] configs: at91sam9rlek: Update for DT and DM support

2017-04-21 Thread sjg
Update the configuration files to support the device tree and driver model. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: - Adjust CONFIG_ENV_OFFSET for NAND to avoid

Re: [U-Boot] [PATCH v4 3/3] board: at91sam9n12ek: Enable early debug UART

2017-04-21 Thread sjg
Hi Simon, The patches has been rebased on the master branch of u-boot-dm git tree Could you help take them? Best Regards, Wenyou Yang On 2017/4/18 14:54, Wenyou Yang wrote: > Enable the early debug UART to debug problems when an ICE or other > debug mechanism is not available. > > Signed-off-

Re: [U-Boot] [PATCH v4 3/3] board: at91sam9rlek: Enable early debug UART

2017-04-21 Thread sjg
Hi Simon, The patches has been rebased on the master branch of u-boot-dm git tree Could you help take them? Best Regards, Wenyou Yang On 2017/4/18 15:28, Wenyou Yang wrote: > Enable the early debug UART to debug problems when an ICE or other > debug mechanism is not available. > > Signed-off-

Re: [U-Boot] [PATCH v5 1/3] configs: at91sam9260ek/9g20ek: Update for DT and DM

2017-04-21 Thread sjg
Update the configuration files to support the device tree and driver model. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v5: - Adjust CONFIG_ENV_OFFSET for NAND to avoid

Re: [U-Boot] [PATCH v4 1/3] configs: at91sam9m10g45ek: Update to support DM/DT

2017-04-21 Thread sjg
Update the configuration files to support the device tree and driver model. The device clock and pins configuration are handled by the clock and the pinctrl drivers respectively. Because the limitation of internal SRAM size, the SPL with driver model can't be supported, disable the SPL option. Si

Re: [U-Boot] [PATCH v4 2/3] board: at91sam9rlek: Clean up code

2017-04-21 Thread sjg
Since the introduction of the pinctrl and clk drivers and the device tree files, remove unneeded hard coded related code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/at91sam9rlek/at91sam9rl

Re: [U-Boot] [PATCH v4 2/3] board: at91sam9263ek: Clean up code

2017-04-21 Thread sjg
Because the introduction of the pinctrl and clk drivers and the device tree files, remove unneeded hard coded related code from the board file. Signed-off-by: Wenyou Yang Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None board/atmel/at91sam9263ek/at91sam

Re: [U-Boot] [PATCH v4 3/3] board: at91sam9263ek: Enable early debug UART

2017-04-21 Thread sjg
Hi Simon, The patches has been rebased on the master branch of u-boot-dm git tree Could you help take them? Best Regards, Wenyou Yang On 2017/4/18 15:31, Wenyou Yang wrote: > Enable the early debug UART to debug problems when an ICE or other > debug mechanism is not available. > > Signed-off-

Re: [U-Boot] [PATCH v2 2/3] fsl: PPA: add support PPA image validation from NAND and SD

2017-04-21 Thread Sumit Garg
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Saturday, April 22, 2017 1:03 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Vini Pillai ; Udit > Agarwal > Subject: Re: [PATCH v2 2/3] fsl: PPA: add support PPA image validatio

Re: [U-Boot] [PATCH v2 2/3] fsl: PPA: add support PPA image validation from NAND and SD

2017-04-21 Thread York Sun
On 04/19/2017 05:16 AM, Sumit Garg wrote: Signed-off-by: Sumit Garg Signed-off-by: Udit Agarwal Tested-by: Vinitha Pillai --- Changes in v2: Changed order of patch 1 & 2. Also moved assignment of ppa_esbc_hdr to CONFIG_SYS_LS_PPA_ESBC_ADDR in XIP space as it's not required in case of SD/NAND.

Re: [U-Boot] [PATCH v3 0/6] sunxi: video: Add support for HDMI output on A64/H3/H5

2017-04-21 Thread Jernej Škrabec
Dne petek, 21. april 2017 ob 09:04:13 CEST je Maxime Ripard napisal(a): > Hi Jernej, > > On Mon, Mar 27, 2017 at 07:22:28PM +0200, Jernej Skrabec wrote: > > This series implements support for HDMI output. This is done using > > DM video framework and sharing the HDMI controller code with RK3288. >

Re: [U-Boot] [PATCH 0/3] ARM: uniphier: UniPhier changes for v2017.05

2017-04-21 Thread Masahiro Yamada
2017-04-20 16:54 GMT+09:00 Masahiro Yamada : > > > Masahiro Yamada (3): > ARM: uniphier: enable PSCI sysreset for uniphier_v8_defconfig > ARM: uniphier: show STM (SCP) status on boot and pinmon command > ARM: dts: uniphier: sync Device Tree with Linux > > arch/arm/dts/uniphier-ld11.dtsi

Re: [U-Boot] [PATCH] ARM: uniphier: setup EHCI PHY paramters for LD11

2017-04-21 Thread Masahiro Yamada
2017-04-14 11:30 GMT+09:00 Masahiro Yamada : > Set the same PHY parameters as the Boot ROM uses. > > Signed-off-by: Masahiro Yamada Applied to u-boot-uniphier/master. -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https:

[U-Boot] pull request: u-boot-uniphier/master

2017-04-21 Thread Masahiro Yamada
Hi Tom, Here is a small pull request for UniPhier SoCs. Please pull! - Add USB PHY settings - Use PSCI system reset when used with ARM Trusted Firmware - Improve boot log to show SCP status - Sync DT with Linux The following changes since commit 3c476d841daa491f87c8f07851038afbdf4d90a8: Merg

Re: [U-Boot] [PATCH v2] rockchip: tinker: set ethaddr in late init

2017-04-21 Thread Jonas Karlman
Hi Simon, On 2017-04-20 23:04, Simon Glass wrote: > Hi Jonas, > > On 20 April 2017 at 12:23, Jonas Karlman wrote: >> 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. >> Sa

Re: [U-Boot] [PATCH v6 13/16] arm: socfpga: Add SPL support for Arria 10

2017-04-21 Thread Marek Vasut
On 04/21/2017 06:37 PM, Dalon Westergreen wrote: [...] > My proposal is revert back to its original code, revert > socfpga_bridges_reset() return type to void and don't check error from > fpgamgr_test_fpga_ready(). So, we can support Gen5 boot without > program FPGA. Isn

Re: [U-Boot] [PATCH v6 13/16] arm: socfpga: Add SPL support for Arria 10

2017-04-21 Thread Dalon Westergreen
On Fri, 2017-04-21 at 15:31 +0200, Marek Vasut wrote: > On 04/21/2017 03:17 PM, Dalon Westergreen wrote: > > > > On Fri, 2017-04-21 at 14:17 +0200, Marek Vasut wrote: > > > > > > On 04/21/2017 11:45 AM, Ley Foon Tan wrote: > > > > > > > > > > > > On Fri, Apr 21, 2017 at 4:00 AM, Dalon Westergre

[U-Boot] [PATCH v1 2/2] rtc: Add DM support to ds1307

2017-04-21 Thread Chris Packham
Add an implementation of the ds1307 driver that uses the driver model i2c APIs. Signed-off-by: Chris Packham --- drivers/rtc/Kconfig | 7 ++ drivers/rtc/ds1307.c | 196 ++- 2 files changed, 184 insertions(+), 19 deletions(-) diff --git a/driv

[U-Boot] [PATCH v1 1/2] cmd: add Kconfig option for 'date' command

2017-04-21 Thread Chris Packham
Signed-off-by: Chris Packham --- cmd/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 13dc46a..1aaf8c5 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -676,6 +676,12 @@ config CMD_LED with led on/off/togle/blink. Any LED drivers can be con

[U-Boot] [PATCH v1 0/2] DS1307 RTC update

2017-04-21 Thread Chris Packham
The first patch is the addition of a KConfig option for the date command. I haven't updated any boards to use the new option due to the sheer number of boards that would affect. It's probably better if board maintainers switch if/when they're ready. The second patch is the change I really want to

[U-Boot] Please pull u-boot-mips

2017-04-21 Thread Daniel Schwierzeck
Hi Tom, please pull two bugfixes for qemu_mips, thanks. The following changes since commit f6c1df44b815a08585e7fd3805a1db51a5955d09: Prepare v2017.05-rc2 (2017-04-17 18:16:49 -0400) are available in the git repository at: git://git.denx.de/u-boot-mips.git master for you to fetch changes

[U-Boot] [PATCH v2] Kconfig: Enable FIT support by default for TI platforms

2017-04-21 Thread Andrew F. Davis
Almost all TI defconfigs enable this already, add this as a default and remove the explicit assignment. Signed-off-by: Andrew F. Davis --- Changes from v1: - Use imply instead of default arch/arm/Kconfig | 2 ++ configs/am335x_baltos_defconfig| 1 - confi

[U-Boot] [PATCH v2 16/22] x86: acpi: Make enter_acpi_mode() public

2017-04-21 Thread Bin Meng
enter_acpi_mode() is useful on other boot path like S3 resume, so make it public. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - add a function comment block for enter_acpi_mode() arch/x86/include/asm/acpi_table.h | 9 + arch/x86/lib/acpi_table.c | 2 +-

[U-Boot] [PATCH v2 17/22] x86: acpi: Refactor acpi_resume()

2017-04-21 Thread Bin Meng
To do something more in acpi_resume() like turning on ACPI mode, we need locate ACPI FADT table pointer first. But currently this is done in acpi_find_wakeup_vector(). This changes acpi_resume() signature to accept ACPI FADT pointer as the parameter. A new API acpi_find_fadt() is introduced, and a

[U-Boot] [PATCH v2 11/22] x86: Add an early CMOS access library

2017-04-21 Thread Bin Meng
This adds a library that provides CMOS (inside RTC SRAM) access at a very early stage when driver model is not available yet. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/early_cmos.h | 43 + arch/x86/lib/Makefil

[U-Boot] [PATCH v2 05/22] x86: Store and display previous sleep state

2017-04-21 Thread Bin Meng
Add one member in the global data to store previous sleep state, and display the state during boot in print_cpuinfo(). Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - add a function comment block for acpi_ss_string() - use a string array for sleep state string - add a des

[U-Boot] [PATCH v2 08/22] x86: acpi: Add wake up assembly stub

2017-04-21 Thread Bin Meng
This adds a wake up stub before jumping to OS wake up vector. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - add brackets around the second x in RELOCATED(x) macro - word-wrap to use more columns - change to use present tense in the comments arch/x86/cpu/Makefile

[U-Boot] [PATCH v2 13/22] x86: Do not clear high table area for S3

2017-04-21 Thread Bin Meng
When SeaBIOS is being used, U-Boot reserves a memory area to be used for configuration tables like ACPI. But it should not be cleared otherwise ACPI table will be missing. Signed-off-by: Bin Meng --- Changes in v2: - new patch "Do not clear high table area for S3" - drop patch "x86: fsp: Mark t

[U-Boot] [PATCH v2 03/22] x86: Add post codes for OS resume

2017-04-21 Thread Bin Meng
This adds OS_RESUME (0x40) and RESUME_FAILURE (0xed) post codes. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/post.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/post.h b/arch/x86/include/asm/post.h index 6b774bd..

[U-Boot] [PATCH v2 20/22] x86: acpi: Fix Windows S3 resume failure

2017-04-21 Thread Bin Meng
U-Boot sets up the real mode interrupt handler stubs starting from address 0x1000. In most cases, the first 640K (0x0 - 0x9) system memory is reported as system RAM in E820 table to the OS. (see install_e820_map() implementation for each platform). So OS can use these memories whatever it w

[U-Boot] [PATCH v2 04/22] x86: fsp: acpi: Pass different boot mode to FSP init

2017-04-21 Thread Bin Meng
When ACPI S3 resume is turned on, we should pass different boot mode to FSP init instead of default BOOT_FULL_CONFIG. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/acpi_s3.h | 18 ++ arch/x86/lib/fsp/fsp_common.c | 26 ++

[U-Boot] [PATCH v2 19/22] x86: pci: Allow conditionally run VGA rom in S3

2017-04-21 Thread Bin Meng
Introduce a new CONFIG_S3_VGA_ROM_RUN option so that U-Boot can bypass executing VGA roms in S3. Signed-off-by: Bin Meng --- Changes in v2: None arch/x86/Kconfig | 12 drivers/pci/pci_rom.c | 14 ++ 2 files changed, 26 insertions(+) diff --git a/arch/x86/Kconfig

[U-Boot] [PATCH v2 10/22] x86: acpi: Resume OS if resume vector is found

2017-04-21 Thread Bin Meng
In an S3 resume path, U-Boot does everything like a cold boot except in the last_stage_init() it jumps to the OS resume vector. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/cpu/cpu.c | 8 arch/x86/include/asm/acpi_s3.h | 10 ++

[U-Boot] [PATCH v2 14/22] x86: Adjust board_final_cleanup() order

2017-04-21 Thread Bin Meng
Call board_final_cleanup() before write_tables(), so that anything done in board_final_cleanup() on a normal boot path is also done on an S3 resume path. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/cpu/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 de

[U-Boot] [PATCH v2 22/22] x86: Document ACPI S3 support

2017-04-21 Thread Bin Meng
Now that we have ACPI S3 support on Intel MinnowMax board, document some generic information of S3 and how to test it. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - add some notes about testing S3 resume on Windows - rebase on u-boot/master doc/README.x86 | 24 +++

[U-Boot] [PATCH v2 18/22] x86: acpi: Turn on ACPI mode for S3

2017-04-21 Thread Bin Meng
Before jumping to OS waking up vector, we need turn on ACPI mode for S3, just like what we do for a normal boot. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/lib/acpi_s3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/lib/acpi_s3.c b/arch

[U-Boot] [PATCH v2 21/22] x86: minnowmax: Enable ACPI S3 resume

2017-04-21 Thread Bin Meng
This turns on ACPI S3 resume for minnowmax board. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None configs/minnowmax_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/minnowmax_defconfig b/configs/minnowmax_defconfig index 8dac1d7..aa50e88 100644 --

[U-Boot] [PATCH v2 09/22] x86: acpi: Add one API to find OS wakeup vector

2017-04-21 Thread Bin Meng
This adds one API acpi_find_wakeup_vector() to locate OS wakeup vector from the ACPI FACS table, to be used in the S3 boot path. Signed-off-by: Bin Meng --- Changes in v2: - add a function comment block for acpi_find_wakeup_vector() arch/x86/include/asm/acpi_table.h | 10 ++ arch/x86/incl

[U-Boot] [PATCH v2 12/22] x86: fsp: Save stack address to CMOS for next S3 boot

2017-04-21 Thread Bin Meng
At the end of pre-relocation phase, save the new stack address to CMOS and use it as the stack on next S3 boot for fsp_init() continuation function. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - add a function comment block for fsp_save_s3_stack() - check error on calli

[U-Boot] [PATCH v2 15/22] x86: apci: Change PM1_CNT register access to RMW

2017-04-21 Thread Bin Meng
In enter_acpi_mode() PM1_CNT register is changed to PM1_CNT_SCI_EN directly without preserving its previous value. Update to change the register access to read-modify-write (RMW). Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/lib/acpi_table.c | 4 +++- 1 fi

[U-Boot] [PATCH v2 07/22] x86: fsp: Mark memory used by U-Boot as reserved in the E820 table for S3

2017-04-21 Thread Bin Meng
U-Boot itself as well as everything that is consumed by U-Boot (like heap, stack, dtb, etc) needs to be reserved and reported in the E820 table when S3 resume is on. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/Kconfig| 8 arch/x86/li

[U-Boot] [PATCH v2 06/22] x86: baytrail: Conditionally report S3 in the ACPI table

2017-04-21 Thread Bin Meng
When U-Boot is built without ACPI S3 support, it should not report S3 in the ACPI table otherwise when kernel does STR it won't work. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl | 2 ++ arch/x86/include/asm/g

[U-Boot] [PATCH v2 02/22] x86: baytrail: acpi: Add APIs for determining/clearing sleep state

2017-04-21 Thread Bin Meng
This adds APIs for determining previous sleep state from ACPI I/O registers, as well as clearing sleep state on BayTrail SoC. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: None arch/x86/cpu/baytrail/acpi.c | 47 ++ arch/x86/inclu

[U-Boot] [PATCH v2 01/22] x86: acpi: Add Kconfig option and header file for ACPI resume

2017-04-21 Thread Bin Meng
This introduces a Kconfig option for ACPI S3 resume, as well as a header file to include anything related to ACPI S3 resume. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- Changes in v2: - fixed several nits in CONFIG_HAVE_ACPI_RESUME Kconfig help text - return -EINVAL instead of -1 in a

[U-Boot] [PATCH v2 00/22] x86: Add ACPI S3 resume support

2017-04-21 Thread Bin Meng
This adds ACPI S3 (suspend to ram) resume capability in U-Boot. With S3 support within U-Boot, the board wakes up and resumes to OS very quickly. This so far is enabled and tested on Intel MinnowMax board. Please check README.x86 for how to test it with a plain Linux kernel. Linux (w/ or w/o SeaBI

Re: [U-Boot] [PATCH v6 13/16] arm: socfpga: Add SPL support for Arria 10

2017-04-21 Thread Marek Vasut
On 04/21/2017 03:17 PM, Dalon Westergreen wrote: > On Fri, 2017-04-21 at 14:17 +0200, Marek Vasut wrote: >> On 04/21/2017 11:45 AM, Ley Foon Tan wrote: >>> >>> On Fri, Apr 21, 2017 at 4:00 AM, Dalon Westergreen >>> wrote: On Thu, 2017-04-20 at 07:12 -0700, Dalon Westergreen wrote: >

Re: [U-Boot] [PATCH] travisci: Add support for ARC

2017-04-21 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-04-21 at 09:17 -0400, Tom Rini wrote: > On Fri, Apr 21, 2017 at 01:14:23PM +, Alexey Brodkin wrote: > > > > Hi Tom, > > > > On Fri, 2017-04-21 at 09:13 -0400, Tom Rini wrote: > > > > > > On Fri, Apr 21, 2017 at 01:35:43PM +0300, Alexey Brodkin wrote: > > > > > > > > >

Re: [U-Boot] [PATCH v6 13/16] arm: socfpga: Add SPL support for Arria 10

2017-04-21 Thread Dalon Westergreen
On Fri, 2017-04-21 at 14:17 +0200, Marek Vasut wrote: > On 04/21/2017 11:45 AM, Ley Foon Tan wrote: > > > > On Fri, Apr 21, 2017 at 4:00 AM, Dalon Westergreen > > wrote: > > > > > > On Thu, 2017-04-20 at 07:12 -0700, Dalon Westergreen wrote: > > > > > > > > On Wed, 2017-04-19 at 23:58 -0500, Di

Re: [U-Boot] [PATCH] travisci: Add support for ARC

2017-04-21 Thread Tom Rini
On Fri, Apr 21, 2017 at 01:14:23PM +, Alexey Brodkin wrote: > Hi Tom, > > On Fri, 2017-04-21 at 09:13 -0400, Tom Rini wrote: > > On Fri, Apr 21, 2017 at 01:35:43PM +0300, Alexey Brodkin wrote: > > > > > > > > Finally adding support for ARC boards in TravisCI. > > > > > > To build for ARC bo

Re: [U-Boot] [PATCH] travisci: Add support for ARC

2017-04-21 Thread Alexey Brodkin
Hi Tom, On Fri, 2017-04-21 at 09:13 -0400, Tom Rini wrote: > On Fri, Apr 21, 2017 at 01:35:43PM +0300, Alexey Brodkin wrote: > > > > > Finally adding support for ARC boards in TravisCI. > > > > To build for ARC boards we need to install Synopsys prebuilt toolchain > > which we do here. > > > >

Re: [U-Boot] [PATCH] travisci: Add support for ARC

2017-04-21 Thread Tom Rini
On Fri, Apr 21, 2017 at 01:35:43PM +0300, Alexey Brodkin wrote: > Finally adding support for ARC boards in TravisCI. > > To build for ARC boards we need to install Synopsys prebuilt toolchain > which we do here. > > Signed-off-by: Alexey Brodkin > Cc: Tom Rini Reviewed-by: Tom Rini -- Tom

[U-Boot] Armada 385: PEX detection pulse width

2017-04-21 Thread Stefan Eichenberger
Dear Adam, On the mainline u-boot we found a commit which helps to fix a problem regarding PCIe and the Armada 370: http://git.denx.de/?p=u-boot.git;a=commit;h=6bbe0924a799d33c1a8c9de38b60a5e0251f2aea We currently facing a similar problem with the Armada 385 and PCIe. The problem also appears wit

Re: [U-Boot] [PATCH 2/4] power: pmic: rk808: add RK818 support

2017-04-21 Thread Wadim Egorov
Hi Jacob, Am 21.04.2017 um 05:34 schrieb Jacob Chen: > 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. > > To use rk818,below configs should be enabl

Re: [U-Boot] [PATCH 4/4] power: regulator: rk808: add rk818 support

2017-04-21 Thread Wadim Egorov
Hi Jacob, Am 21.04.2017 um 05:34 schrieb Jacob Chen: > 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. > > TODO: I don't know how to deal with BOOST and LDO9, > so just ignore them now

Re: [U-Boot] [PATCH v6 13/16] arm: socfpga: Add SPL support for Arria 10

2017-04-21 Thread Marek Vasut
On 04/21/2017 11:45 AM, Ley Foon Tan wrote: > On Fri, Apr 21, 2017 at 4:00 AM, Dalon Westergreen > wrote: >> On Thu, 2017-04-20 at 07:12 -0700, Dalon Westergreen wrote: >>> On Wed, 2017-04-19 at 23:58 -0500, Dinh Nguyen wrote: On Wed, Apr 19, 2017 at 6:21 PM, Dalon Westergreen wrot

Re: [U-Boot] [PATCH v4 01/11] rockchip: include: grf: Add GRF register declaration for mipi dsi

2017-04-21 Thread Dr. Philipp Tomsich
Eric, I’d like to request another minor edit (see below) … sorry for sending this as two separate mails, but I only just spotted this. > On 20 Apr 2017, at 06:45, Eric Gao wrote: > > Signed-off-by: Eric Gao > > --- > > Changes in v4: None > Changes in v3: > -Split GRF changes as a single pa

[U-Boot] [PATCH 2/2][v3] nxp/ls2080ardb: Add QSPI-boot support

2017-04-21 Thread Priyanka Jain
QSPI-boot is verified on LS20080ARDB RevF board with LS2088A SoC. LS2088ARDB RevF Board has limitation that QIXIS can not be access, so QIXIS flag is kept disabled Signed-off-by: Priyanka Jain Signed-off-by: Suresh Gupta --- Changes for v3:Udated README Changes for v2: Incorporated Sun York's

[U-Boot] [PATCH 1/2][v3] board: freescale: ls2080ardb: Update QIXIS code

2017-04-21 Thread Priyanka Jain
Update QIXIS related code to be executed only if CONFIG_FSL_QIXIS flag is enabled Signed-off-by: Priyanka Jain --- board/freescale/ls2080ardb/ls2080ardb.c | 19 --- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/

Re: [U-Boot] [PATCH v4 01/11] rockchip: include: grf: Add GRF register declaration for mipi dsi

2017-04-21 Thread Dr. Philipp Tomsich
Reviewed-by: Philipp Tomsich mailto:philipp.toms...@theobroma-systems.com>> > On 20 Apr 2017, at 06:45, Eric Gao wrote: > > Signed-off-by: Eric Gao > > --- > > Changes in v4: None > Changes in v3: > -Split GRF changes as a single patch > > Changes in v2: None > > arch/arm/include/asm/arch-r

[U-Boot] [PATCH] travisci: Add support for ARC

2017-04-21 Thread Alexey Brodkin
Finally adding support for ARC boards in TravisCI. To build for ARC boards we need to install Synopsys prebuilt toolchain which we do here. Signed-off-by: Alexey Brodkin Cc: Tom Rini --- .travis.yml | 8 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index f68

  1   2   >