[U-Boot] [PATCH v2 7/8] powerpc: dts: Add u-boot.dtsi to use binman for MPC85xx boards

2018-08-27 Thread Jagdish Gediya
Signed-off-by: Jagdish Gediya --- Changes for v2: - Remove mpc85xx-u-boot.dtsi - Update u-boot.dtsi to use CONFIG_MPC85XX_HAVE_RESET_VECTOR arch/powerpc/dts/u-boot.dtsi | 32 1 file changed, 32 insertions(+) create mode 100644

[U-Boot] [PATCH v2 8/8] powerpc: dts: Enable device tree support for T2080QDS

2018-08-27 Thread Jagdish Gediya
Add device tree for T2080QDS board and enable CONFIG_OF_CONTROL so that device tree can be compiled. Update board README for device tree usage. Signed-off-by: Jagdish Gediya --- Changes for v2: - Enable CONFIG_MPC85XX_HAVE_RESET_VECTOR in T2080QDS_defconfig - README and commit

[U-Boot] [PATCH v2 3/8] binman: Add a new "skip-at-start" property in Section class

2018-08-27 Thread Jagdish Gediya
Currently binman calculates '_skip_at_start' based on 'end-at-4gb' property and it is used for x86 images. For Powerpc mpc85xx based CPU, CONFIG_SYS_TEXT_BASE is the first entry offset which can be 0xeff4 or 0xfff4 for nor flash boot, 0x201000 for sd boot etc, so "_skip_at_start" should

[U-Boot] [PATCH v2 5/8] powerpc: mpc85xx: Select BINMAN by default

2018-08-27 Thread Jagdish Gediya
Signed-off-by: Jagdish Gediya --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 8faef0b..c727d91 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -20,6 +20,7 @@ config MPC85xx select

[U-Boot] [PATCH v2 6/8] powerpc: mpc85xx: Use binman to embed dtb inside u-boot

2018-08-27 Thread Jagdish Gediya
Below is the sequence to embed dtb inside u-boot, 1. Remove bootpg and resetvec section if needed 2. Append dtb 3. Append bootpg and resetvec section back if removed in step 1 Above procedure is required only when CONFIG_MPC85xx and CONFIG_OF_SEPARATE are defined. Add new config

[U-Boot] [PATCH v2 2/8] powerpc/dts: Makefile changes to clean and build dts

2018-08-27 Thread Jagdish Gediya
Signed-off-by: Jagdish Gediya --- arch/powerpc/dts/Makefile | 12 dts/Makefile | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 arch/powerpc/dts/Makefile diff --git a/arch/powerpc/dts/Makefile b/arch/powerpc/dts/Makefile new file mode

[U-Boot] [PATCH v2 4/8] binman: Add support for Powerpc mpc85xx 'bootpg + resetvec' entry

2018-08-27 Thread Jagdish Gediya
This entry contains the Powerpc mpc85xx boot page and resetvec sections. Signed-off-by: Jagdish Gediya --- Changes for v2: - Updated README for new binman entry - Added test tools/binman/README.entries| 14 +++-

[U-Boot] [PATCH v2 1/8] powerpc/dts: Define '_end' symbol in mpc85xx u-boot lds files

2018-08-27 Thread Jagdish Gediya
'board_fdt_blob_setup' function sets up fdt blob at '&_end' so define '_end' symbol in mpc85xx lds files. Signed-off-by: Jagdish Gediya --- Changes for v2: - Defined '_end' symbol in lds file instead of defining new 'board_fdt_blob_setup' function using existing '_init_end'

[U-Boot] [PATCH v2 0/8] Device tree support for Powerpc in u-boot

2018-08-27 Thread Jagdish Gediya
In current implementation, Powerpc does not support device tree in u-boot. This patch enables device tree support for PowerPC platform . T2080AQDS board used as first platform. Dtb is embedded in the u-boot following below steps using binmam tool. 1. Remove bootpg and resetvec section if

Re: [U-Boot] [PATCH 8/8][RESEND] powerpc: dts: Enable device tree support for T2080QDS

2018-08-27 Thread Jagdish Gediya
Hi, > -Original Message- > From: Bin Meng > Sent: Tuesday, August 21, 2018 5:32 PM > To: Jagdish Gediya > Cc: Prabhakar Kushwaha ; York Sun > ; Poonam Aggrwal ; Tom > Rini ; Simon Glass ; U-Boot > Mailing List > Subject: Re: [PATCH 8/8][RESEND] powerpc: dts: Enable device tree support

