[U-Boot] sunxi: Build issue with Bananapi_M2_Ultra

2017-04-24 Thread Jagan Teki
Hi, We're unable to build with buildman with gcc-4.9.x arm: + Bananapi_M2_Ultra +arm-unknown-linux-gnueabi-ld.bfd: u-boot-spl section `.rodata' will not fit in region `.sram' +arm-unknown-linux-gnueabi-ld.bfd: region `.sram' overflowed by 716 bytes +make[2]: *** [spl/u-boot-spl] Error

[U-Boot] [RFC PATCH] ext4: Fix comparision of unsigned expression with < 0

2017-04-24 Thread Lokesh Vutla
In file ext4fs.c funtion ext4fs_read_file() compares an unsigned expression with < 0 like below lbaint_t blknr; blknr = read_allocated_block(&(node->inode), i); if (blknr < 0) return -1; blknr is of type ulong/uint64_t. read_allocated_block() returns long

Re: [U-Boot] [PATCH] armv8: ls2080ardb: Update default sysclk to 100MHz

2017-04-24 Thread Priyanka Jain
> -Original Message- > From: York Sun [mailto:york@nxp.com] > Sent: Monday, April 24, 2017 9:24 PM > To: Priyanka Jain ; u-boot@lists.denx.de > Subject: Re: [PATCH] armv8: ls2080ardb: Update default sysclk to 100MHz > > On 04/22/2017 02:42 AM, Priyanka Jain

[U-Boot] [PATCH][v2] board: freescale: ls2080ardb: Enable SD interface for RevF board

2017-04-24 Thread Priyanka Jain
LS2080ARDB/LS2088ARDB RevF board has smart voltage translator which needs to be programmed to enable high speed SD interface by setting GPIO4_10 output to zero Signed-off-by: Priyanka Jain Signed-off-by: Santan Kumar --- Changes for v2: Added NXP

[U-Boot] [PATCH 2/2] ARM: sunxi: use imply instead of bare default y in Kconfig

2017-04-24 Thread Masahiro Yamada
Fix annoying config redefines in SoC/board level Kconfig. Signed-off-by: Masahiro Yamada --- arch/arm/Kconfig| 8 arch/arm/mach-sunxi/Kconfig | 26 -- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git

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

2017-04-24 Thread Lokesh Vutla
On Monday 24 April 2017 08:53 PM, Andrew F. Davis wrote: > On 04/22/2017 01:50 AM, Lokesh Vutla wrote: >> 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

[U-Boot] [PATCH] ARM: omap2+: rename config to ARCH_OMAP2PLUS and consolidate Kconfig

2017-04-24 Thread Masahiro Yamada
In Linux, CONFIG_ARCH_OMAP2PLUS is used for OMAP2 or later SoCs. Rename CONFIG_ARCH_OMAP2 to CONFIG_ARCH_OMAP2PLUS to follow this naming. Move the OMAP2+ board/SoC choice down to mach-omap2/Kconfig to slim down the arch/arm/Kconfig level. Signed-off-by: Masahiro Yamada

Re: [U-Boot] [PATCH 07/11] i2c: Drop use of CONFIG_I2C_HARD

2017-04-24 Thread Lokesh Vutla
Hi Simon, On Sunday 23 April 2017 09:05 PM, Simon Glass wrote: > Drop use of this long-deprecated option. > > Signed-off-by: Simon Glass > --- > > README | 16 > board/ti/am335x/board.c | 6 +- > board/ti/am43xx/board.c

Re: [U-Boot] U-Boot of-platdata issue

2017-04-24 Thread Kever Yang
Hi Simon, On 02/17/2017 04:43 AM, Simon Glass wrote: [...] 2. multi compatible name When a dts node have more than one compatible name, which is prefer to use? for example, we have two dwmmc compatible name in rk3399, the tool is using the first one, while the source code using the last one.

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

