[U-Boot] [PATCH v5 2/3] cfi_flash: convert to driver model

2015-11-06 Thread Thomas Chou
Convert cfi flash to driver model. Signed-off-by: Thomas Chou --- v2 add dts binding. add more help to Kconfig. move struct platdata to top of file as Simon suggested. v3 change to MTD uclass. v4 fix fdt addr and size cells in cfi_flash_probe(). move probe uclass to cfi_flash_dm_init(

[U-Boot] [PATCH v5 3/3] nios2: use cfi flash driver model

2015-11-06 Thread Thomas Chou
Use cfi flash driver model. Signed-off-by: Thomas Chou --- configs/nios2-generic_defconfig | 2 ++ include/configs/nios2-generic.h | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/nios2-generic_defconfig b/configs/nios2-generic_defconfig index e42a15e..0a6de6f 1006

[U-Boot] [PATCH v5 1/3] dm: implement a MTD uclass

2015-11-06 Thread Thomas Chou
Implement a Memory Technology Device (MTD) uclass. It should include most flash drivers in the future. Though no uclass ops are defined yet, the MTD ops could be used. The NAND flash driver is based on MTD. The CFI flash and SPI flash support MTD, too. It should make sense to convert them to MTD u

Re: [U-Boot] [PATCH v2 5/8] x86: qemu: Convert to use driver model eth

2015-11-06 Thread Simon Glass
On 6 November 2015 at 02:04, Bin Meng wrote: > Move to driver model for ETH (e1000) on QEMU. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - Rebase on top of u-boot/master > - New patch to convert to use driver model eth > > board/emulation/qemu-x86/Makefile | 2 +- > board/emulati

Re: [U-Boot] [PATCH v4 1/3] dm: implement a MTD uclass

2015-11-06 Thread Simon Glass
Hi Thomas, On 6 November 2015 at 05:25, Thomas Chou wrote: > Hi Simon, > > On 2015年11月06日 20:06, Simon Glass wrote: >>> >>> diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h >>> index e3d3fc7..0ab6128 100644 >>> --- a/include/linux/mtd/mtd.h >>> +++ b/include/linux/mtd/mtd.h >>> @@ -

Re: [U-Boot] [RESEND PATCH v3 15/20] rockchip: add rk3036 sdram driver

2015-11-06 Thread Simon Glass
Hi Lin, On 6 November 2015 at 01:53, Lin Huang wrote: > add rk3036 sdram driver so we can set up sdram in SPL > > Signed-off-by: Lin Huang > --- > Changes in v1: None > Changes in v2: None > Changes in v3: fix some code style error > > arch/arm/include/asm/arch-rockchip/sdram_rk3036.h | 336 +++

Re: [U-Boot] [PATCH v2 2/2] sandbox: add a sandbox timer and basic test

2015-11-06 Thread Simon Glass
On 30 October 2015 at 00:35, Thomas Chou wrote: > Add a sandbox timer which get time from host os and a basic > test. > > Signed-off-by: Thomas Chou > Reviewed-by: Simon Glass > --- > v2 > split board_f.c to another patch as suggested by Simon. > drop the penultimate comma in of_match ids. >

Re: [U-Boot] [RESEND PATCH v3 20/20] rockchip: doc: show packet rk3036 uboot image

2015-11-06 Thread Simon Glass
Hi, On 6 November 2015 at 08:40, 蔡枫(Eddie) wrote: > > > Eddie > 2015年11月6日 下午8:08于 Simon Glass 写道: >> >> Hi Lin, >> >> On 6 November 2015 at 01:53, Lin Huang wrote: >> > show how to packet rk3036 uboot image and boot from SD >> > >> > Signed-off-by: Lin Huang >> > --- >> > doc/README.rockchip

Re: [U-Boot] [PATCH] Makefile: Include vendor common library in include search path

2015-11-06 Thread Simon Glass
Hi, On 6 November 2015 at 10:23, Nishanth Menon wrote: > On 11:10-20151106, Nishanth Menon wrote: >> On 11/05/2015 10:50 PM, Masahiro Yamada wrote: >> > 2015-11-06 12:30 GMT+09:00 Nishanth Menon : >> >> On Thu, Nov 5, 2015 at 6:15 PM, Simon Glass wrote: >>

Re: [U-Boot] [PATCH v2 1/2] common/board_f.c: move mark_bootstage after arch_cpu_init_dm

2015-11-06 Thread Simon Glass
On 5 November 2015 at 20:08, Thomas Chou wrote: > Hi Simon, > > > On 2015年11月06日 11:15, Simon Glass wrote: >> >> On 30 October 2015 at 01:35, Thomas Chou wrote: >>> >>> As mark_bootstage() uses timer, it should go after driver model >>> is initialized. >>> >>> Signed-off-by: Thomas Chou >>> Revi

Re: [U-Boot] [PATCH 08/10] x86: Convert to use driver model timer

2015-11-06 Thread Simon Glass
On 6 November 2015 at 06:28, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 6, 2015 at 8:08 PM, Simon Glass wrote: >> Hi Bin, >> >> On 5 November 2015 at 06:02, Bin Meng wrote: >>> Convert all x86 boards to use driver model tsc timer. >>> >>> Signed-off-by: Bin Meng >>> --- >>> >>> arch/x86/cpu/b

Re: [U-Boot] [PATCH] sandbox: cros_ec: fix uninitialized use of len

2015-11-06 Thread Simon Glass
On 6 November 2015 at 05:15, Daniel Schwierzeck wrote: > Building with gcc-5.2 raises this warning: > > drivers/misc/cros_ec_sandbox.c: In function cros_ec_sandbox_packet: > drivers/misc/cros_ec_sandbox.c:483:5: warning: len may be used uninitialized > in this function [-Wmaybe-uninitialized] >

Re: [U-Boot] [PATCH v4 2/3] cfi_flash: convert to driver model

2015-11-06 Thread Simon Glass
Hi Thomas, On 5 November 2015 at 20:34, Thomas Chou wrote: > Hi Simon, > > On 2015年11月06日 11:15, Simon Glass wrote: >>> >>> +config CFI_FLASH >>> + bool "Enable Driver Model for CFI Flash driver" >>> + depends on MTD >>> + help >>> + The Common Flash Interface specificat

Re: [U-Boot] [PATCH v2 8/8] x86: Remove CONFIG_SYS_EARLY_PCI_INIT

2015-11-06 Thread Simon Glass
On 6 November 2015 at 02:04, Bin Meng wrote: > CONFIG_SYS_EARLY_PCI_INIT is not needed any more since with driver > model, PCI enumeration is automatically triggered. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: None > > include/configs/bayleybay.h | 1 - > include/configs/crownba

Re: [U-Boot] [PATCH v2 4/8] x86: qemu: Convert to use driver model usb

2015-11-06 Thread Simon Glass
On 6 November 2015 at 02:04, Bin Meng wrote: > Move to driver model for USB on QEMU. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: None > > configs/qemu-x86_defconfig | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Simon Glass ___ U-Boot

Re: [U-Boot] [PATCH v2 7/8] x86: Remove legacy pci codes

2015-11-06 Thread Simon Glass
On 6 November 2015 at 02:04, Bin Meng wrote: > Now that we have converted all x86 boards to use driver model pci, > remove these legacy pci codes. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/cpu/pci.c| 45 > --- > ar

Re: [U-Boot] [PATCH v2 6/8] x86: crownbay: Remove unused PCI region address macros

2015-11-06 Thread Simon Glass
On 6 November 2015 at 02:04, Bin Meng wrote: > These are leftover when converted to use driver model pci. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > include/configs/crownbay.h | 12 > 1 file changed, 12 deletions(-) Acked-by: Simon Glass

Re: [U-Boot] [PATCH v2 3/8] x86: qemu: Convert to use driver model pci

2015-11-06 Thread Simon Glass
On 6 November 2015 at 02:04, Bin Meng wrote: > Move to driver model for pci on QEMU. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/cpu/qemu/Makefile | 1 - > arch/x86/cpu/qemu/pci.c| 49 > -- > configs/qemu-x86_defconfig

Re: [U-Boot] [PATCH v2 2/8] x86: qemu: Move chipset-specific codes from pci.c to qemu.c

2015-11-06 Thread Simon Glass
On 6 November 2015 at 02:04, Bin Meng wrote: > Move chipset-specific codes such as PAM init, PCIe ECAM and MP table > from pci.c to qemu.c, to prepare for DM PCI conversion. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/cpu/qemu/pci.c| 72

Re: [U-Boot] Ethernet PHY Power Down

2015-11-06 Thread Michael Welling
On Fri, Nov 06, 2015 at 08:43:37PM -0200, Fabio Estevam wrote: > On Fri, Nov 6, 2015 at 8:04 PM, Michael Welling wrote: > > So I added the following lines to my board_phy_config function and the > > problem > > seems to be fixed: It appears that I spoke to soon. Occassionally the autonegiotation

Re: [U-Boot] Ethernet PHY Power Down

2015-11-06 Thread Fabio Estevam
On Fri, Nov 6, 2015 at 8:04 PM, Michael Welling wrote: > So I added the following lines to my board_phy_config function and the problem > seems to be fixed: > . > . > ctl = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); > if (ctl & BMCR_PDOWN) { > ctl &= ~BMCR_PDOWN;

Re: [U-Boot] [PATCH 04/10] dm: timer: Support 64-bit counter

2015-11-06 Thread Thomas Chou
Hi Bin, On 2015年11月06日 22:35, Bin Meng wrote: Hi Thomas, On Fri, Nov 6, 2015 at 3:14 PM, Thomas Chou wrote: Hi Bin, On 2015年11月05日 22:02, Bin Meng wrote: There are timers with a 64-bit counter value but current timer uclass driver assumes a 32-bit one. Introduce a device tree property "cou

[U-Boot] Secure memory

2015-11-06 Thread York Sun
Albert, I am trying to separate secure memory and non-secure memory for ARMv8. Before I go too far, I'd like to check with you to see if there is already some code implemented. Basically what I am trying to do is to mark most DDR memory non-secure because we have some non-secure masters such as S

Re: [U-Boot] Ethernet PHY Power Down

2015-11-06 Thread Michael Welling
On Fri, Nov 06, 2015 at 07:22:00PM -0200, Fabio Estevam wrote: > On Fri, Nov 6, 2015 at 6:22 PM, Michael Welling wrote: > > Lets try this again with list membership. > > > > I have run into an issue with a KSZ9031 Gigabit Ethernet PHY on an IMX6 > > module. > > > > After booting into Linux and re

Re: [U-Boot] Ethernet PHY Power Down

2015-11-06 Thread Michael Welling
On Fri, Nov 06, 2015 at 07:22:00PM -0200, Fabio Estevam wrote: > On Fri, Nov 6, 2015 at 6:22 PM, Michael Welling wrote: > > Lets try this again with list membership. > > > > I have run into an issue with a KSZ9031 Gigabit Ethernet PHY on an IMX6 > > module. > > > > After booting into Linux and re

Re: [U-Boot] Ethernet PHY Power Down

2015-11-06 Thread Fabio Estevam
On Fri, Nov 6, 2015 at 6:22 PM, Michael Welling wrote: > Lets try this again with list membership. > > I have run into an issue with a KSZ9031 Gigabit Ethernet PHY on an IMX6 > module. > > After booting into Linux and rebooting the ethernet fails consistently. > > With a bit of investigation I fo

Re: [U-Boot] [RESEND PATCH v3 20/20] rockchip: doc: show packet rk3036 uboot image

2015-11-06 Thread 蔡枫(Eddie)
Eddie 2015年11月6日 下午8:08于 Simon Glass 写道: > > Hi Lin, > > On 6 November 2015 at 01:53, Lin Huang wrote: > > show how to packet rk3036 uboot image and boot from SD > > > > Signed-off-by: Lin Huang > > --- > >  doc/README.rockchip | 7 +++ > >  1 file changed, 7 insertions(+) > > > > d

[U-Boot] Ethernet PHY Power Down

2015-11-06 Thread Michael Welling
Lets try this again with list membership. I have run into an issue with a KSZ9031 Gigabit Ethernet PHY on an IMX6 module. After booting into Linux and rebooting the ethernet fails consistently. With a bit of investigation I found that the power-down bit in the PHY control register is being set o

Re: [U-Boot] [PATCH v5] Tegra: T210: Add QSPI driver

2015-11-06 Thread Tom Warren
Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: Friday, November 06, 2015 11:34 AM > To: Tom Warren > Cc: u-boot@lists.denx.de; Stephen Warren ; > tomcwarren3...@gmail.com > Subject: Re: [U-Boot] [PATCH v5] Tegra: T210: Add QSPI driver > > On 6 November

Re: [U-Boot] [Patch V8 12/17] armv8/ls1043ardb: Add LS1043ARDB board support

2015-11-06 Thread York Sun
On 10/26/2015 04:47 AM, Gong Qianyu wrote: > From: Mingkai Hu > > LS1043ARDB Specification: > - > Memory subsystem: > * 2GByte DDR4 SDRAM (32bit bus) > * 128 Mbyte NOR flash single-chip memory > * 512 Mbyte NAND flash > * 16 Mbyte high-speed SPI flash > * SD connect

Re: [U-Boot] [PATCH v5] Tegra: T210: Add QSPI driver

2015-11-06 Thread Jagan Teki
On 6 November 2015 at 23:08, Tom Warren wrote: > Jagan, > >> -Original Message- >> From: Jagan Teki [mailto:jt...@openedev.com] >> Sent: Friday, November 06, 2015 9:40 AM >> To: Tom Warren >> Cc: u-boot@lists.denx.de; Stephen Warren ; >> tomcwarren3...@gmail.com >> Subject: Re: [U-Boot] [

Re: [U-Boot] [PATCH] Makefile: Include vendor common library in include search path

2015-11-06 Thread Nishanth Menon
On 11:10-20151106, Nishanth Menon wrote: > On 11/05/2015 10:50 PM, Masahiro Yamada wrote: > > 2015-11-06 12:30 GMT+09:00 Nishanth Menon : > >> On Thu, Nov 5, 2015 at 6:15 PM, Simon Glass wrote: > >>> Hi, > >>> > >>> On 5 November 2015 at 00:32

[U-Boot] [PATCH] drivers/ddr/fsl: Fix typo in BIST test for DDR4

2015-11-06 Thread York Sun
BIST test code has a typo, resulting the binding registers not maintained as expected. This typo results BIST runs twice on the covered memory. Signed-off-by: York Sun Reported-by: Shengzhou Liu --- drivers/ddr/fsl/fsl_ddr_gen4.c | 24 1 file changed, 12 insertions(+

Re: [U-Boot] [PATCH v5] Tegra: T210: Add QSPI driver

2015-11-06 Thread Tom Warren
Jagan, > -Original Message- > From: Jagan Teki [mailto:jt...@openedev.com] > Sent: Friday, November 06, 2015 9:40 AM > To: Tom Warren > Cc: u-boot@lists.denx.de; Stephen Warren ; > tomcwarren3...@gmail.com > Subject: Re: [U-Boot] [PATCH v5] Tegra: T210: Add QSPI driver > > On 6 November

Re: [U-Boot] [PATCH v3] common: Fix load and entry addresses in FIT image

2015-11-06 Thread York Sun
On 11/06/2015 04:06 AM, Simon Glass wrote: > Hi York, > > On 29 October 2015 at 11:21, York Sun wrote: >> >> >> On 10/29/2015 10:16 AM, Simon Glass wrote: >>> Hi York, >>> >>> On 19 October 2015 at 11:30, York Sun wrote: On 10/18/2015 04:15 PM, Simon Glass wrote: > Hi, >

Re: [U-Boot] [PATCH] Makefile: Include vendor common library in include search path

2015-11-06 Thread Nishanth Menon
On 11/05/2015 10:50 PM, Masahiro Yamada wrote: > 2015-11-06 12:30 GMT+09:00 Nishanth Menon : >> On Thu, Nov 5, 2015 at 6:15 PM, Simon Glass wrote: >>> Hi, >>> >>> On 5 November 2015 at 00:32, Nishanth Menon wrote: On 11/05/2015 01:28 AM, Nishanth Menon wrote: > When the vendor common lib

Re: [U-Boot] [UBOOT PATCH v2 1/2] zynqmp: nand: Add Nand driver support for zynqmp

2015-11-06 Thread Scott Wood
On Fri, 2015-11-06 at 16:52 +0530, Siva Durga Prasad Paladugu wrote: > Add nand driver support for zynqmp. The Nand > controller used in ZynqMP is Arasan Nand Flash > controller. > > Signed-off-by: Siva Durga Prasad Paladugu > --- > Changes from v1: > - Newly added in series > --- > arch/arm/cpu

Re: [U-Boot] [PATCH v5] Tegra: T210: Add QSPI driver

2015-11-06 Thread Jagan Teki
On 6 November 2015 at 22:01, Tom Warren wrote: > Jagan, > > Ping! > >> -Original Message- >> From: Tom Warren >> Sent: Thursday, October 29, 2015 12:33 PM >> To: 'Jagan Teki' >> Cc: u-boot@lists.denx.de; Stephen Warren ; >> tomcwarren3...@gmail.com; Yen Lin >> Subject: RE: [U-Boot] [PATC

Re: [U-Boot] [PATCH 1/4] armv8: enable compilation with CONFIG_SYS_NONCACHED_MEMORY

2015-11-06 Thread Tom Warren
Albert, Ping! > -Original Message- > From: Tom Warren > Sent: Tuesday, November 03, 2015 12:19 PM > To: 'Albert ARIBAUD' ; 'Stephen Warren' > ; Tom Rini (tr...@konsulko.com) > > Cc: 'u-boot@lists.denx.de' ; 'Simon Glass' > ; Stephen Warren ; Thierry Reding > ; 'York Sun' ; 'Michal Simek'

Re: [U-Boot] [PATCH v5] Tegra: T210: Add QSPI driver

2015-11-06 Thread Tom Warren
Jagan, Ping! > -Original Message- > From: Tom Warren > Sent: Thursday, October 29, 2015 12:33 PM > To: 'Jagan Teki' > Cc: u-boot@lists.denx.de; Stephen Warren ; > tomcwarren3...@gmail.com; Yen Lin > Subject: RE: [U-Boot] [PATCH v5] Tegra: T210: Add QSPI driver > > Jagan, > > > -Or

Re: [U-Boot] [RESEND PATCH v3 15/20] rockchip: add rk3036 sdram driver

2015-11-06 Thread Heiko Stuebner
Hi Simon, Am Freitag, 6. November 2015, 04:08:51 schrieb Simon Glass: > Hi Lin, > > On 6 November 2015 at 01:53, Lin Huang wrote: > > add rk3036 sdram driver so we can set up sdram in SPL > > > > Signed-off-by: Lin Huang > > --- > > Changes in v1: None > > Changes in v2: None > > Changes in v3:

Re: [U-Boot] [PATCH] ARM: uniphier: drop UniPhier specific SMP code

2015-11-06 Thread Masahiro Yamada
2015-11-06 22:46 GMT+09:00 Tom Rini : > On Fri, Nov 06, 2015 at 10:16:30PM +0900, Masahiro Yamada wrote: > >> The latest Linux can directly handle SMP operations for UniPhier SoCs >> without any help of U-boot. Drop the relevant code from U-boot. >> >> See commit b1e4006aeda8c8784029de17d47987c21e

Re: [U-Boot] [PATCH] dm: core: Kconfig: set OF_TRANSLATE default value to n

2015-11-06 Thread Stephen Warren
On 11/06/2015 05:19 AM, Stefan Roese wrote: +Stephan Warren & Thomas Chou On 06.11.2015 13:08, Simon Glass wrote: +Stefan Hi Mugunthan, On 4 November 2015 at 07:25, Mugunthan V N wrote: Based on the OF_TRANSLATE Kconfig description, this is required only on platforms with complex "ranges" i

Re: [U-Boot] [PATCH v3] colibri_vf: Add board_usb_phy_mode function

2015-11-06 Thread Marek Vasut
On Friday, November 06, 2015 at 08:00:01 AM, maitysancha...@gmail.com wrote: > On 15-10-30 14:20:29, Marek Vasut wrote: > > On Friday, October 30, 2015 at 01:26:59 PM, Sanchayan Maity wrote: > > > Add board_usb_phy_mode function for detecting whether a port is > > > being used as host or client usi

Re: [U-Boot] [PATCH 04/10] dm: timer: Support 64-bit counter

2015-11-06 Thread Bin Meng
Hi Thomas, On Fri, Nov 6, 2015 at 3:14 PM, Thomas Chou wrote: > Hi Bin, > > On 2015年11月05日 22:02, Bin Meng wrote: >> >> There are timers with a 64-bit counter value but current timer >> uclass driver assumes a 32-bit one. Introduce a device tree >> property "counter-64bit", and modify timer_get_c

Re: [U-Boot] [PATCH v2 2/2] mtd: add altera quadspi driver

2015-11-06 Thread Marek Vasut
On Friday, November 06, 2015 at 09:11:20 AM, Jagan Teki wrote: [...] > >> all these are spi-nor controller which doesn't do any generic spi > >> things but should be in spi-nor subsystem. Even Marek send altera_qspi > >> as spi-nor controller [1] > > > > This is because that thing communicates l

Re: [U-Boot] [PATCH v2] mmc: atmel: Properly fix clock configuration

2015-11-06 Thread Marek Vasut
On Friday, November 06, 2015 at 10:28:31 AM, Gregory CLEMENT wrote: > Hi Marek, > > On jeu., nov. 05 2015, Marek Vasut wrote: > > On Thursday, November 05, 2015 at 08:58:30 PM, Gregory CLEMENT wrote: > >> Timing issue occurs on eMMC not only when modifying the frequency but > >> also for all the

Re: [U-Boot] [PATCH 08/10] x86: Convert to use driver model timer

2015-11-06 Thread Bin Meng
Hi Simon, On Fri, Nov 6, 2015 at 8:08 PM, Simon Glass wrote: > Hi Bin, > > On 5 November 2015 at 06:02, Bin Meng wrote: >> Convert all x86 boards to use driver model tsc timer. >> >> Signed-off-by: Bin Meng >> --- >> >> arch/x86/cpu/baytrail/valleyview.c | 3 --- >> arch/x86/cpu/coreboot/tim

Re: [U-Boot] [PATCH] ARM: uniphier: drop UniPhier specific SMP code

2015-11-06 Thread Tom Rini
On Fri, Nov 06, 2015 at 10:16:30PM +0900, Masahiro Yamada wrote: > The latest Linux can directly handle SMP operations for UniPhier SoCs > without any help of U-boot. Drop the relevant code from U-boot. > > See commit b1e4006aeda8c8784029de17d47987c21ea75f6d ("ARM: uniphier: > rework SMP operati

Re: [U-Boot] [PATCH v4 1/3] dm: implement a MTD uclass

2015-11-06 Thread Thomas Chou
Hi Simon, On 2015年11月06日 20:06, Simon Glass wrote: diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index e3d3fc7..0ab6128 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -18,6 +18,7 @@ #include #else +#include I'm not keen on adding this header here.

Re: [U-Boot] [PATCH v2 2/2] mtd: add altera quadspi driver

2015-11-06 Thread Thomas Chou
Hi Jagan, On 2015年11月06日 19:48, Jagan Teki wrote: My intention is not to hold this, but once spi-nor is ready will you able to move it from here? Sure, I will look at the new spi-nor interface then. And I will think again if it is good to move. Thanks a lot for your help. Best regards, Thom

[U-Boot] [PATCH] ARM: uniphier: drop UniPhier specific SMP code

2015-11-06 Thread Masahiro Yamada
The latest Linux can directly handle SMP operations for UniPhier SoCs without any help of U-boot. Drop the relevant code from U-boot. See commit b1e4006aeda8c8784029de17d47987c21ea75f6d ("ARM: uniphier: rework SMP operations to use trampoline code") in Linux Kernel. Signed-off-by: Masahiro Yamad

[U-Boot] [PATCH] sandbox: cros_ec: fix uninitialized use of len

2015-11-06 Thread Daniel Schwierzeck
Building with gcc-5.2 raises this warning: drivers/misc/cros_ec_sandbox.c: In function cros_ec_sandbox_packet: drivers/misc/cros_ec_sandbox.c:483:5: warning: len may be used uninitialized in this function [-Wmaybe-uninitialized] if (len < 0) ^ If the function process_cmd() is called with

[U-Boot] [GIT PULL] u-boot-mips/master

2015-11-06 Thread Daniel Schwierzeck
Hi Tom, please pull the MIPS bootm fixes, thanks. The following changes since commit ed02c532be690b3d0c3e15c81531785a788fd949: Merge branch 'master' of git://git.denx.de/u-boot-video (2015-11-05 07:47:21 -0500) are available in the git repository at: git://git.denx.de/u-boot-mips.git mas

[U-Boot] [PATCH] Replace "extern inline" with "static inline"

2015-11-06 Thread Mans Rullgard
A number of headers define functions as "extern inline" which is causing problems with gcc5. The reason is that starting with version 5.1, gcc defaults to the standard C99 semantics for the inline keyword. Under the traditional GNU inline semantics, an "extern inline" function would never create

Re: [U-Boot] [PATCH 2/2] microblaze: Fix C99/gnu99 compatiblity for inline functions

2015-11-06 Thread Måns Rullgård
Nathan Rossi writes: > 'extern inline' is not portable across various C standards. To ensure > compatiblity with various standards/compilers change the functions to > static inline. This is a portable construct and serves as a comparable > definition to 'extern inline' from the gnu90 standard. >

Re: [U-Boot] [PATCH v7 21/21] sf: Add SPI NOR protection mechanism

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:42PM -0200, Fabio Estevam wrote: > Many SPI flashes have protection bits (BP2, BP1 and BP0) in the > status register that can protect selected regions of the SPI NOR. > > Take these bits into account when performing erase operations, > making sure that the protected

Re: [U-Boot] [PATCH v7 20/21] sf: Add SPI protection mechanism from the kernel

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:41PM -0200, Fabio Estevam wrote: > Add the SPI NOR protection mechanism from the kernel. > > This code is based on the work from > Brian Norris > Here is the commit details: > "mtd: spi-nor: refactor block protection functions" > (sha1: 62593cf40b23b523b9fc9334ca61b

Re: [U-Boot] [PATCH v7 18/21] compat: Remove is_power_of_2() definition

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:39PM -0200, Fabio Estevam wrote: > Use the is_power_of_2() definition from log2.h to align with the > kernel implementation. > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schocher > Reviewed-by: Jagan Teki With the minor fixup tha

Re: [U-Boot] [PATCH v7 19/21] powerpc: Remove __ilog2_u64 and ffs4 from bitops

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:40PM -0200, Fabio Estevam wrote: > Remove __ilog2_u64 and ffs4 from powerpc bitops to align with the > kernel implementation. > > Use the generic __ffs64 instead of a custom powerpc implementation. > > Cc: York Sun > Signed-off-by: Fabio Estevam > Reviewed-by: Tom

Re: [U-Boot] [PATCH v7 15/21] arc: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:36PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v7 17/21] bitops: Add fls_long and __ffs64

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:38PM -0200, Fabio Estevam wrote: > Add fls_long and __ffs64 support to align with the kernel bitops > implementation. > > Signed-off-by: Fabio Estevam Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v7 16/21] avr32: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:37PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v7 13/21] nios2: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:34PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Acked-by: Thomas Chou > Reviewed-by: Jagan Teki Applied to u-boot/master, thanks! -- Tom signa

Re: [U-Boot] [PATCH v7 14/21] mips: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:35PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Daniel Schwierzeck Applied to u-boot/master, thanks! -- Tom signature.asc Descript

Re: [U-Boot] [PATCH v7 11/21] openrisc: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:32PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Jagan Teki Applied to u-boot/master, thanks! -- Tom signature.asc Description: Dig

Re: [U-Boot] [PATCH v7 12/21] nds32: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:33PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Jagan Teki Applied to u-boot/master, thanks! -- Tom signature.asc Description: Dig

Re: [U-Boot] [PATCH v7 09/21] sandbox: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:30PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schocher > Reviewed-by: Jagan Teki Applied to u-boot/m

Re: [U-Boot] [PATCH v7 10/21] sparc: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:31PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Jagan Teki Applied to u-boot/master, thanks! -- Tom signature.asc Description: Dig

Re: [U-Boot] [PATCH v7 08/21] microblaze: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:29PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v7 07/21] sh: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:28PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom s

Re: [U-Boot] [PATCH v7 06/21] blackfin: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:27PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schocher > Reviewed-by: Jagan Teki Applied to u-boot/m

Re: [U-Boot] [PATCH v7 04/21] x86: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:25PM -0200, Fabio Estevam wrote: > Use the generic bitops and also add custom __ffs() implementation > as per the kernel. > > Also align the ffs() implementation with the kernel. > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schoche

Re: [U-Boot] [PATCH v7 05/21] m68k: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:26PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schocher > Reviewed-by: Jagan Teki Applied to u-boot/m

Re: [U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:22PM -0200, Fabio Estevam wrote: > Use the log2 header files from the kernel. > > Imported from kernel 4.2.3. > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schocher > Reviewed-by: Jagan Teki Applied to u-boot/master, thanks! --

Re: [U-Boot] [PATCH v7 03/21] ARM: Use the generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:24PM -0200, Fabio Estevam wrote: > The generic bitops headers are required when calling logarithmic > functions, such as ilog2(). > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schocher > Reviewed-by: Jagan Teki Applied to u-boot/m

Re: [U-Boot] [PATCH v7 02/21] include: Add generic bitops headers

2015-11-06 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:23PM -0200, Fabio Estevam wrote: > Use the generic bitops header files from the kernel. > > Imported from kernel 4.2.3. > > Signed-off-by: Fabio Estevam Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [PATCH] dm: core: Kconfig: set OF_TRANSLATE default value to n

2015-11-06 Thread Stefan Roese
+Stephan Warren & Thomas Chou On 06.11.2015 13:08, Simon Glass wrote: +Stefan Hi Mugunthan, On 4 November 2015 at 07:25, Mugunthan V N wrote: Based on the OF_TRANSLATE Kconfig description, this is required only on platforms with complex "ranges" in the DT nodes. For simpler platforms using S

Re: [U-Boot] Build error for PowerPPC using GCC 5.2 toolchain

2015-11-06 Thread Måns Rullgård
Otavio Salvador writes: > Hello, > > At Yocto Project I sent the upgrade for the 2015.10 release, of > U-Boot, however it is failing badly: > > http://errors.yoctoproject.org/Errors/Details/21468/ > > Does someone has any idea how to fix it? The problem is the use of "extern inline" function def

[U-Boot] [UBOOT PATCH v2 2/2] arasan: nfc: Add initial nand driver support for arasan

2015-11-06 Thread Siva Durga Prasad Paladugu
Added initial nand driver support for arasan nand flash controller.This supports nand erase,nand read, nand write This uses the hardware ECC for read and write operations ZynqMP uses this driver. Signed-off-by: Siva Durga Prasad Paladugu --- Changes from v1: - Made some variables global to files

[U-Boot] [UBOOT PATCH v2 1/2] zynqmp: nand: Add Nand driver support for zynqmp

2015-11-06 Thread Siva Durga Prasad Paladugu
Add nand driver support for zynqmp. The Nand controller used in ZynqMP is Arasan Nand Flash controller. Signed-off-by: Siva Durga Prasad Paladugu --- Changes from v1: - Newly added in series --- arch/arm/cpu/armv8/zynqmp/Kconfig | 3 +++ arch/arm/include/asm/arch-zynqmp/hardware.h | 2

Re: [U-Boot] [PATCH v2 16/17] rockchip: rk3036: Add core Soc start-up code

2015-11-06 Thread Eddie Cai
Hi Sjoerd 2015-11-06 17:11 GMT+08:00 Sjoerd Simons : > On Wed, 2015-11-04 at 20:53 +0800, Lin Huang wrote: > > rk3036 only 4K size SRAM for SPL, so only support > > timer, uart, sdram driver in SPL stage, when finish > > initial sdram, back to bootrom. > > > > Signed-off-by: Lin Huang > > > > >

[U-Boot] [PATCH 2/2] microblaze: Fix C99/gnu99 compatiblity for inline functions

2015-11-06 Thread Nathan Rossi
'extern inline' is not portable across various C standards. To ensure compatiblity with various standards/compilers change the functions to static inline. This is a portable construct and serves as a comparable definition to 'extern inline' from the gnu90 standard. Additionally remove the function

[U-Boot] [PATCH 1/2] microblaze: Fix style issues in header files

2015-11-06 Thread Nathan Rossi
Fix various style issues in MicroBlaze header files. Specifically fixing style voilations including '__inline__', 'foo * bar' and 'void foo ('. Signed-off-by: Nathan Rossi Cc: Michal Simek Cc: Tom Rini --- arch/microblaze/include/asm/bitops.h | 66 ++-- arch/mic

[U-Boot] Patches for boot using FAT file system for beaglebone black

2015-11-06 Thread Da Shi Cao
Hi all,I have been using u-boot 2014.10 for a while on my beaglebone black with two features I added.1. boot from a FAT file system on mmc partition.2. output the MMC interface (0 or 1) just booted from. Today I downloaded the version 2015.10 and modified it with the same features, and it works.

[U-Boot] Ethernet PHY Power Down

2015-11-06 Thread Michael Welling
I have run into an issue with a KSZ9031 Gigabit Ethernet PHY on an IMX6 module. After booting into Linux and rebooting the ethernet fails consistently. With a bit of investigation I found that the power-down bit in the PHY control register is being set on reboot. => dhcp BOOTP broadcast 1 BOOTP

[U-Boot] [PATCH 0/2] Add support for GCC 5.x for MicroBlaze

2015-11-06 Thread Nathan Rossi
This patch series fixes some issues with some MicroBlaze functions and declarations that are not compatible with newer C standards (e.g. C99) this includes the default C standard set by the GCC 5.x compiler (which is gnu11 by default). This series is split into two patches, the first patch being s

[U-Boot] SPL: how to compile with SPL?

2015-11-06 Thread ????
My u-boot version is 2015.10. I failed when I try to find a way to compile u-boot-spl. I've add the following configurations in configs/smdk2410_defconfig: CONFIG_SPL=y CONFIG_SPL_BUILD=y CONFIG_FRAMEWORK=y but the compiler doesn't recognize it. When I make the project, it still only c

Re: [U-Boot] [PATCH v2 3/3] dm: sf: Add support for all targets which requires MANUAL_RELOC

2015-11-06 Thread Michal Simek
On 11/06/2015 04:15 AM, Simon Glass wrote: > On 30 October 2015 at 08:56, Michal Simek wrote: >> It is follow up patch based on >> "dm: Add support for all targets which requires MANUAL_RELOC" >> (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) >> to update function pointers for DM. >> >> Using po

Re: [U-Boot] [RESEND PATCH v3 20/20] rockchip: doc: show packet rk3036 uboot image

2015-11-06 Thread Simon Glass
Hi Lin, On 6 November 2015 at 01:53, Lin Huang wrote: > show how to packet rk3036 uboot image and boot from SD > > Signed-off-by: Lin Huang > --- > doc/README.rockchip | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/doc/README.rockchip b/doc/README.rockchip > index 87ce9d2..893f

Re: [U-Boot] [RESEND PATCH v3 15/20] rockchip: add rk3036 sdram driver

2015-11-06 Thread Simon Glass
Hi Lin, On 6 November 2015 at 01:53, Lin Huang wrote: > add rk3036 sdram driver so we can set up sdram in SPL > > Signed-off-by: Lin Huang > --- > Changes in v1: None > Changes in v2: None > Changes in v3: fix some code style error > > arch/arm/include/asm/arch-rockchip/sdram_rk3036.h | 336 +++

Re: [U-Boot] [RESEND PATCH v3 01/20] rockchip: add timer driver

2015-11-06 Thread Simon Glass
On 6 November 2015 at 01:53, Lin Huang wrote: > some rockchip soc will not include lib/timer.c in SPL stage, > so implement timer driver for some soc can use us delay function in SPL. > > Signed-off-by: Lin Huang > --- > Changes in v1: None > Changes in v2: > - add udelay function > Changes in v3

Re: [U-Boot] [PATCH 09/10] x86: tsc: Remove legacy timer codes

2015-11-06 Thread Simon Glass
On 5 November 2015 at 06:02, Bin Meng wrote: > Now that we have converted all x86 boards to use driver model timer, > remove these legacy timer codes in the tsc driver. > > Note this also removes the TSC_CALIBRATION_BYPASS Kconfig option, > as it is not needed with driver model. > > Signed-off-by:

Re: [U-Boot] [PATCH 10/10] x86: tsc: Move tsc_timer.c to drivers/timer

2015-11-06 Thread Simon Glass
On 5 November 2015 at 06:02, Bin Meng wrote: > To group all dm timer drivers together, move tsc timer to > drivers/timer directory. > > Signed-off-by: Bin Meng > > --- > > arch/x86/lib/Makefile | 1 - > drivers/timer/Kconfig | 7 +++ > drivers/time

Re: [U-Boot] [PATCH v3 02/17] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig

2015-11-06 Thread Simon Glass
Hi, On 6 November 2015 at 01:33, Lin Huang wrote: > since different rockchip SOC have different size of SRAM, > So the size SYS_MALLOC_F_LEN may different, so move this > config to rk3288 own Kconfig > > Signed-off-by: Lin Huang > --- > Changes in v1: None > Changes in v2: None > Changes in v3:

Re: [U-Boot] [PATCH 08/10] x86: Convert to use driver model timer

2015-11-06 Thread Simon Glass
Hi Bin, On 5 November 2015 at 06:02, Bin Meng wrote: > Convert all x86 boards to use driver model tsc timer. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/baytrail/valleyview.c | 3 --- > arch/x86/cpu/coreboot/timestamp.c | 22 -- > arch/x86/cpu/efi/efi.c

Re: [U-Boot] [PATCH 06/10] x86: tsc: Use notrace from

2015-11-06 Thread Simon Glass
On 5 November 2015 at 07:02, Bin Meng wrote: > Replace __attribute__((no_instrument_function)) with notrace from > . > > Signed-off-by: Bin Meng > --- > > arch/x86/lib/tsc_timer.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Acked-by: Simon Glass __

Re: [U-Boot] [PATCH 07/10] x86: tsc: Add driver model timer support

2015-11-06 Thread Simon Glass
On 5 November 2015 at 07:02, Bin Meng wrote: > This adds driver model timer support to x86 tsc timer driver. > > Signed-off-by: Bin Meng > --- > > arch/x86/lib/tsc_timer.c | 65 > > 1 file changed, 65 insertions(+) Acked-by: Simon Glass ___

Re: [U-Boot] [PATCH 05/10] x86: Reomve MIN_PORT80_KCLOCKS_DELAY

2015-11-06 Thread Simon Glass
On 5 November 2015 at 07:02, Bin Meng wrote: > This is not referenced anywhere. Remove it, as well as > tsc_base_kclocks and tsc_prev in the global data. > > Signed-off-by: Bin Meng > --- > > arch/x86/cpu/cpu.c | 18 -- > arch/x86/include/asm/global_data.h | 2 --

Re: [U-Boot] [PATCH 03/10] timer: altera: Remove the codes to get clock frequency

2015-11-06 Thread Simon Glass
On 6 November 2015 at 00:01, Thomas Chou wrote: > Hi Bin, > > > On 2015年11月05日 22:02, Bin Meng wrote: >> >> Since we have timer uclass to get clock frequency for us, remove >> the custom version in the altera timer driver. >> >> Signed-off-by: Bin Meng >> --- >> >> drivers/timer/altera_timer.c

  1   2   >