Re: [U-Boot] [PATCH v3] serial: omap: Introduce DM specific omap serial

2018-08-27 Thread Derald D. Woods
On Mon, Aug 27, 2018 at 03:55:24PM +0530, Lokesh Vutla wrote: > Add driver model support for OMAP_SERIAL while reusing > the functions in ns16550.c > > Signed-off-by: Lokesh Vutla Works for omap3-evm, omap3-beagle-xm, and am3517-evm. I captured 'dm tree' output below: OMAP3_EVM # dm tree

[U-Boot] [PATCH v8 6/8] armv8: ls1046a: add eSDHC node

2018-08-27 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1046a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1046a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arch/arm/dts/fsl-ls1046a.dtsi index 4acbaf7..7687d12 100644 ---

[U-Boot] [PATCH v8 8/8] Enable CONFIG_BLK and CONFIG_DM_MMC to Kconfig

2018-08-27 Thread Yinbo Zhu
This enables the folowing to Kconfig: CONFIG_BLK CONFIG_DM_MMC Signed-off-by: Yinbo Zhu --- configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++ configs/ls1021atwr_nor_defconfig |2 ++ configs/ls1021atwr_nor_lpuart_defconfig|2 ++

[U-Boot] [PATCH v8 7/8] armv7: ls1021a: enable esdhc

2018-08-27 Thread Yinbo Zhu
This patch is to enable eSDHC for ls1021a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/ls1021a.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi index 5b3fc6a..59c97d5 100644 --- a/arch/arm/dts/ls1021a.dtsi +++

[U-Boot] [PATCH v8 4/8] armv8: ls1088a: add eSDHC node

2018-08-27 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1088a.dtsi |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index 077caf3..72d755a 100644 ---

[U-Boot] [PATCH v8 5/8] armv8: ls1043a: add eSDHC node

2018-08-27 Thread Yinbo Zhu
This patch is to add eSDHC node for ls1043a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls1043a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi index ff40122..a804f51 100644 ---

[U-Boot] [PATCH v8 2/8] armv8/ls1088a/ls2088a: esdhc: Add esdhc clock support

2018-08-27 Thread Yinbo Zhu
This patch adds esdhc clock support for ls1088a and ls2088a. Signed-off-by: Yinbo Zhu --- .../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c

[U-Boot] [PATCH v8 3/8] armv8: ls2088a: add eSDHC node

2018-08-27 Thread Yinbo Zhu
This patch is to add eSDHC node for ls2088a. Signed-off-by: Yinbo Zhu --- arch/arm/dts/fsl-ls2080a.dtsi |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi index b0f8517..2d537ae 100644 ---

[U-Boot] [PATCH v8 1/8] ppa/fm/qe: use block layer in ppa/fm/qe driver

2018-08-27 Thread Yinbo Zhu
At present the MMC subsystem maintains its own list of MMC devices. This cannot work with driver model when CONFIG_BLK is enabled, use blk_dread to replace previous mmc read interface, use mmc_get_blk_desc to get the mmc device property Signed-off-by: Yinbo Zhu --- Change in v8:

Re: [U-Boot] [PATCH 2/2] ARM: am3517_evm: Disable DM_I2C_COMPAT

2018-08-27 Thread Derald D. Woods
On Sun, Aug 19, 2018 at 11:11:03AM -0500, Adam Ford wrote: > 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

Re: [U-Boot] [PATCH v2 07/13] x86: Fix signed shift overflow in MSR_IA32_APICBASE_BASE

2018-08-27 Thread Bin Meng
Hi Eugeniu, On Mon, Aug 27, 2018 at 7:19 AM Eugeniu Rosca wrote: > > Fix the following UBSAN report: > == > UBSAN: Undefined behaviour in arch/x86/cpu/lapic.c:73:14 > left shift of 1048575 by 12 places cannot be represented

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-27 Thread Marek Vasut
On 08/28/2018 12:03 AM, Dalon L Westergreen wrote: > On Mon, 2018-08-27 at 21:03 +0200, Marek Vasut wrote: >> On 08/27/2018 05:30 PM, Dalon L Westergreen wrote: >> On Tue, 2018-08-21 at 05:52 +0200, Marek Vasut wrote: >> On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: >> On Mon, 2018-08-20 at

Re: [U-Boot] [PATCH v2 06/13] net: ravb: Fix signed shift overflow