2017-04-24 Thread Bin Meng
Hi Simon, On Mon, Apr 24, 2017 at 11:38 AM, Simon Glass wrote: > Hi Bin, > > On 21 April 2017 at 08:24, Bin Meng wrote: >> U-Boot sets up the real mode interrupt handler stubs starting from >> address 0x1000. In most cases, the first 640K (0x0 -

Re: [U-Boot] [PATCH v4 0/7] am57xx: cl-som-am57x: fix usb

2017-04-24 Thread Tom Rini
On Sun, Apr 23, 2017 at 11:18:04AM +0300, Uri Mashiach wrote: > Hello Tom, > > A gentle ping on this patch series. > > On 02/23/2017 03:39 PM, Uri Mashiach wrote: > >Various USB related comits for the CL-SOM-AM57x module. > > > >--- > >V1 -> V2: Replace commit "fix XHCI registers base address"

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

2017-04-24 Thread Ley Foon Tan
On Fri, Apr 21, 2017 at 9: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 >> >

Re: [U-Boot] arm: mxs: No arch specific invalidate_icache_all available!

2017-04-24 Thread Fabio Estevam
Hi Stefan, On Mon, Apr 24, 2017 at 8:03 AM, Stefan Wahren wrote: > Hi, > > i tried to port our Duckbill (based on NXP i.MX28 SoC) to U-Boot > v2017.03 [1]. The startup works fine, except of this warning: > > No arch specific invalidate_icache_all available! > > I didn't

[U-Boot] [v2, 01/13] phy: marvell: Replace PHY_TYPE_KR with PHY_TYPE_SFI

2017-04-24 Thread igall
From: Stefan Roese Use correct naming as done in the latest Marvell U-Boot version as well. Signed-off-by: Stefan Roese Signed-off-by: Igal Liberman --- arch/arm/dts/armada-8040-db.dts | 8 arch/arm/dts/armada-8040-mcbin.dts

[U-Boot] [v2, 10/13] phy: marvell: print comphy status even when it's disconnected

2017-04-24 Thread igall
From: Stefan Roese since now the COMPHY can also be ignored, we must know the state of the COMPHY. we cannot assume anymore that a missing COMPHY is unconnected. Signed-off-by: Yehuda Yitschak Signed-off-by: Stefan Roese Signed-off-by: Igal

[U-Boot] [v2, 07/13] fix: phy: marvell: cp110: update comphy selector option

2017-04-24 Thread igall
From: Stefan Roese Align PHY selectors register with Armada-CP-110 functional SPEC update all relevant device trees with this change. Signed-off-by: Hanna Hawa Signed-off-by: Stefan Roese Signed-off-by: Igal Liberman ---

[U-Boot] [v2, 03/13] phy: marvell: cp110: update utmi phy connection type

2017-04-24 Thread igall
From: Stefan Roese UTMI_PHY_TO_USB_HOST was used in USB3 UTMI dts node only, but there will be USB2 UTMI dts node for some SoCs that have got USB2 controller, so rename TO_USB_HOST to TO_USB3_HOST to distinguish TO_USB2_HOST in later on patches. Signed-off-by: zachary

[U-Boot] [v2, 12/13] fix: phy: marvell: cp110: rename comphy_index to cp_index

2017-04-24 Thread igall
From: Igal Liberman No functional change. The variable name "comphy_index" is misleading, it represents cp index and not comphy index. Signed-off-by: Igal Liberman --- drivers/phy/marvell/comphy.h | 2 +- drivers/phy/marvell/comphy_core.c | 8

[U-Boot] [v2, 02/13] phy: marvell: cp110: add support for end point configuration

2017-04-24 Thread igall
From: Stefan Roese The serdes was always configured in root complex mode. this patch add new entry in device tree (per serdes) which indicates whether the serdes is in end point mode. if so, it skips the root complex configuration. Signed-off-by: Haim Boot

[U-Boot] [v2, 08/13] phy: marvell: cp110: add 5G XFI mode

2017-04-24 Thread igall
From: Igal Liberman This patch adds the option to configure a comphy to 5G XFI mode. In order to configure the comphy to 5G XFI, update the comphy node in the device-tree: phy2 { phy-type = ; phy-speed = ; }; Signed-off-by:

[U-Boot] [v2, 13/13] fix: phy: marvell: cp110: pcie: update analog parameters according to latest ETP

2017-04-24 Thread igall
From: Igal Liberman Add PCIE analog parameters initialization values according to latest ETP. Signed-off-by: Igal Liberman --- drivers/phy/marvell/comphy_cp110.c | 66 -- drivers/phy/marvell/comphy_hpipe.h | 44

[U-Boot] [PATCH 00/11] i2c: Remove old I2C support

2017-04-24 Thread Simon Glass
We have about 6600 CONFIG options to convert to Kconfig at the time of writing and our target is to complete work by the end of the year[1]. We have no hope of doing this unless we adopt a somewhat more agressive approach to dropping old boards and options. There are a very large number of

[U-Boot] [PATCH 12/13] fix: phy: marvell: comphy: cp110: rename comphy_index to cp_index

2017-04-24 Thread igall
From: Igal Liberman No functional change. The variable name "comphy_index" is misleading, it represents cp index and not comphy index. Change-Id: I8c256bebb0505f4f527aec8a01dc5e75376bb79e Signed-off-by: Igal Liberman --- drivers/phy/marvell/comphy.h

[U-Boot] [v2, 04/13] phy: marvell: add IGNORE COMPHY type

2017-04-24 Thread igall
From: Stefan Roese This type tells u-boot to preserve the COMPHY settings as is it is usefull in situations where the COMPHY was initialized by earlier firmware. Note that IGNORE is different from UNCONNECTED since setting UNCONNECTED type will disconnect the COMPHY in the COMPHY

[U-Boot] [PATCH 1/1] add Kconfig for fsuuid command

2017-04-24 Thread Josua Mayer
CONFIG_CMD_FS_UUID was neither whitelisted, nor was it declared in Kconfig. Now it can be enabled in .config and defconfig as expected. Signed-off-by: Josua Mayer --- cmd/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index

[U-Boot] [v2, 06/13] fix: phy: marvell: cp110: sata: update analog parameters according to latest ETP

2017-04-24 Thread igall
From: Igal Liberman Add SATA analog parameters initialization values according to latest ETP. Signed-off-by: Konstantin Porotchkin Signed-off-by: Stefan Roese Signed-off-by: Igal Liberman ---

[U-Boot] [PATCH 13/13] fix: phy: marvell: comphy: cp110: pcie: update analog parameters according to latest ETP

2017-04-24 Thread igall
From: Igal Liberman Add PCIE analog parameters initialization values according to latest ETP. Change-Id: I4a65082c8cd70861e21bb2dda673c41ae7089969 Signed-off-by: Igal Liberman --- drivers/phy/marvell/comphy_cp110.c | 66

[U-Boot] [v2, 00/13] phy: marvell: cp110: varius comphy updates

2017-04-24 Thread igall
From: Igal Liberman This patchset improves Marvell A70x0/80x0 comphy driver: - Improve comphy electrical parameters - New modes - Style - Bug fixes v1 --> v2: - update commit messages - remove change-id Igal Liberman (5): fix:

[U-Boot] [PATCH 08/13] phy: marvell: comphy: cp110: add 5G XFI mode

2017-04-24 Thread igall
From: Igal Liberman This patch adds the option to configure a comphy to 5G XFI mode. In order to configure the comphy to 5G XFI, update the comphy node in the device-tree: phy2 { phy-type = ; phy-speed = ; }; Change-Id:

[U-Boot] [v2, 09/13] fix: phy: marvell: cp110: fix comphy lane 4 selection options

2017-04-24 Thread igall
From: Stefan Roese The comphy configuration is incorrect. Set the correct values for SGMII. In addition, remove xaui from the comment as it is not supported. Signed-off-by: Yoav Gvili Signed-off-by: Stefan Roese Signed-off-by: Igal Liberman

[U-Boot] [v2, 05/13] fix: phy: marvell: cp110: fix the KR/SFI line 4 selector

2017-04-24 Thread igall
From: Stefan Roese This patch fixes the following: 1. KR/SFI on lane #4 mux selector is 0x2 and not 0x1 2. Comment typo Signed-off-by: Rabeeh Khoury Signed-off-by: Stefan Roese Signed-off-by: Igal Liberman ---

[U-Boot] [PATCH 09/13] fix: phy: marvell: comphy: cp110: fix comphy lane 4 selection options

2017-04-24 Thread igall
From: Stefan Roese The comphy configuration is incorrect. Set the correct values for SGMII. In addition, remove xaui from the comment as it is not supported. Change-Id: I85446b4f1b683ccd54bff8586fa1fabcd00d3ce1 Signed-off-by: Yoav Gvili Signed-off-by: Stefan

[U-Boot] [v2, 11/13] fix: phy: marvell: cp110: sfi: update analog parameters according to latest ETP

2017-04-24 Thread igall
From: Igal Liberman Add SFI analog parameters initialization values according to latest ETP. Signed-off-by: Igal Liberman --- drivers/phy/marvell/comphy_cp110.c | 88 +++--- drivers/phy/marvell/comphy_hpipe.h | 40

[U-Boot] [PATCH 11/13] fix: phy: marvell: cp110: sfi: update analog parameters according to latest ETP

2017-04-24 Thread igall
From: Igal Liberman Add SFI analog parameters initialization values according to latest ETP. Change-Id: I61bdd9817b34473d5fcf6e839478cd2ebd0b5fdc Signed-off-by: Igal Liberman --- drivers/phy/marvell/comphy_cp110.c | 88

[U-Boot] [PATCH 0/1] Allow fsuuid command to be built

2017-04-24 Thread Josua Mayer
Hi everybody, With the fsuuid command not being listed in Kconfig, and not being whitelisted, it was impossible to be build it. This patch rectifies that situation by adding a Kconfig piece for it. br Josua Mayer Josua Mayer (1): clearfog: enable distro boot code Kconfig|

[U-Boot] [PATCH 04/13] phy: marvell: comphy: add IGNORE COMPHY type

2017-04-24 Thread igall
From: Stefan Roese This type tells u-boot to preserve the COMPHY settings as is it is usefull in situations where the COMPHY was initialized by earlier firmware. Note that IGNORE is different from UNCONNECTED since setting UNCONNECTED type will disconnect the COMPHY in the COMPHY

[U-Boot] [PATCH 03/13] phy: marvell: comphy: cp110: update utmi phy connection type

2017-04-24 Thread igall
From: Stefan Roese UTMI_PHY_TO_USB_HOST was used in USB3 UTMI dts node only, but there will be USB2 UTMI dts node for some SoCs that have got USB2 controller, so rename TO_USB_HOST to TO_USB3_HOST to distinguish TO_USB2_HOST in later on patches. Change-Id:

[U-Boot] arm: mxs: No arch specific invalidate_icache_all available!

2017-04-24 Thread Stefan Wahren
Hi, i tried to port our Duckbill (based on NXP i.MX28 SoC) to U-Boot v2017.03 [1]. The startup works fine, except of this warning: No arch specific invalidate_icache_all available! I didn't found a MXS specific implementation of invalidate_icache_all(). Did i miss something? Shouldn't be the

[U-Boot] [PATCH 01/11] i2c: Drop use of CONFIG_I2C_HARD

2017-04-24 Thread Simon Glass
This option is pretty old. It predates CONFIG_SYS_I2C which is itself deprecated in favour of driver model. Disable it for all boards. Also drop I2C options which depend on this. Signed-off-by: Simon Glass --- README | 17 +---

[U-Boot] [PATCH 10/13] phy: marvell: comphy: print comphy status even when it's disconnected

2017-04-24 Thread igall
From: Stefan Roese since now the COMPHY can also be ignored, we must know the state of the COMPHY. we cannot assume anymore that a missing COMPHY is unconnected. Change-Id: Iab2bd537d5af607b218ed95e1221e827f82777ca Signed-off-by: Yehuda Yitschak

[U-Boot] [PATCH 05/13] fix: phy: marvell: comphy: cp110: fix the KR/SFI line 4 selector

2017-04-24 Thread igall
From: Stefan Roese This patch fixes the following: 1. KR/SFI on lane #4 mux selector is 0x2 and not 0x1 2. Comment typo Change-Id: I1e628576dc483697e454408463a34dac13ba277c Signed-off-by: Rabeeh Khoury Signed-off-by: Stefan Roese

[U-Boot] [PATCH 07/13] fix: phy: marvell: comphy: cp110: update comphy selector option

2017-04-24 Thread igall
From: Stefan Roese Align PHY selectors register with Armada-CP-110 functional SPEC update all relevant device trees with this change. Change-Id: I4384eb561ec6a7e02e7fa701626ad81fd6e10f1c Signed-off-by: Hanna Hawa Signed-off-by: Stefan Roese

[U-Boot] [PATCH 06/13] fix: phy: marvell: comphy: cp110: sata: update analog parameters according to latest ETP

2017-04-24 Thread igall
From: Igal Liberman Add SATA analog parameters initialization values according to latest ETP. Change-Id: I85165a43cd540bf08e39112e48800add623daaf4 Signed-off-by: Konstantin Porotchkin Signed-off-by: Stefan Roese Signed-off-by: Igal Liberman

Re: [U-Boot] [PATCH 00/11] i2c: Remove old I2C support

2017-04-24 Thread Michal Simek
On 23.4.2017 17:35, Simon Glass wrote: > We have about 6600 CONFIG options to convert to Kconfig at the time of > writing and our target is to complete work by the end of the year[1]. We > have no hope of doing this unless we adopt a somewhat more agressive > approach to dropping old boards and

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

2017-04-24 Thread Adam Shobash
Hi Stefan, In A385, the register to change the pulse width is 0xa0120 bits[7:6]. Default value is 0x1(pulse width=2us) , you can try and change it to 0x0 to see if it solves the issue. But, please note that we tested our platforms with the value 0x1 only and we cannot guarantee that after you

Re: [U-Boot] [PATCH 05/11] i2c: keymile: Drop use of CONFIG_I2C_HARD

2017-04-24 Thread Holger Brunck
On 23/04/17 17:35, Simon Glass wrote: > Drop use of this long-deprecated option. > > Signed-off-by: Simon Glass > --- > > board/keymile/km82xx/km82xx.c | 5 - > board/keymile/km_arm/km_arm.c | 4 > 2 files changed, 9 deletions(-) > > diff --git

[U-Boot] [PATCH] arm: dts: imx: add aliases for usbotg nodes

2017-04-24 Thread Alexey Ignatov
Aliases must be present for USB gadget with DM_USB. Without this, usb_setup_ehci_gadget() fails because it can't find required devices in UCLASS_USB. Signed-off-by: Alexey Ignatov --- arch/arm/dts/imx6qdl.dtsi | 1 + arch/arm/dts/imx6sll.dtsi | 2 ++ arch/arm/dts/imx6sx.dtsi

[U-Boot] [PATCH 02/13] phy: marvell: comphy: cp110: add support for end point configuration

2017-04-24 Thread igall
From: Stefan Roese The serdes was always configured in root complex mode. this patch add new entry in device tree (per serdes) which indicates whether the serdes is in end point mode. if so, it skips the root complex configuration. Change-Id:

[U-Boot] [PATCH 01/13] phy: marvell: comphy: Replace PHY_TYPE_KR with PHY_TYPE_SFI

2017-04-24 Thread igall
From: Stefan Roese Use correct naming as done in the latest Marvell U-Boot version as well. Change-Id: Ic65c74b709e0c5c262673d840fdc22351d6aeabf Signed-off-by: Stefan Roese Signed-off-by: Igal Liberman --- arch/arm/dts/armada-8040-db.dts

[U-Boot] [PATCH 00/13] phy: marvell: cp110: varius comphy updates

2017-04-24 Thread igall
From: Igal Liberman This patchset improves Marvell A70x0/80x0 comphy driver: - Improve comphy electrical parameters - New modes - Style - Bug fixes Igal Liberman (5): fix: phy: marvell: comphy: cp110: sata: update analog parameters

[U-Boot] [PATCH v6 14/14] MIPS: add BMIPS Comtrend VR-3032u board

2017-04-24 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v6: - Select CONFIG_BMIPS_BOOT_RAM and CONFIG_BAUDRATE in defconfig. - Simplify board name. v5: No changes. v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches.

[U-Boot] [PATCH v6 11/14] MIPS: add support for Broadcom MIPS BCM6328 SoC family

2017-04-24 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v6: Several improvements: - Rename reset_cntl syscon to pll_cntl. - Reorder include config defines. v5: No changes. v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support

[U-Boot] [PATCH v6 05/14] cmd: cpu: refactor to ensure devices are probed and improve code style

2017-04-24 Thread Álvaro Fernández Rojas
Use uclass_first_device and uclass_next_device in order to avoid exceptions for drivers that aren't probed when cpu ops are requested. Improve code style and fix indentations. Fix incorrect line break when cpu info is not available. Remove unneeded brackets. Signed-off-by: Álvaro Fernández Rojas

[U-Boot] [PATCH v6 04/14] serial: add serial driver for BCM6345

2017-04-24 Thread Álvaro Fernández Rojas
It is based on linux/drivers/tty/serial/bcm63xx_uart.c Signed-off-by: Álvaro Fernández Rojas --- v6: Introduce changes suggested by Daniel Schwierzeck: - Use clr/set bits macros. - Use read/write instead of __raw_read/__raw_write. - Fix function comments. - Remove

[U-Boot] [PATCH v6 09/14] MIPS: add support for Broadcom MIPS BCM6358 SoC family

2017-04-24 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v6: Several improvements: - Rename and shrink reset_cntl syscon to pll_cntl. - Reorder include config defines. v5: No changes. v4: No changes. v3: Add cfi-flash defines. v2: Introduce changes suggested by Daniel Schwierzeck:

[U-Boot] [PATCH v6 08/14] MIPS: add initial infrastructure for Broadcom MIPS SoCs

2017-04-24 Thread Álvaro Fernández Rojas
CFE checks CPU Thread in a different way (using register $22): mfc0t1, C0_BCM_CONFIG, 3 # $22 li t2, CP0_CMT_TPID # (1 << 31) and t1, t2 bnezt1, 2f # if we are running on thread 1, skip init nop Signed-off-by: Álvaro Fernández Rojas --- v6: Introduce changes

[U-Boot] [PATCH v6 12/14] MIPS: add BMIPS Comtrend AR-5387un board

2017-04-24 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v6: - Select CONFIG_BMIPS_BOOT_RAM and CONFIG_BAUDRATE in defconfig. - Simplify board name. v5: No changes. v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches.

[U-Boot] [PATCH v6 06/14] cpu: add CPU driver for Broadcom MIPS SoCs

2017-04-24 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v6: Introduce changes suggested by Simon Glass: - Use read/write instead of __raw_read/__raw_write. v5: Add specific desc functions. v4: No changes. v3: Several improvements: - Probe

[U-Boot] [PATCH v6 10/14] MIPS: add BMIPS Huawei HG556a board

2017-04-24 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v6: - Select CONFIG_BMIPS_BOOT_RAM and CONFIG_BAUDRATE in defconfig. - Simplify board name. v5: No changes. v4: No changes. v3: Add cfi-flash support. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS

[U-Boot] [PATCH v6 13/14] MIPS: add support for Broadcom MIPS BCM63268 SoC family

2017-04-24 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v6: Several improvements: - Rename and shrink reset_cntl syscon to pll_cntl. - Reorder include config defines. v5: No changes. v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split

[U-Boot] [PATCH v6 07/14] ram: add RAM driver for Broadcom MIPS SoCs

2017-04-24 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v6: Introduce changes suggested by Simon Glass: - Use read/write instead of __raw_read/__raw_write. v5: No changes. v4: No changes. v3: Rename of_match to ids. v2: Introduce changes

[U-Boot] [PATCH v6 03/14] MIPS: allow using generic sysreset drivers

2017-04-24 Thread Álvaro Fernández Rojas
Avoid duplicating do_reset definition if SYSRESET is enabled for MIPS Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v6: No changes. v5: No changes. v4: No changes. v3: No changes. v2: No changes. arch/mips/cpu/cpu.c | 2 ++ 1

[U-Boot] [PATCH v6 01/14] cmd: cpu: fix NULL cpu feature prints

2017-04-24 Thread Álvaro Fernández Rojas
Commit 740d5d3 added two new features but only one feature name, which results in NULL prints when device_id feature is selected. Before: HG556a # cpu detail -1: cpu@0 BCM6358A1 ID = 0, freq = 300 MHz: L1 cache, MMU, NULL Device ID 0x2a010

[U-Boot] [PATCH v6 00/14] Add support for Broadcom MIPS SoCs

2017-04-24 Thread Álvaro Fernández Rojas
This adds support for some of the xDSL Broadcom MIPS SoCs: - BCM6358 - BCM6328 - BCM63268 However, support for other SoCs could be added in the future: - Other BCM63xx - BCM33xx - BCM71xx v6: Introduce changes suggested by D. Schwierzeck & S. Glass. v5: Improve BMIPS CPU driver v4:

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

2017-04-24 Thread Jernej Škrabec
Hi Maxime, Dne ponedeljek, 24. april 2017 ob 09:19:40 CEST je Maxime Ripard napisal(a): > Hi Jernej, > > On Fri, Apr 21, 2017 at 07:24:12PM +0200, Jernej Škrabec wrote: > > Dne petek, 21. april 2017 ob 09:04:13 CEST je Maxime Ripard napisal(a): > > > Hi Jernej, > > > > > > On Mon, Mar 27, 2017

Re: [U-Boot] [PATCH v4 00/18] stm32f7: add sdram & gpio drivers

2017-04-24 Thread Vikas MANOCHA
Hi Tom, > -Original Message- > From: Vikas MANOCHA > Sent: Monday, April 10, 2017 3:03 PM > To: u-boot@lists.denx.de > Cc: Vikas MANOCHA > Subject: [PATCH v4 00/18] stm32f7: add sdram & gpio drivers > > This patchset : > - adds stm32 sdram driver based on DM

[U-Boot] [PATCH] power: twl4030: Add CONFIG_CMD_POWEROFF support

2017-04-24 Thread Adam Ford
With the addition of twl4030_power_off(), let's allow the 'poweroff' command to run this function when CONFIG_CMD_POWEROFF is enabled. Tested on a DM3730 with twl4030 PMIC. Signed-off-by: Adam Ford diff --git a/drivers/power/twl4030.c b/drivers/power/twl4030.c index

[U-Boot] [PATCH] sunxi: fix the default value of CONS_INDEX on non-A23/A33 SUN8I

2017-04-24 Thread Icenowy Zheng
Only A23/A33 in SUN8I want a default value of CONS_INDEX of 5, for other chips the default value is 1 like other Allwinner SoCs. Fix this default value. The original wrong value has lead to wrong console on H3 Orange Pi boards. Fixes: 7095f8641863 ("sunxi: Convert CONS_INDEX to Kconfig")

Re: [U-Boot] [PATCH v3 01/19] SPL: FIT: refactor FDT loading

2017-04-24 Thread Peter Robinson
On Fri, Mar 31, 2017 at 11:31 PM, Andre Przywara wrote: > Currently the SPL FIT loader uses the spl_fit_select_fdt() function to > find the offset to the right DTB within the FIT image. > For this it iterates over all subnodes of the /configuration node in > the FIT tree

[U-Boot] [PATCH 3/4] MIPS: tl-wdr4300: remove debug_uart_init call

2017-04-24 Thread Álvaro Fernández Rojas
In order to add a generic MIPS debug_uart_init call right before the call to board_early_init_f, we need to remove all calls to debug_uart_init from every MIPS boards. WDR4300 doesn't provide a board_debug_uart_init and configures pinmux in board_early_init_f instead. Since I have no idead of

[U-Boot] [PATCH 2/4] MIPS: QCA AP143: remove debug_uart_init call

2017-04-24 Thread Álvaro Fernández Rojas
In order to add a generic MIPS debug_uart_init call right before the call to board_early_init_f, we need to remove all calls to debug_uart_init from every MIPS boards. Signed-off-by: Álvaro Fernández Rojas --- v2: No changes. board/qca/ap143/ap143.c | 3 --- 1 file changed,

[U-Boot] [PATCH 4/4] MIPS: call debug_uart_init right before board_init_f

2017-04-24 Thread Álvaro Fernández Rojas
From: Daniel Schwierzeck All MIPS boards that support debug uart are calling debug_uart_init right at the beginning of board_early_init_f. Instead of doing that, let's provide a generic call to debug_uart_init right before the call to board_init_f if debug uart is

[U-Boot] [PATCH 1/4] MIPS: QCA AP121: remove debug_uart_init call

2017-04-24 Thread Álvaro Fernández Rojas
In order to add a generic MIPS debug_uart_init call right before the call to board_early_init_f, we need to remove all calls to debug_uart_init from every MIPS boards. Signed-off-by: Álvaro Fernández Rojas --- v2: No changes. board/qca/ap121/ap121.c | 3 --- 1 file changed,

[U-Boot] [PATCH 0/4] MIPS: call debug_uart_init right before board_init_f

2017-04-24 Thread Álvaro Fernández Rojas
All MIPS boards that support debug uart are calling debug_uart_init right at the beginning of board_early_init_f. Instead of doing that, let's provide a generic call to debug_uart_init right before the call to board_init_f if debug uart is enabled. v2: Introduce the changes suggested by Daniel

[U-Boot] questions about get_ram_size usage in U-Boot = DDR modification during code execution

2017-04-24 Thread Patrick DELAUNAY
Hi, Today, I found a issue with get_ram_size() usage in U-Boot, when U-Boot is executed in the tested memory. I have a platform with ARM Cortex and I implemented the dram_init() as it is preconized in ./doc/README.arm-relocation:26 dram_init(): bd pointer is now at this point not

Re: [U-Boot] [PATCH] armv8: ls2080ardb: Update default sysclk to 100MHz

2017-04-24 Thread York Sun
On 04/22/2017 02:42 AM, Priyanka Jain wrote: As per board documentation, default sysclk is 100MHz So, update the default value in ls0280ardb board file to return 100MHz This doesn't explain why you are changing the clock now. You only need this value returned if CPLD is not accessible. You

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

2017-04-24 Thread Andrew F. Davis
On 04/22/2017 01:50 AM, Lokesh Vutla wrote: > 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

Re: [U-Boot] regression: setting the rpi mac address stopped working

2017-04-24 Thread Gerd Hoffmann
Hi, > https://www.mail-archive.com/u-boot@lists.denx.de/msg241949.html fixes this > problem. Tested things today, only to figure it doesn't work :( Reverting commit "3f66149 Remove extra fdt_fixup_ethernet() call" brings things into working state. So the fix above actually works, and

Re: [U-Boot] [PATCH v2 2/2] rockchip: dts: add rk3399-firefly dts

2017-04-24 Thread Kever Yang
Hi Simon, On 04/24/2017 11:38 AM, Simon Glass wrote: On 19 April 2017 at 04:17, Kever Yang wrote: Firefly-rk3399 is a bord from T-Firefly, you can find detail about it here: http://en.t-firefly.com/en/firenow/Firefly_RK3399/ This patch add basic node for the board

Re: [U-Boot] [PATCH v5 08/14] MIPS: add initial infrastructure for Broadcom MIPS SoCs

2017-04-24 Thread Álvaro Fernández Rojas
Hi Daniel, I'm not using it as a second stage loader yet, but I plan to do that in the future (or at least on 63268 NAND devices).Right now I'm testing BMIPS support by booting u-boot.elf from RAM (loaded via

[U-Boot] [PATCH v5 1/7] scsi: dm: split scsi_scan()

2017-04-24 Thread Jean-Jacques Hiblot
The DM version of scsi_scan() is becoming a bit long, it can be split: scsi_scan() iterates over the IDs and LUNs and for each id/lun pair calls do_scsi_scan_one() to do the work of: - detecting an attached drive - creating the associated block device if a drive is found. Signed-off-by:

[U-Boot] [PATCH v5 5/7] dra7: dtsi: mark ocp2scp bus compatible with "simple-bus"

2017-04-24 Thread Jean-Jacques Hiblot
This is needed to probe devices under that bus such as the SATA PHY. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- changes since v4: - added the revievewed-by tag arch/arm/dts/omap5-u-boot.dtsi |

[U-Boot] [PATCH v5 7/7] defconfig: dra7xx_evm: enable CONFIG_BLK and disk driver model for SCSI

2017-04-24 Thread Jean-Jacques Hiblot
Enable disk driver model for dra7xx_evm as dwc_ahci supports driver model. As a consequence we must also enable CONFIG_BLK and CONFIG_DM_USB. Signed-off-by: Mugunthan V N Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini

[U-Boot] [PATCH v5 4/7] drivers: phy: add PIPE3 phy driver

2017-04-24 Thread Jean-Jacques Hiblot
This phy is found on omap platforms with sata capabilities. Except for the part related to the DM and the PHY framework, the code is basically a copy paste from arch/arm/mach-omap2/pipe3-phy.c Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini

[U-Boot] [PATCH v5 3/7] dm: test: Add tests for the generic PHY uclass

2017-04-24 Thread Jean-Jacques Hiblot
Those tests check: - the ability for a phy-user to get a phy based on its name or its index - the ability of a phy device (provider) to manage multiple ports - the ability to perform operations on the phy (init,deinit,on,off) - the behavior of the uclass when optional operations are not

[U-Boot] [PATCH v5 6/7] drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device

2017-04-24 Thread Jean-Jacques Hiblot
Implement a sata driver for Synopsys DWC sata device based on U-boot driver model. Signed-off-by: Mugunthan V N Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- no change since

[U-Boot] [PATCH v5 2/7] drivers: phy: add generic PHY framework

2017-04-24 Thread Jean-Jacques Hiblot
The PHY framework provides a set of APIs to control a PHY. This API is derived from the linux version of the generic PHY framework. Currently the API supports init(), deinit(), power_on, power_off() and reset(). The framework provides a way to get a reference to a phy from the device-tree.

[U-Boot] [PATCH v5 0/7] OMAP: Move SATA to use block driver model and introduce a new framework for PHY management

2017-04-24 Thread Jean-Jacques Hiblot
This series adds support for SATA using the driver model on omap platforms. It is based on the work of Mugunthan V N in Feb 2016 In the process it adds a new framework to manage PHY devices changes since v4: - added some revievewed-by tags - fixed some nits (ordering, blank

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

2017-04-24 Thread Stefan Roese
Hi Bin, On 21.04.2017 16:24, Bin Meng wrote: 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

Re: [U-Boot] [PATCH 1/8] dm: mmc: Don't re-init when accessing environment

2017-04-24 Thread Jean-Jacques Hiblot
Hi Simon, On 24/04/2017 04:02, Simon Glass wrote: With driver model MMC is probed automatically when needed. We should not re-init MMC each time. Signed-off-by: Simon Glass --- common/env_mmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH] dm: mmc: Don't call board_mmc_power_init() with driver model

2017-04-24 Thread Andy Shevchenko
On Sun, Apr 23, 2017 at 4:10 AM, Simon Glass wrote: > We should not call out to board code from drivers. With driver model, > mmc_power_init() already has code to use a named regulator, but the > legacy code path remains. Update the code to make this clear. > I don't like this

Re: [U-Boot] [PATCH 0/8] dm: mmc: Tidy up handling of block devices

2017-04-24 Thread Andy Shevchenko
On Mon, Apr 24, 2017 at 5:02 AM, Simon Glass wrote: > The current MMC block device support has a few deficiencies which show up > when both CONFIG_BLK and CONFIG_DM_MMC_OPS are defined: > > - Block device numbering does not always following MMC device numbering > - Environment

Re: [U-Boot] [PATCH 3/8] dm: blk: Add a function to find the next block device number

2017-04-24 Thread Andy Shevchenko
On Mon, Apr 24, 2017 at 5:02 AM, Simon Glass wrote: > At present this code is inline. Move it into a function to allow it to > be used elsewhere. > > Signed-off-by: Simon Glass > +static int blk_next_free_devnum(enum if_type if_type) > +{ > + int ret;

[U-Boot] [PATCH 3/5 v2] dm: core: Add DM_FLAG_OS_PREPARE flag

2017-04-24 Thread Stefan Roese
This new flag can be added to DM device drivers, which need to do some final configuration before U-Boot exits and the OS (e.g. Linux) is started. The remove functions of those drivers will get called at this stage to do these last-stage configuration steps. Signed-off-by: Stefan Roese

[U-Boot] [PATCH 4/5 v2] x86: bootm: Add dm_remove_devices_flags() call to bootm_announce_and_cleanup()

2017-04-24 Thread Stefan Roese
This patch adds a call to dm_remove_devices_flags() to bootm_announce_and_cleanup() so that drivers that have one of the removal flags set (e.g. DM_FLAG_ACTIVE_DMA_REMOVE) in their driver struct, may do some last-stage cleanup before the OS is started. Signed-off-by: Stefan Roese

[U-Boot] [PATCH 5/5 v2] spi: ich: Configure SPI BIOS parameters for Linux upon U-Boot exit

2017-04-24 Thread Stefan Roese
This patch adds a remove function to the Intel ICH SPI driver, that will be called upon U-Boot exit, directly before the OS (Linux) is started. This function takes care of configuring the BIOS registers in the SPI controller (similar to what a "standard" BIOS or coreboot does), so that the Linux

[U-Boot] [PATCH 1/5 v2] dm: device_remove: Don't return in device_chld_remove() upon error

2017-04-24 Thread Stefan Roese
On my x86 platform I've noticed, that calling dm_uninit() or the new function dm_remove_devices_flags() does not remove the desired device at all. Debugging showed, that the serial uclass returns -EPERM in serial_pre_remove() and this leads to a complete stop of the device removal pretty early, as

[U-Boot] [PATCH 2/5 v2] serial: serial-uclass: Use force parameter in stdio_deregister_dev()

2017-04-24 Thread Stefan Roese
On my x86 platform I've noticed, that calling dm_uninit() or the new function dm_remove_devices_flags() does not remove the desired device at all. Debugging showed, that the serial uclass returns -EPERM in serial_pre_remove(). This patch sets the force parameter when calling stdio_deregister_dev()

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

2017-04-24 Thread Maxime Ripard
Hi Jernej, On Fri, Apr 21, 2017 at 07:24:12PM +0200, Jernej Škrabec wrote: > 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

Re: [U-Boot] orangepi_pc2: Build error

2017-04-24 Thread Jagan Teki
On Sat, Apr 8, 2017 at 5:01 AM, André Przywara wrote: > On 07/04/17 06:10, Jagan Teki wrote: > > Hi Jagan, > >> Can you check this error on master? >> >> COPYspl/u-boot-spl.bin >> MKSUNXI spl/sunxi-spl.bin >> ERROR: File too large! >> make[1]: ***

  1   2   >