2018-08-27 Thread Marek Vasut
On 08/27/2018 10:24 PM, Eugeniu Rosca wrote: > Hi Marek, Hi, > On Mon, Aug 27, 2018 at 01:22:54AM +0200, Marek Vasut wrote: >> On 08/27/2018 01:13 AM, Eugeniu Rosca wrote: > [...] >>> >>> #define RAVB_DESC_DT(n)((n) << 28) >> >> What about changing this instead, ((u32)(n)

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-27 Thread Dalon L Westergreen
On Mon, 2018-08-27 at 21:03 +0200, Marek Vasut wrote: > On 08/27/2018 05:30 PM, Dalon L Westergreen wrote: > On Tue, 2018-08-21 at 05:52 +0200, Marek Vasut wrote: > On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: > On Mon, 2018-08-20 at 20:33 +0200, Marek Vasut wrote: > On 08/20/2018 03:54 PM,

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-27 Thread Marek Vasut
On 08/27/2018 05:30 PM, Dalon L Westergreen wrote: > On Tue, 2018-08-21 at 05:52 +0200, Marek Vasut wrote: >> On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: >> On Mon, 2018-08-20 at 20:33 +0200, Marek Vasut wrote: >> On 08/20/2018 03:54 PM, Dalon Westergreen wrote: >> Stratix10 requires a hex

Re: [U-Boot] [PATCH v2 06/13] net: ravb: Fix signed shift overflow

2018-08-27 Thread Eugeniu Rosca
Hi Marek, On Mon, Aug 27, 2018 at 01:22:54AM +0200, Marek Vasut wrote: > On 08/27/2018 01:13 AM, Eugeniu Rosca wrote: [...] > > > > #define RAVB_DESC_DT(n)((n) << 28) > > What about changing this instead, ((u32)(n) << 28) ? This works too. [...] > > > > -

[U-Boot] [PATCH 1/1] test: fix typo in cmd_ut_category() description

2018-08-27 Thread Heinrich Schuchardt
argc = 1: all tests are run argc > 1: only argv[1] is run So we need argc >= 1. Signed-off-by: Heinrich Schuchardt --- include/test/suites.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/test/suites.h b/include/test/suites.h index 8e4eac60eb..abb3a4b816 100644 ---

Re: [U-Boot] [PATCH 11/25] clk: Allow clock defaults to be set also during re-reloc state

2018-08-27 Thread Andreas Dannenberg
Hi Kever, On Mon, Aug 27, 2018 at 11:26:52AM +0800, Kever Yang wrote: > Hi Philipp, Andreas, > > > On 08/25/2018 12:00 AM, Dr. Philipp Tomsich wrote: > >> On 24 Aug 2018, at 17:54, Andreas Dannenberg wrote: > >> > >> Philipp, > >> > >> On Fri, Aug 24, 2018 at 04:42:15PM +0200, Dr. Philipp

Re: [U-Boot] [PATCH 2/2] spl: socfpga: stratix10: add hex file output for spl image

2018-08-27 Thread Dalon L Westergreen
On Tue, 2018-08-21 at 05:52 +0200, Marek Vasut wrote: > On 08/20/2018 11:04 PM, Dalon L Westergreen wrote: > On Mon, 2018-08-20 at 20:33 +0200, Marek Vasut wrote: > On 08/20/2018 03:54 PM, Dalon Westergreen wrote: > Stratix10 requires a hex image of the spl for boot. The hex > image is added to

Re: [U-Boot] [PATCH v4 17/17] usb: host: Drop [e-o]hci-sunxi drivers

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:26PM +0530, Jagan Teki wrote: > Now Allwinner platform is all set to use Generic USB > controller drivers, so remove the legacy sunxi drivers. > > Tested-by: Jagan Teki > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin

Re: [U-Boot] [PATCH v4 16/17] sunxi: usb: Switch to Generic host controllers

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:25PM +0530, Jagan Teki wrote: > Once of key blocker for using USB Generic host controller > drivers in Allwinner are CLK and RESET drivers, now these > available for USB usage. So switch to use EHCI and OHCI > Generic controllers. > > Enabling USB is wisely a board

Re: [U-Boot] [PATCH v4 14/17] phy: sun4i-usb: Use CLK and RESET support

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:23PM +0530, Jagan Teki wrote: > Now clock and reset drivers are available for respective > SoC's so use clk and reset ops on phy driver. > > Tested-by: Jagan Teki > Signed-off-by: Jagan Teki Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedded

Re: [U-Boot] [PATCH v4 12/17] clk: sunxi: Add Allwinner V3S CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:21PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner V3S. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for V3S, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and USB

Re: [U-Boot] [PATCH v4 11/17] clk: sunxi: Add Allwinner R40 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:20PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner R40. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for R40, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and USB

Re: [U-Boot] [PATCH v4 10/17] clk: sunxi: Add Allwinner A83T CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:19PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A83T. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for A83T, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and

Re: [U-Boot] [PATCH v4 09/17] clk: sunxi: a23: Add CLK support for A33

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:18PM +0530, Jagan Teki wrote: > A33 has separate clock driver in Linux because of > few clock differences wrt to A23 like audio etc,. > these may not useful for U-Boot so added a33 ccu > compatible on existing a23 clock driver. > > Signed-off-by: Jagan Teki I guess

Re: [U-Boot] [PATCH v4 08/17] clk: sunxi: Add Allwinner A23 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:17PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A23. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for A23, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and USB

Re: [U-Boot] [PATCH v4 07/17] clk: sunxi: Add Allwinner A31 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:16PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A31. > > - Implement USB ahb1 and USB clocks via ccu_clk_map descriptor > for A31, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB ahb1 and

Re: [U-Boot] [PATCH v4 06/17] clk: sunxi: Add Allwinner A10s/A13 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:15PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A10s/A13. > > - Implement USB ahb and USB clocks via ccu_clk_map descriptor > for A10s/A13, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB

Re: [U-Boot] [PATCH v4 05/17] clk: sunxi: Add Allwinner A10/A20 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:14PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A10/A20. > > - Implement USB ahb and USB clocks via ccu_clk_map descriptor > for A10/A20, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB

Re: [U-Boot] [PATCH v4 04/17] clk: sunxi: Add Allwinner H3/H5 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:13PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner H3/H5. > > - Implement USB bus and USB clocks via ccu_clk_map descriptor > for H3/H5, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement USB bus and

[U-Boot] [PATCH 4/4] armv8: ls1043a: enable icid setup for qman portals

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor Enable support for ICID setup of qman portals and the required device tree fixups. Signed-off-by: Laurentiu Tudor --- drivers/misc/fsl_portals.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/misc/fsl_portals.c

[U-Boot] [PATCH 2/4] armv8: ls1043a: advertise QMan v3 in configuration

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor The QMan IP block in this SoC is version 3.2 so advertise this in the SoC configuration header. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH 3/4] armv8: ls1043a: add icid setup support

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor Reuse the existing ICID setup code done for LS1046A smmu enablement and add the equivalent setup for LS1043A chips. Signed-off-by: Laurentiu Tudor --- arch/arm/cpu/armv8/fsl-layerscape/Makefile| 1 + .../arm/cpu/armv8/fsl-layerscape/ls1043_ids.c | 90

[U-Boot] [PATCH 0/4] NXP LS1043A SMMU enabling patches

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor This patch builds on the already existing LS1046A SMMU enablement infrastructure to add the required device setup and device tree fixups for enabling SMMU on LS1043A SoCs. Laurentiu Tudor (4): armv8: fsl-layerscape: add missing qe base address define armv8: ls1043a:

[U-Boot] [PATCH 1/4] armv8: fsl-layerscape: add missing qe base address define

2018-08-27 Thread laurentiu . tudor
From: Laurentiu Tudor Add define for quiccengine register block base address. Signed-off-by: Laurentiu Tudor --- arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h

Re: [U-Boot] [PATCH v4 03/17] reset: Add Allwinner RESET driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:12PM +0530, Jagan Teki wrote: > Add common reset driver for all Allwinner SoC's. > > Since CLK and RESET share common DT compatible, it is CLK driver > job is to bind the reset driver. So add CLK bind call on respective > SoC driver by passing ccu map descriptor

Re: [U-Boot] [PATCH v4 01/17] clk: Add Allwinner A64 CLK driver

2018-08-27 Thread Maxime Ripard
On Sun, Aug 26, 2018 at 06:08:10PM +0530, Jagan Teki wrote: > Add initial clock driver for Allwinner A64. > > Implement USB clock enable and disable functions for > OHCI, EHCI, OTG and USBPHY gate and clock registers. > > Tested-by: Jagan Teki # BPI-M64 > Signed-off-by: Jagan Teki Acked-by:

Re: [U-Boot] [PATCH v2 01/13] UBSAN: run-time undefined behavior sanity checker

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 01:13:19AM +0200, Eugeniu Rosca wrote: > Import Undefined Behavior SANitizer from Linux Kernel v4.18, as > implemented by Andrey Ryabinin . > > Roughly, the UBSAN development history in Linux kernel looks like: > > v4.18 3ca17b1f3628 ("lib/ubsan: remove null-pointer

Re: [U-Boot] [PATCH 11/15] efi_loader: capitalization table

2018-08-27 Thread Mike FABIAN
Alexander Graf さんは書きました: > On 26.08.18 21:00, Heinrich Schuchardt wrote: >> On 08/26/2018 08:22 PM, Alexander Graf wrote: >>> >>> >>> On 11.08.18 17:28, Heinrich Schuchardt wrote: This patch provides a define to initialize a table that maps lower to capital letters for Unicode code

Re: [U-Boot] [PATCH v2 20/24] remoteproc: Introduce K3 system controller

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:51PM +0530, Lokesh Vutla wrote: > K3 specific SoCs have a dedicated microcontroller for doing > resource management. Any HLOS/firmware on compute clusters should > load a firmware to this microcontroller before accessing any resource. > Adding support for loading

Re: [U-Boot] [PATCH v2 7/8] armv8: K3: am654: Introduce FIT generator script

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:14PM +0530, Lokesh Vutla wrote: > Add a script that is capable of generating a FIT image > source file that combines ATF, SPL(64 bit) and DT. > This combined image is used by R5 SPL and start ATF > on ARMv8 core. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom

Re: [U-Boot] [PATCH v2 03/13] armv8: mmu: Fix signed shift overflow

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 01:13:21AM +0200, Eugeniu Rosca wrote: > Fix the following UBSAN warnings: > Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH v2 12/13] input: Fix zero-sized array

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 01:13:30AM +0200, Eugeniu Rosca wrote: > Fix below UBSAN reports, thrown on sandbox: > > > UBSAN: Undefined behaviour in drivers/input/input.c:512:7 > variable length array bound value 0 <= 0 >

Re: [U-Boot] [PATCH v2 11/13] hashtable: Fix zero-sized array

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 01:13:29AM +0200, Eugeniu Rosca wrote: > Enabling CONFIG_UBSAN=y, below runtime warning occurs both in sandbox > and R-Car H3 Salvator-X U-Boot: > > = > UBSAN: Undefined behaviour in

Re: [U-Boot] [PATCH v2 2/8] arm: K3: Add support for AM654 SoC definition

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:09PM +0530, Lokesh Vutla wrote: > The AM654 device is designed for industrial automation and PLC > controller class platforms among other applications. Introduce > base support for AM654 SoC. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom

Re: [U-Boot] [PATCH v2 4/8] arm: K3: am654: Add support for boot device detection

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:11PM +0530, Lokesh Vutla wrote: > AM654 allows for booting from primary or backup boot media. > Both media can be chosen individually based on switch settings. > ROM looks for a valid image in primary boot media, if not found > then looks in backup boot media. In

Re: [U-Boot] [PATCH v3] serial: omap: Introduce DM specific omap serial

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:55:24PM +0530, Lokesh Vutla wrote: > Add driver model support for OMAP_SERIAL while reusing > the functions in ns16550.c > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature

Re: [U-Boot] [PATCH v2 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-08-27 Thread Tom Rini
On Mon, Aug 27, 2018 at 03:57:08PM +0530, Lokesh Vutla wrote: > Add support for Texas Instruments' K3 Generation Processor > families. > > Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___

Re: [U-Boot] [PATCH v2 0/8] [1/3] Initial support Texas Instrument's AM654 Platform

2018-08-27 Thread Lokesh Vutla
On Monday 27 August 2018 03:57 PM, Lokesh Vutla wrote: > The AM654 SoC is a lead device of the K3 Multicore SoC architecture > platform, targeted for broad market and industrial control with aim to > meet the complex processing needs of modern embedded products. > > The device is partitioned

[U-Boot] [PATCH v2 0/5] [3/3] Initial support Texas Instrument's AM654 Platform

2018-08-27 Thread Lokesh Vutla
Continue from PART 2/3... This series adds arm64 support for AM654 EVM. Patch 2/6 describes the boot flow in detail. I would recommend to go through the patch in order to understand the entire boot flow. Right now only arm64 support is added. r5 support will be posted later once loading of

[U-Boot] [PATCH v2 22/24] spl: Allow remoteproc drivers to be used within SPL

2018-08-27 Thread Lokesh Vutla
Add an option for building remoteproc drivers within SPL. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- common/spl/Kconfig | 6 ++ drivers/Makefile| 2 +- drivers/remoteproc/Makefile | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 23/24] mmc: k3_arasan: Add sdhci driver support for K3 family SoCs

2018-08-27 Thread Lokesh Vutla
AM654 has an arasan sdhci controller and a mmc phy attached to it. Add basic support for K3 specific arasan sdhci controller. Cc: Jaehoon Chung Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- drivers/mmc/Kconfig | 9 +++ drivers/mmc/Makefile | 1 +

[U-Boot] [PATCH v2 05/24] firmware: ti_sci: Add support for reboot core service

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Since system controller now has control over SoC power management, it needs to be explicitly requested to reboot the SoC. Add support for it. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla Signed-off-by: Nishanth Menon ---

[U-Boot] [PATCH v2 10/24] reset: Introduce TI System Control Interface (TI SCI) reset driver

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some TI Keystone 2 and K3 family of SoCs contain a system controller (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and the Device Management and Security Controller on AM65x SoCs) that manage the low-level device control (like clocks, resets etc) for

[U-Boot] [PATCH v2 17/24] mailbox: Introduce K3 Secure Proxy Driver

2018-08-27 Thread Lokesh Vutla
Secure Proxy module manages hardware threads that are meant for communication between the processor entities. Adding support for this driver. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla Signed-off-by: Andreas Dannenberg --- .../mailbox/k3-secure-proxy.txt | 40 ++

[U-Boot] [PATCH v2 4/5] arm64: dts: k3: Add u-boot specific nodes

2018-08-27 Thread Lokesh Vutla
Add the minimum dt nodes required to boot. These nodes will get deleted as kernel gets these nodes added in the main dts files. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 203 +++ include/dt-bindings/pinctrl/k3-am65.h

[U-Boot] [PATCH v2 19/24] remoteproc: Allow for individual remoteproc initialization

2018-08-27 Thread Lokesh Vutla
Existing rproc_init() api tries to initialize all available remoteproc devices. This will fail when there is dependency among available remoteprocs. So introduce a separate api that allows to initialize remoteprocs individually based on id. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla ---

[U-Boot] [PATCH v2 1/5] board: ti: am654: a53: Add initial support for am654

2018-08-27 Thread Lokesh Vutla
Add initial support for AM654 based EVM running on A53. Enable 4GB of DDR available on the EVM so that kernel DTB file can be updated accordingly. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla [Andreas: Added 4GB ddr support] Signed-off-by: Andreas Dannenberg --- arch/arm/mach-k3/Kconfig

[U-Boot] [PATCH v2 5/5] configs: am65x_evm_a53: Add initial support

2018-08-27 Thread Lokesh Vutla
Add initial defconfig support for AM65x that runs on A53. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- board/ti/am65x/MAINTAINERS | 1 + configs/am65x_evm_a53_defconfig | 71 + 2 files changed, 72 insertions(+) create mode 100644

[U-Boot] [PATCH v2 24/24] gpio: do not include for ARCH_K3

2018-08-27 Thread Lokesh Vutla
As no gpio.h is defined in arch/arm/mach-k3/include/, to avoid compilation failure, do not include asm/arch/gpio.h. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/include/asm/gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 3/5] arm64: dts: k3: Add Support for AM654 SoC

2018-08-27 Thread Lokesh Vutla
Add initial DT support for AM654 EVM that runs on A53. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/dts/Makefile| 2 + arch/arm/dts/k3-am65-main.dtsi | 31 arch/arm/dts/k3-am65.dtsi| 87

[U-Boot] [PATCH v2 12/24] clk: Introduce TI System Control Interface (TI SCI) clock driver

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some TI Keystone 2 and K3 family of SoCs contain a system controller (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and the Device Management and Security Controller on AM65x SoCs) that manage the low-level device control (like clocks, resets etc) for

[U-Boot] [PATCH v2 2/5] include: am654_evm: Establish initial environment for SD card boot

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Create a basic U-Boot environment that allows the automatic loading of a Linux Kernel located at /boot/Image and an associated device tree blob located at /boot/k3-am654-base-board.dtb from the secondary partition of an ext4-formatted SD card on the AM654x EVM.

[U-Boot] [PATCH v2 01/24] firmware: Add basic support for TI System Control Interface (TI SCI) protocol

2018-08-27 Thread Lokesh Vutla
Texas Instrument's System Control Interface (TI SCI) message protocol is used in Texas Instrument's System on Chip (SoC) such as those in the K3 family AM654 SoC to communicate between various compute processors with a central system controller entity. The TI SCI message protocol provides support

[U-Boot] [PATCH v2 09/24] reset: Extend reset control with an optional data field

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some systems require more than a single ID to identify and configure any reset provider. For those scenarios add an optional data field to the reset control structure. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla ---

[U-Boot] [PATCH v2 00/24] [2/3] Initial support Texas Instrument's AM654 Platform

2018-08-27 Thread Lokesh Vutla
Continue from PART 1/3. This series adds all the driver support that are required to boot AM654 SoC. The drivers are: - TISCI Communication protocol to system controller - Clock, power, reset drivers. - Mailbox driver to communication to system controller. - remoteproc drivers to start system

[U-Boot] [PATCH v2 07/24] dm: firmware: Automatically bind child devices

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg To support scenarios where a firmware device node has subnodes that have their own drivers automatically scan the DT and bind those when the firmware device gets bound. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla ---

[U-Boot] [PATCH v2 16/24] mailbox: Allow attaching private data for mbox_chan

2018-08-27 Thread Lokesh Vutla
Sometimes mbox controllers wants to store private data in mbox_chan so that it can be used at a later point of time. Adding support for hooking private data. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- include/mailbox.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-)

[U-Boot] [PATCH v2 02/24] firmware: ti_sci: Add support for board configuration

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg TI-SCI message protocol provides support for board configuration to assign resources and other board related operations. Introduce the board configuration capability support to the driver protocol as part of this change. Reviewed-by: Tom Rini Signed-off-by: Andreas

[U-Boot] [PATCH v2 03/24] firmware: ti_sci: Add support for device control

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg TI-SCI message protocol provides support for management of various hardware entitites within the SoC. Introduce the fundamental device management capability support to the driver protocol as part of this change. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla

[U-Boot] [PATCH v2 14/24] power domain: Introduce TI System Control Interface (TI SCI) power domain driver

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some TI Keystone 2 and K3 family of SoCs contain a system controller (like the Power Management Micro Controller (PMMC) on 66AK2G SoCs and the Device Management and Security Controller on AM65x SoCs) that manage the low-level device control (like clocks, resets etc) for

[U-Boot] [PATCH v2 13/24] power domain: Add support for multiple powerdomains per device

2018-08-27 Thread Lokesh Vutla
There are cases where there are more than one power domain attached to the device inorder to get the device functional. So add support for enabling power domain based on the index. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- drivers/power/domain/power-domain-uclass.c | 11 +--

[U-Boot] [PATCH v2 08/24] dm: reset: Update uclass to allow querying reset status

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Add a reset operations function pointer to support querying the current status of a reset control. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- drivers/reset/reset-uclass.c | 9 + include/reset-uclass.h | 8

[U-Boot] [PATCH v2 21/24] remoteproc: Introduce K3 remoteproc driver

2018-08-27 Thread Lokesh Vutla
Add support for K3 based remoteproc driver that communicates with TISCI to start start a remote processor. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- .../remoteproc/k3-rproc.txt | 50 drivers/remoteproc/Kconfig| 9 +

[U-Boot] [PATCH v2 11/24] clk: Extend clock control with an optional data field

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Some systems require more than a single ID to identify and configure any clock provider. For those scenarios add an optional data field to the clock control structure. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla ---

[U-Boot] [PATCH v2 04/24] firmware: ti_sci: Add support for clock control

2018-08-27 Thread Lokesh Vutla
In general, we expect to function at a device level of abstraction, however, for proper operation of hardware blocks, many clocks directly supplying the hardware block needs to be queried or configured. Introduce support for the set of SCI message protocol support that provide us with this

[U-Boot] [PATCH v2 06/24] firmware: ti_sci: Add support for processor control services

2018-08-27 Thread Lokesh Vutla
TI-SCI message protocol provides support for controlling of various physical cores available in SoC. In order to control which host is capable of controlling a physical processor core, there is a processor access control list that needs to be populated as part of the board configuration data.

[U-Boot] [PATCH v2 20/24] remoteproc: Introduce K3 system controller

2018-08-27 Thread Lokesh Vutla
K3 specific SoCs have a dedicated microcontroller for doing resource management. Any HLOS/firmware on compute clusters should load a firmware to this microcontroller before accessing any resource. Adding support for loading this firmware. After the K3 system controller got loaded with firmware

[U-Boot] [PATCH v2 15/24] sysreset: Add TI System Control Interface (TI SCI) sysreset driver

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg Devices from the TI K3 family of SoCs like the AM654x contain a Device Management and Security Controller (SYSFW) that manages the low-level device control (like clocks, resets etc) for the various hardware modules present on the SoC. These device control operations are

[U-Boot] [PATCH v2 18/24] spl: Allow mailbox drivers to be used within SPL

2018-08-27 Thread Lokesh Vutla
Add an option for building mailbox drivers within SPL. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- common/spl/Kconfig | 8 drivers/Makefile | 1 + drivers/mailbox/Makefile | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/common/spl/Kconfig

[U-Boot] [PATCH v2 4/8] arm: K3: am654: Add support for boot device detection

2018-08-27 Thread Lokesh Vutla
AM654 allows for booting from primary or backup boot media. Both media can be chosen individually based on switch settings. ROM looks for a valid image in primary boot media, if not found then looks in backup boot media. In order to pass this boot media information to boot loader, ROM stores a

[U-Boot] [PATCH v2 5/8] arm: K3: am654: Unlock control module registers during init

2018-08-27 Thread Lokesh Vutla
From: Andreas Dannenberg By default the device control module registers are locked, preventing any writes to its registers. Unlock those registers as part of the init flow. Reviewed-by: Tom Rini Signed-off-by: Andreas Dannenberg Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/am6_init.c

[U-Boot] [PATCH v2 8/8] armv8: K3: am654: Add support for generating build targets

2018-08-27 Thread Lokesh Vutla
Update Makefile to generate - tispl.bin: First stage bootloader on ARMv8 core - u-boot.img: Second stage bootloader on ARMv8 core. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/config.mk | 19 +++ scripts/Makefile.spl | 9 + 2 files

[U-Boot] [PATCH v2 7/8] armv8: K3: am654: Introduce FIT generator script

2018-08-27 Thread Lokesh Vutla
Add a script that is capable of generating a FIT image source file that combines ATF, SPL(64 bit) and DT. This combined image is used by R5 SPL and start ATF on ARMv8 core. Signed-off-by: Lokesh Vutla --- tools/k3_fit_atf.sh | 99 + 1 file changed, 99

[U-Boot] [PATCH v2 6/8] armv8: K3: am654: Add custom MMU support

2018-08-27 Thread Lokesh Vutla
Add MMU mappings for AM654 SoC. Reviewed-by: Tom Rini Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/Makefile| 1 + arch/arm/mach-k3/arm64-mmu.c | 45 2 files changed, 46 insertions(+) create mode 100644 arch/arm/mach-k3/arm64-mmu.c diff --git

[U-Boot] [PATCH v2 3/8] arm: K3: Update _start instruction

2018-08-27 Thread Lokesh Vutla
On K3 family SoCs, once the ROM loads image on R5, M3 resets R5 and expects to start executing from 0x0. In order to handle this ROM updates the boot vector of R5 such that first 64 bytes of image load address are mapped to 0x0. In this case, it is SPL's responsibility to jump to the proper image

[U-Boot] [PATCH v2 2/8] arm: K3: Add support for AM654 SoC definition

2018-08-27 Thread Lokesh Vutla
The AM654 device is designed for industrial automation and PLC controller class platforms among other applications. Introduce base support for AM654 SoC. Signed-off-by: Lokesh Vutla --- arch/arm/mach-k3/Kconfig | 31 ++ arch/arm/mach-k3/Makefile

[U-Boot] [PATCH v2 1/8] arm: K3: Add initial support for TI's K3 generation of SoCs

2018-08-27 Thread Lokesh Vutla
Add support for Texas Instruments' K3 Generation Processor families. Signed-off-by: Lokesh Vutla --- Kconfig | 2 +- MAINTAINERS | 1 + arch/arm/Kconfig | 8 arch/arm/Makefile| 1 + arch/arm/mach-k3/Kconfig | 12

[U-Boot] [PATCH v2 0/8] [1/3] Initial support Texas Instrument's AM654 Platform

2018-08-27 Thread Lokesh Vutla
The AM654 SoC is a lead device of the K3 Multicore SoC architecture platform, targeted for broad market and industrial control with aim to meet the complex processing needs of modern embedded products. The device is partitioned into three functional domains, each containing specific processing

  1   2   >