Re: [U-Boot] [PATCH 3/3] sunxi: Do not add a stdout-path alias to dts on boards without a serial port

2015-08-03 Thread Hans de Goede
Hi, On 02-08-15 20:57, Ian Campbell wrote: On Sun, 2015-08-02 at 20:45 +0200, Hans de Goede wrote: [...] So for now to keep things working we need CONFIG_CONS_INDEX 1 even on the 1 board we have which does not have a serial port (the uart1 pins which are routed to the outside on the A13 are

[U-Boot] [PATCH 2/4] net: fec: do not access reserved register for i.MX6UL

2015-08-03 Thread Peng Fan
The MIB RAM and FIFO receive start register does not exist on i.MX6UL. Accessing these register will cause enet not work well. Signed-off-by: Peng Fan Signed-off-by: Fugang Duan Cc: Joe Hershberger --- drivers/net/fec_mxc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/fe

[U-Boot] [PATCH 3/4] comment: net: Add CMD_MII in Kconfig

2015-08-03 Thread Peng Fan
Add CMD_MII Kconfig entry. Signed-off-by: Peng Fan Cc: Joe Hershberger --- common/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 40cd69e..2ae5080 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -433,6 +433,10 @@ config CMD_LINK_LOCAL

[U-Boot] [PATCH 4/4] imx: mx6ul_14x14_evk add ENET support

2015-08-03 Thread Peng Fan
Add enet support for mx6ul_14x14_evk board: 1. add pinmux settings 2. implement board_eth_init 3. implement board_phy_config Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 116 ++ configs/mx6ul_14x14_evk_d

[U-Boot] [PATCH 1/4] imx: clock support enet2 anatop clock support

2015-08-03 Thread Peng Fan
To i.MX6SX/UL, two ethernet interfaces are supported. Add ENET2 clock support: 1. Introduce a new input parameter "fec_id", only 0 and 1 are allowed. To value 1, only i.MX6SX/UL can pass the check. 2. Modify board code who use this api to follow new api prototype. Signed-off-by: Peng Fan Cc: H

Re: [U-Boot] [PATCH 4/4] imx: mx6ul_14x14_evk add ENET support

2015-08-03 Thread Fabio Estevam
On Mon, Aug 3, 2015 at 7:06 AM, Peng Fan wrote: > +int board_eth_init(bd_t *bis) > +{ > + int ret; > + > + setup_iomux_fec(CONFIG_FEC_ENET_DEV); > + > + ret = fecmxc_initialize_multi(bis, CONFIG_FEC_ENET_DEV, > + CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE); > + if

Re: [U-Boot] [PATCH 1/4] imx: clock support enet2 anatop clock support

2015-08-03 Thread Fabio Estevam
On Mon, Aug 3, 2015 at 7:06 AM, Peng Fan wrote: > - reg = readl(&anatop->pll_enet); > - reg &= ~BM_ANADIG_PLL_ENET_DIV_SELECT; > - reg |= freq; > + if (0 == fec_id) { Could you please use 'if (fec_id == 0)'. Same applies below. ___

[U-Boot] [PATCH] configs: zynqmp: Enable networking by default for EP108

2015-08-03 Thread Michal Simek
Enable networking for EP108 by default. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_ep_defconfig | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/xilinx_zynqmp_ep_defconfig b/configs/xilinx_zynqmp_ep_defconfig index fda44eaee04c..f249f8ec0204 100644

Re: [U-Boot] [PATCH 1/4] imx: clock support enet2 anatop clock support

2015-08-03 Thread Stefano Babic
Hi Peng, (added Joe in CC as network custodian): On 03/08/2015 12:06, Peng Fan wrote: > To i.MX6SX/UL, two ethernet interfaces are supported. > Add ENET2 clock support: > 1. Introduce a new input parameter "fec_id", only 0 and 1 are allowed. >To value 1, only i.MX6SX/UL can pass the check. >

Re: [U-Boot] [PATCH v2 1/9] doc: dfu: tftp: README entry for TFTP extension of DFU

2015-08-03 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On 25 July 2015 at 02:11, Lukasz Majewski > wrote: > > Documentation file for DFU extension. With this functionality it is > > now possible to transfer FIT images with firmware updates via TFTP > > and use DFU backend for storing them. > > > > Signed-off-by: Lukasz Maj

[U-Boot] [PATCH] udoo: Switch to SPL support

2015-08-03 Thread vpeter4
Currently we need to build one U-boot image for each of the udoo variants: quad and dual-lite. By switching to SPL we can support all two variants with a single binary. Based on the SPL for wandboard. Tested with OpenELEC (Open Embedded Linux Entertainment Center) on both boards. Signed-off-by:

Re: [U-Boot] [PATCH 1/4] imx: clock support enet2 anatop clock support

2015-08-03 Thread Peng Fan
Hi Stefano, On Mon, Aug 03, 2015 at 01:59:29PM +0200, Stefano Babic wrote: >Hi Peng, > >(added Joe in CC as network custodian): > > >On 03/08/2015 12:06, Peng Fan wrote: >> To i.MX6SX/UL, two ethernet interfaces are supported. >> Add ENET2 clock support: >> 1. Introduce a new input parameter "fec_

Re: [U-Boot] [PATCH 4/4] imx: mx6ul_14x14_evk add ENET support

2015-08-03 Thread Peng Fan
Hi Fabio, On Mon, Aug 03, 2015 at 07:39:33AM -0300, Fabio Estevam wrote: >On Mon, Aug 3, 2015 at 7:06 AM, Peng Fan wrote: > >> +int board_eth_init(bd_t *bis) >> +{ >> + int ret; >> + >> + setup_iomux_fec(CONFIG_FEC_ENET_DEV); >> + >> + ret = fecmxc_initialize_multi(bis, CONFIG_FE

Re: [U-Boot] [PATCH 4/4] imx: mx6ul_14x14_evk add ENET support

2015-08-03 Thread Stefano Babic
On 03/08/2015 13:32, Peng Fan wrote: > Hi Fabio, > On Mon, Aug 03, 2015 at 07:39:33AM -0300, Fabio Estevam wrote: >> On Mon, Aug 3, 2015 at 7:06 AM, Peng Fan wrote: >> >>> +int board_eth_init(bd_t *bis) >>> +{ >>> + int ret; >>> + >>> + setup_iomux_fec(CONFIG_FEC_ENET_DEV); >>> + >>> +

Re: [U-Boot] [PATCH 4/4] imx: mx6ul_14x14_evk add ENET support

2015-08-03 Thread Peng Fan
On Mon, Aug 03, 2015 at 02:50:23PM +0200, Stefano Babic wrote: >On 03/08/2015 13:32, Peng Fan wrote: >> Hi Fabio, >> On Mon, Aug 03, 2015 at 07:39:33AM -0300, Fabio Estevam wrote: >>> On Mon, Aug 3, 2015 at 7:06 AM, Peng Fan wrote: >>> +int board_eth_init(bd_t *bis) +{ + int r

[U-Boot] [PATCH 0/2] ARM: exynos: reorganize SoC code

2015-08-03 Thread Thomas Abraham
In order to reuse existing ARMv7 based Exynos SoC support for ARMv8 based Exynos platforms, move the existing sources from arch/arm/cpu/armv7/exynos to arch/arm/mach-exynos. This patch series has been tested on origen (Exynos4210), smdk5250 and smdk5420 boards. And compile tested for the following

[U-Boot] [PATCH 2/2] ARM: exynos: fix regression for Origen4210

2015-08-03 Thread Thomas Abraham
The do_lowlevel_init() function includes certian CA15 specific L2 cache configuration which is only applicable on Exynos5420 and members of its family. Fix the regression on Origen4210 by skipping the Exynos5420 specific portions of the code. Cc: Minkyu Kang Cc: Albert Aribaud Signed-off-by: Tho

[U-Boot] [PATCH 1/2] ARM: exynos: move SoC sources to mach-exynos

2015-08-03 Thread Thomas Abraham
Move arch/arm/cpu/armv7/exynos/* to arch/arm/mach-exynos/* to allow reuse of existing code for ARMv8 based Exynos platforms. Cc: Minkyu Kang Cc: Albert Aribaud Cc: Masahiro Yamada Signed-off-by: Thomas Abraham --- arch/arm/Kconfig |2 +- arch/arm/Makefile

Re: [U-Boot] [PATCH] udoo: Switch to SPL support

2015-08-03 Thread Stefano Babic
Hi Peter, On 03/08/2015 12:49, vpeter4 wrote: > Currently we need to build one U-boot image for each of the udoo > variants: quad and dual-lite. > > By switching to SPL we can support all two variants with a single binary. > > Based on the SPL for wandboard. > > Tested with OpenELEC (Open Embe

Re: [U-Boot] [PATCH] udoo: Switch to SPL support

2015-08-03 Thread Fabio Estevam
Hi Peter, On Mon, Aug 3, 2015 at 7:49 AM, vpeter4 wrote: > Currently we need to build one U-boot image for each of the udoo > variants: quad and dual-lite. > > By switching to SPL we can support all two variants with a single binary. > > Based on the SPL for wandboard. > > Tested with OpenELEC (O

Re: [U-Boot] [PATCH] udoo: Switch to SPL support

2015-08-03 Thread Stefano Babic
On 03/08/2015 15:19, Fabio Estevam wrote: > Hi Peter, > > On Mon, Aug 3, 2015 at 7:49 AM, vpeter4 wrote: >> Currently we need to build one U-boot image for each of the udoo >> variants: quad and dual-lite. >> >> By switching to SPL we can support all two variants with a single binary. >> >> Based

Re: [U-Boot] [PATCH] ARM: zynq: drop "optional" from board select in favor of Zedboard

2015-08-03 Thread Michal Simek
Hi, On 08/01/2015 09:39 AM, Masahiro Yamada wrote: > One disadvantage of commit a26cd04920dc (arch: Make board selection > choices optional) is that Kconfig could create such an insane > .config file that no board is selected. > > Rip off the "optional" again in favor of Zedboard as the default >

Re: [U-Boot] [PATCH 25/55] dm: pmic: max77686: Correct a few nits

2015-08-03 Thread Simon Glass
Hi Przemyslaw, On 28 July 2015 at 00:19, Przemyslaw Marczak wrote: > Hello Simon, > > > On 07/28/2015 01:30 AM, Simon Glass wrote: >> >> Hi Przemyslaw, >> >> On 10 July 2015 at 05:53, Przemyslaw Marczak >> wrote: >>> >>> Hello Simon, >>> >>> On 07/03/2015 02:16 AM, Simon Glass wrote: >

Re: [U-Boot] [PATCH 04/15] dm: pci: Provide friendly config access functions

2015-08-03 Thread Simon Glass
Hi Bin, On 28 July 2015 at 01:47, Bin Meng wrote: > Hi Simon, > > On Tue, Jul 28, 2015 at 5:47 AM, Simon Glass wrote: >> At present there are no PCI functions which allow access to PCI >> configuration using a struct udevice. This is a sad situation for driver >> model as it makes use of PCI har

Re: [U-Boot] [PATCH 28/55] dm: pmic: max77686: Support all BUCK regulators

2015-08-03 Thread Simon Glass
Hi Przemyslaw, On 30 July 2015 at 02:22, Przemyslaw Marczak wrote: > Hello Simon, > > > On 07/30/2015 04:05 AM, Simon Glass wrote: >> >> Hi Przemyslaw, >> >> On 10 July 2015 at 05:53, Przemyslaw Marczak >> wrote: >>> >>> >>> Hello Simon, >>> >>> On 07/03/2015 02:16 AM, Simon Glass wrote: >>

Re: [U-Boot] [PATCH v2 05/15] dm: unify obj-$(CONFIG_DM) and obj-$(CONFIG_SPL_DM) entries

2015-08-03 Thread Simon Glass
On 1 August 2015 at 08:48, Tom Rini wrote: > On Sat, Aug 01, 2015 at 10:14:35PM +0900, Masahiro Yamada wrote: > >> Signed-off-by: Masahiro Yamada > > Reviewed-by: Tom Rini Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://l

Re: [U-Boot] [PATCH v2 01/15] kbuild: fixdep: optimize code slightly

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > If the target string matches "CONFIG_", move the pointer p > forward. This saves several 7-chars adjustments. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > scripts/basic/fixdep.c | 7 --- > 1 file changed, 4 insertio

Re: [U-Boot] [PATCH v2 04/15] spl: move SPL driver entries to driver/Makefile

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > Just preparing for upcoming cleaning. > > The board-specific linker script board/vpac270/u-boot-spl.lds > has been touched to avoid build error. It does not change the > size of spl/u-boot-spl.bin for this board, so it should be OK. > > Signed-

Re: [U-Boot] [PATCH v2 07/15] clk: unify obj-$(CONFIG_CLK) and obj-$(CONFIG_SPL_CLK) entries

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > drivers/Makefile | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@li

Re: [U-Boot] [PATCH v2 06/15] clk: rename CONFIG_SPL_CLK_SUPPORT to CONFIG_SPL_CLK

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > drivers/Makefile| 2 +- > drivers/clk/Kconfig | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH v2 03/15] linux/kconfig.h: add CPP macros useful for per-image config options

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > The previous commit introduced a useful macro used in makefiles, > in order to reference to different variables (CONFIG_... or > CONFIG_SPL_...) depending on the build context. > > Per-image config option control is a PITA in C sources, too. > He

Re: [U-Boot] [PATCH v2 02/15] kbuild: add a makefile macro useful with per-image config options

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > Commit e02ee2548afe ("kconfig: switch to single .config > configuration") made the configuration itself pretty simple, > instead, we lost the way to systematically enable/disable config > options for each image independently. > > Our current stra

Re: [U-Boot] [PATCH v2 09/15] ram: unify obj-$(CONFIG_RAM) and obj-$(CONFIG_SPL_RAM) entries

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > drivers/Makefile | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@li

Re: [U-Boot] [PATCH v2 10/15] led: rename CONFIG_SPL_LED_SUPPORT to CONFIG_SPL_LED

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > drivers/Makefile| 2 +- > drivers/led/Kconfig | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH v2 11/15] led: unify obj-$(CONFIG_LED) and obj-$(CONFIG_SPL_LED) entries

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > drivers/Makefile | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@

Re: [U-Boot] [PATCH v2 12/15] dm: drop CONFIG_DM_DEVICE_REMOVE from uncmd list

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > We do not want to compile the DM remove code for SPL. Currently, > we undef it in include/config_uncmd_spl.h (for C files) and in > scripts/Makefile.uncmd_spl (for Makefiles). This is really ugly. > > This commit demonstrates how we can depreca

Re: [U-Boot] [PATCH v2 13/15] fdtdec: fix OF_CONTROL switch

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > There is no case where defined(SPL_DISABLE_OF_CONTROL) is true. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: None > > include/fdtdec.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass ___

Re: [U-Boot] [PATCH v2 08/15] ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM

2015-08-03 Thread Simon Glass
On 1 August 2015 at 08:48, Tom Rini wrote: > On Sat, Aug 01, 2015 at 10:14:38PM +0900, Masahiro Yamada wrote: > >> Signed-off-by: Masahiro Yamada > > Reviewed-by: Tom Rini Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de http://l

Re: [U-Boot] [PATCH v2 15/15] of: clean up OF_CONTROL ifdef conditionals

2015-08-03 Thread Simon Glass
On 1 August 2015 at 07:14, Masahiro Yamada wrote: > We have flipped CONFIG_SPL_DISABLE_OF_CONTROL. We have cleansing > devices, $(SPL_) and CONFIG_IS_ENABLED(), so we are ready to clear > away the ugly logic in include/fdtdec.h: > > #ifdef CONFIG_OF_CONTROL > # if defined(CONFIG_SPL_BUILD) && !

Re: [U-Boot] [PATCH v2 14/15] of: flip CONFIG_SPL_DISABLE_OF_CONTROL into CONFIG_SPL_OF_CONTROL

2015-08-03 Thread Simon Glass
Hi Masahiro, On 1 August 2015 at 07:14, Masahiro Yamada wrote: > As we discussed a couple of times, negative CONFIG options make our > life difficult; CONFIG_SYS_NO_FLASH, CONFIG_SYS_DCACHE_OFF, ... > and here is another one. > > Now, there are actually two boards enabling OF_CONTROL on SPL: > -

Re: [U-Boot] [PATCH v2 00/15] Add macros to ease our life with independent CONFIGs between U-Boot and SPL

2015-08-03 Thread Simon Glass
Hi, On 1 August 2015 at 07:14, Masahiro Yamada wrote: > > Refer to Simon's question, too: > http://lists.denx.de/pipermail/u-boot/2015-July/219598.html > > Since U-boot introduced SPL (not since Kconfig), > enabling features for U-boot and SPL independently is always a PITA. > > - decide if each

[U-Boot] [PATCH] udoo: Switch to SPL support

2015-08-03 Thread Peter Vicman
>> Maybe Stefano could fix these two small issues while applying your patch. > >Yes, thanks for note this. > >I will fix them by applying, no need to repost. Thank you very much. Also thanks to Fabio for his instructions in last few days. Best regards, Peter ___

[U-Boot] [PATCH v2 00/19] dm: exynos: Driver model improvements leading to spring support

2015-08-03 Thread Simon Glass
This series adds a number of fixes and improvements to driver model as well as two new uclasses (video bridges and I2c muxes). The series is aimed at adding support for spring (HP 11 Chromebook). Since it is very similar to other ARM Chromebooks, some effory is made to use common code rather than

[U-Boot] [PATCH v2 07/19] dm: pmic: max77686: Support all BUCK regulators

2015-08-03 Thread Simon Glass
Add support for all BUCK regulators, now that the correct register is accessed for each. Signed-off-by: Simon Glass --- Changes in v2: - Add a comment about DVS in the driver drivers/power/regulator/max77686.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --gi

[U-Boot] [PATCH v2 19/19] exynos: Add support for spring

2015-08-03 Thread Simon Glass
Spring is the first ARM-based HP Chromebook 11. It is similar to snow and it uses the same Samsung Exynos5250 chip. But has some unusual features. Mainline support for it has lagged snow (both in kernel and U-Boot). Now that the exynos5 code is common we can support spring just by adding a device t

[U-Boot] [PATCH v2 12/19] exynos: Drop old exynos5420-specific board code

2015-08-03 Thread Simon Glass
Now that exynos5420 boards can use the generic exynos5 code, switch over to it and remove the old code. Signed-off-by: Simon Glass Acked-by: Przemyslaw Marczak --- Changes in v2: None board/samsung/smdk5420/Makefile | 4 - board/samsung/smdk5420/smdk5420.c | 143 --

[U-Boot] [PATCH v2 05/19] dm: cros_ec: Convert the I2C tunnel code to use driver model

2015-08-03 Thread Simon Glass
The Chrome OS EC supports tunnelling through to an I2C bus on the EC. This currently uses a copy of the I2C command code and a special 'crosec' sub-command. With driver model we can define an I2C bus which tunnels through to the EC, and use the normal 'i2c' command to access it. This simplifies th

[U-Boot] [PATCH v2 10/19] exynos: Enable new features for exynos5 boards

2015-08-03 Thread Simon Glass
Enable PMICs, regulators and the like so that new drivers will be made available. Signed-off-by: Simon Glass --- Changes in v2: None board/samsung/smdk5420/smdk5420.c | 2 +- configs/arndale_defconfig | 2 ++ configs/odroid-xu3_defconfig| 6 ++ configs/peach-pi_defco

[U-Boot] [PATCH v2 18/19] exynos: video: Remove non-device-tree code

2015-08-03 Thread Simon Glass
We always use device tree on exynos, so remove the unused code. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/include/asm/arch-exynos/dp_info.h | 2 -- drivers/video/exynos_dp.c | 22 -- 2 files changed, 24 deletions(-) diff --git a/arch/arm

[U-Boot] [PATCH v2 16/19] video: Remove the old parade driver

2015-08-03 Thread Simon Glass
We have a new one which uses driver model and device tree configuration. Remove the old one. Signed-off-by: Simon Glass --- Changes in v2: None drivers/video/Makefile | 1 - drivers/video/parade.c | 231 include/configs/peach-pi.h | 2

[U-Boot] [PATCH v2 17/19] dts: Drop unused compatible ID for the NXP video bridge

2015-08-03 Thread Simon Glass
This has moved to driver model so we can drop the fdtdec support. Signed-off-by: Simon Glass --- Changes in v2: None include/fdtdec.h | 1 - lib/fdtdec.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index b994f2c..cd4ec66 100644 --- a/include/fdt

[U-Boot] [PATCH v2 11/19] exynos: config: Move common options to the common headers and tidy up

2015-08-03 Thread Simon Glass
Many options are duplicated on the exynos5 boards. Move these to the common files. Also some options are not used so can be removed. Tidy this up to make the files easier to maintain. Signed-off-by: Simon Glass Acked-by: Przemyslaw Marczak --- Changes in v2: - Rebase to dm/master include/con

[U-Boot] [PATCH v2 14/19] power: Remove old TPS65090 drivers

2015-08-03 Thread Simon Glass
Remove the old drivers (both the normal one and the cros_ec one) now that we have new drivers that use driver model. Signed-off-by: Simon Glass --- Changes in v2: None drivers/power/pmic/Makefile | 2 - drivers/power/pmic/pmic_tps65090.c| 310 --

[U-Boot] [PATCH 6/6] arm: socfpga: misc: Add support for printing FPGA type

2015-08-03 Thread Marek Vasut
From: Dinh Nguyen Add code which uses the new functions for obtaining FPGA ID from the scan manager. This new code prints the FPGA model attached to the SoCFPGA during boot and sets environment variable "fpgatype", which can be used to determine the FPGA model in U-Boot scripts. Signed-off-by: D

[U-Boot] [PATCH 2/6] arm: socfpga: scan: Introduce generic JTAG accessor

2015-08-03 Thread Marek Vasut
Introduce generic function for accessing the JTAG scan chains in the SCC manager. Make use of this function throughout the SCC manager to replace the ad-hoc writes to registers and make the code less cryptic. Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga/scan_manager.c | 104 +

[U-Boot] [PATCH 5/6] arm: socfpga: scan: Add code to get FPGA ID

2015-08-03 Thread Marek Vasut
From: Dinh Nguyen Add code to get the FPGA type for Altera's SoCFPGA family of FPGA. The code uses the scan manager to send jtag pulses that will return the FPGA ID. Signed-off-by: Dinh Nguyen Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga/include/mach/scan_manager.h | 1 + arch/arm/ma

[U-Boot] [PATCH 4/6] arm: socfpga: scan: Factor out IO chain programming

2015-08-03 Thread Marek Vasut
Factor out the code which sends JTAG instruction followed by data into separate function to tidy the code up a little. Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga/scan_manager.c | 113 +-- 1 file changed, 42 insertions(+), 71 deletions(-) diff --git a/ar

[U-Boot] [PATCH 3/6] arm: socfpga: scan: Clean up horrible macros

2015-08-03 Thread Marek Vasut
Clean up the horrible macros present in the scan_manager.h . Firstly, the function scan_mgr_io_scan_chain_prg() is static, yet all the macros are used only within it, thus there is no point in having them in the header file. Moreover, the macros are just making the code much less readable, so remov

[U-Boot] [PATCH v2 03/19] dm: i2c: Add support for multiplexed I2C buses

2015-08-03 Thread Simon Glass
Add a new I2C_MUX uclass. Devices in this class can multiplex between several I2C buses, selecting them one at a time for use by the system. The multiplexing mechanism is left to the driver to decide - it may be controlled by GPIOs, for example. The uclass supports only two methods: select() and d

[U-Boot] [PATCH 1/6] arm: socfpga: scan: Clean up scan_chain_engine_is_idle()

2015-08-03 Thread Marek Vasut
Rework this function so it's clear that it is only polling for certain bits to be cleared. Add kerneldoc. Fix it's return value to be either 0 on success and -ETIMEDOUT on error and propagate this through the scan manager code. Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga/include/mach/sc

[U-Boot] [PATCH v2 02/19] video: Work around lack of pinctrl

2015-08-03 Thread Simon Glass
We haven't quite got pinctrl ready to apply to mainline. We don't want to GPIO pull-up/down support to the driver model GPIO layer either. So work around this for now. We can address this when pinctrl is complete. Signed-off-by: Simon Glass --- Changes in v2: - Add a new patch to hold off the n

[U-Boot] [PATCH v2 01/19] exynos: dts: Correct LDO and BUCK naming

2015-08-03 Thread Simon Glass
At present lower case is used for the regulator names in the device tree. The kernel uses upper case and U-Boot will require this also since it will move to a case-sensitive name check. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to correct LDO and BUCK naming arch/arm/dts/ex

[U-Boot] [PATCH v2 06/19] cros_ec: Support the LDO access method used by spring

2015-08-03 Thread Simon Glass
Add a driver to support the special LDO access used by spring. This is a custom method in the cros_ec protocol - it does not use an I2C pass-through. There are two implementation choices: 1. Write a special LDO driver which can talk across the EC. Duplicate all the logic from TPS65090 for retryin

[U-Boot] [PATCH v2 15/19] cros_ec: Remove the old tunnel code

2015-08-03 Thread Simon Glass
This is not needed with driver mode. Remove it. Signed-off-by: Simon Glass --- Changes in v2: None drivers/misc/cros_ec.c | 268 + include/cros_ec.h | 14 --- 2 files changed, 1 insertion(+), 281 deletions(-) diff --git a/drivers/misc/cros

[U-Boot] [PATCH v2 08/19] exynos: dts: Drop the old TPS65090 I2C node

2015-08-03 Thread Simon Glass
While the AP can access the main PMIC on snow, it must coordinate with the EC which also wants access. Drop the old definition, which can in principle generate collision errors. We will use the new arbitration driver instead. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/exyn

[U-Boot] [PATCH v2 04/19] i2c: Add a mux for GPIO-based I2C bus arbitration

2015-08-03 Thread Simon Glass
While I2C supports multi-master buses this is difficult to get right. The implementation on the master side in software is quite complex. Clock-stretching and the arbitrary time that an I2C transaction can take make it difficult to share the bus fairly in the face of high traffic. When one or more

[U-Boot] [PATCH v2 09/19] exynos: Add common board code for exynos5 boards that use device tree

2015-08-03 Thread Simon Glass
Some boards use device tree for almost all board-specific configuration. They therefore do not need their own separate board code, but can all use the same version. Add a common version of the board code. It uses the PMIC, regulator and video bridge uclasses. This will support smdk5250, smdk5420, s

[U-Boot] [PATCH v2 13/19] exynos: Drop old exynos5250-specific board code

2015-08-03 Thread Simon Glass
Now that most exynos5250 boards can use the generic exynos5 code, switch over to it and remove the old code. Signed-off-by: Simon Glass --- Changes in v2: None board/samsung/smdk5250/Makefile | 4 - board/samsung/smdk5250/exynos5-dt.c | 306 include/c

[U-Boot] [PATCH] dm: usb: fix USB Ethernet without CONFIG_DM_ETH regression

2015-08-03 Thread Marcel Ziswiler
From: Marcel Ziswiler The following commit enforces CONFIG_DM_ETH for USB Ethernet which breaks any board using CONFIG_USB_HOST_ETHER without CONFIG_DM which this patch fixes. commit 69559093f6173dcfcb041df0995063bdbd07d49b dm: usb: Avoid using USB ethernet with CONFIG_DM_USB and no DM_ETH Test

Re: [U-Boot] [PATCH 3/5] power: pmic: pfuze100 support driver model

2015-08-03 Thread Przemyslaw Marczak
Hello Peng, I have few comments. On 07/28/2015 04:48 PM, Peng Fan wrote: 1. Support driver model for pfuze100. 2. Introduce a new Kconfig entry DM_PMIC_PFUZE100 for pfuze100 3. This driver intends to support PF100, PF200 and PF3000, so add the device id into the udevice_id array. Signed-of

Re: [U-Boot] [PATCH 2/5] power: regulator use node name when no regulator-name

2015-08-03 Thread Przemyslaw Marczak
Hello, On 08/03/2015 02:23 AM, Peng Fan wrote: Hi Simon, On Sun, Aug 02, 2015 at 04:31:06PM -0600, Simon Glass wrote: Hi Peng, On 28 July 2015 at 08:48, Peng Fan wrote: If there is no property named 'regulator-name' for regulators, choose node name instead, but not directly return failure v

Re: [U-Boot] [PATCH] Revert "fdt: Fix fdtdec_get_addr_size() for 64-bit"

2015-08-03 Thread Stephen Warren
On 08/02/2015 06:13 PM, Simon Glass wrote: This reverts commit 5b34436035fc862b5e8d0d2c3eab74ba36f1a7f4. This function has a few problems. It calls fdt_parent_offset() which as mentioned in code review is very slow. https://patchwork.ozlabs.org/patch/499482/ https://patchwork.ozlabs.org/patch/4

[U-Boot] [ANN] U-Boot v2015.10-rc1 released

2015-08-03 Thread Tom Rini
Hey all, I've pushed v2015.10-rc1 out to the repository and tarballs should exist soon. The merge window is now closed. I've got the first rc out on schedule and I'm going to try hard to stick to the every two weeks thing. Speaking of the merge window, I think after pondering things for a bit, t

Re: [U-Boot] [PATCH 000/172] socfpga: SPL and DDR init

2015-08-03 Thread Dinh Nguyen
On 07/27/2015 03:49 PM, Marek Vasut wrote: > This series fixes the SPL support on SoCFPGA and cleans up the DDR > init code such that it is becoming remotely mainlinable. After this > series, the SPL is capable of booting from both SD/MMC and QSPI NOR. > > There is still work to be done, but I'd l

[U-Boot] [PATCH] dm: usb: fix missing errno include regression

2015-08-03 Thread Marcel Ziswiler
From: Marcel Ziswiler If enabling CONFIG_DM_ETH currently compilation fails as follows: drivers/usb/eth/usb_ether.c: In function 'usb_ether_register': drivers/usb/eth/usb_ether.c:72:11: error: 'ENXIO' undeclared (first use in this function) return -ENXIO; ^ drivers/usb/eth/usb_eth

[U-Boot] SPL with DM for serial

2015-08-03 Thread Michal Simek
Hi Simon, I am playing with SPL for U-Boot with DM serial driver for OF_CONTROL and without. Can you please tell me what's the status on SPL in connection to DM? Definitely it is not just about enabling it via Kconfig. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w:

Re: [U-Boot] [PATCH] dm: usb: fix missing errno include regression

2015-08-03 Thread Simon Glass
Hi Marcel, On 3 August 2015 at 09:33, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > If enabling CONFIG_DM_ETH currently compilation fails as follows: > > drivers/usb/eth/usb_ether.c: In function 'usb_ether_register': > drivers/usb/eth/usb_ether.c:72:11: error: 'ENXIO' undeclared (first use

Re: [U-Boot] [PATCH] Revert "fdt: Fix fdtdec_get_addr_size() for 64-bit"

2015-08-03 Thread Bin Meng
Hi Simon, On Mon, Aug 3, 2015 at 8:13 AM, Simon Glass wrote: > This reverts commit 5b34436035fc862b5e8d0d2c3eab74ba36f1a7f4. > > This function has a few problems. It calls fdt_parent_offset() which as > mentioned in code review is very slow. > > https://patchwork.ozlabs.org/patch/499482/ > https:

Re: [U-Boot] [PATCH v2 22/47] efi: Add a serial driver

2015-08-03 Thread Bin Meng
On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass wrote: > Add a serial driver which makes use of EFI's console in/out service. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add a comment about special handling for backspace > - Add a comment as to why debug_uart_init() is empty > - Dro

Re: [U-Boot] [PATCH v2 24/47] x86: Set up toolchain flags for running as EFI application

2015-08-03 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass wrote: > From: Ben Stoltz > > Adjust the toolchain flags to build U-Boot as a relocatable shared library, > as required by EFI. > > Signed-off-by: Ben Stoltz > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add a comment as to wh

Re: [U-Boot] [PATCH v2 25/47] efi: Support building a u-boot.efi executable

2015-08-03 Thread Bin Meng
Hi Simon, On Fri, Jul 31, 2015 at 11:31 PM, Simon Glass wrote: > Add support for building U-Boot as an EFI application with a .efi suffix. > This can be loaded by EFI provided that EFI has the same bit width (32- > or 64-bit) as U-Boot. This unfortunate limitation is imposed by EFI. > > Signed-of

[U-Boot] CONFIG_DM_ETH USB_ETHER_ASIX Reception Issue on Tegra

2015-08-03 Thread Marcel Ziswiler
Hi there Trying to update one of my patch sets of late made me notice that the ASIX USB to Ethernet stuff if CONFIG_DM_ETH is enabled seems to be rather broken. I already sent two patches to even get that far but even with that reception still does not seem to work (see below). I tested by enablin

Re: [U-Boot] [PATCH] Revert "fdt: Fix fdtdec_get_addr_size() for 64-bit"

2015-08-03 Thread Simon Glass
Hi Stephen, On 3 August 2015 at 09:12, Stephen Warren wrote: > On 08/02/2015 06:13 PM, Simon Glass wrote: >> >> This reverts commit 5b34436035fc862b5e8d0d2c3eab74ba36f1a7f4. >> >> This function has a few problems. It calls fdt_parent_offset() which as >> mentioned in code review is very slow. >>

Re: [U-Boot] [Patch v2] lib/fdtdec: Fix fdt_addr_t and fdt_size_t typedef

2015-08-03 Thread York Sun
Sure. I have to rebase it anyway after this commit 5b34436. York On 08/02/2015 03:30 PM, Simon Glass wrote: > Hi York, > > On 23 July 2015 at 16:12, York Sun wrote: >> fdt_addr_t is a physical address. It can be either 64-bit or 32-bit, >> depending on the architecture. It should be phys_addr_t

Re: [U-Boot] [PATCH 3/5] Allow arch-specific setting of global_data in board_init_f_mem()

2015-08-03 Thread York Sun
On 08/02/2015 05:10 PM, Simon Glass wrote: > At present we have a simple assignment to gd. With some archs this is > implemented as a register or through some other means; a simple assignment > does not suit in all cases. > > Change this to a function and add documentation to describe how this a

Re: [U-Boot] [PATCH 05/15] ddr: altera: sequencer: Wrap ac_rom_init and inst_rom_init

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > Introduce two wrapper functions, socfpga_get_seq_ac_init() and > socfpga_get_seq_inst_init() to avoid direct inclusion of the > sequencer_auto_ac_init.h and sequencer_auto_inst_init.h QTS > generated files. This reduces namespace polution again. > s/po

Re: [U-Boot] [PATCH 01/15] ddr: altera: sequencer: Move qts-generated files to board dir

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > Move the files generated by QTS into the board directory, they should not > be part of the driver files at all. > > Signed-off-by: Marek Vasut > --- > .../altera => board/altera/socfpga/qts}/sequencer_auto.h| 0 > .../altera/socfpga/qts}/sequence

Re: [U-Boot] [PATCH 02/15] ddr: altera: sequencer: Clean up mach/sdram.h

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > Zap non-existent functions and place function prototypes at the > beginning of the header file. > > Signed-off-by: Marek Vasut > --- > arch/arm/mach-socfpga/include/mach/sdram.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > Acked-by:

Re: [U-Boot] [PATCH 03/15] ddr: altera: sequencer: Zap unused params and macros

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > These parameters are not used in the code, zap them and the > macros which are used by them as well. > > Signed-off-by: Marek Vasut > --- > drivers/ddr/altera/sequencer.c | 49 > +- > drivers/ddr/altera/sequenc

Re: [U-Boot] [PATCH 06/15] ddr: altera: sequencer: Wrap RW_MGR_* macros

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > Introduce structure socfpga_sdram_rw_mgr_config to wrap the RW manager > configuration values in board file. Introduce a complementary function, > socfpga_get_sdram_rwmgr_config(), which returns this the structure. > This is another step toward wrapping

Re: [U-Boot] [PATCH 04/15] ddr: altera: sequencer: Zap bogus redefinition of RW_MGR_MEM_NUMBER_OF_RANKS

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > This is defined in the QTS-generated headers, so it must not be > re-defined in sequencer.h . > > Signed-off-by: Marek Vasut > --- > drivers/ddr/altera/sequencer.h | 1 - > 1 file changed, 1 deletion(-) > Acked-by: Dinh Nguyen Thanks, Dinh __

Re: [U-Boot] [PATCH 08/15] ddr: altera: sequencer: Wrap IO_* macros

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > Introduce structure socfpga_sdram_io_config to wrap the IO configuration > values in board file. Introduce socfpga_get_sdram_io_config() function, > which returns this the structure. This is another step toward wrapping > the nasty QTS generated macros i

Re: [U-Boot] [PATCH 09/15] ddr: altera: sequencer: Pluck out IO_* macros from code

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > Actually convert the sequencer code to use socfpga_sdram_io_config > instead of the IO_* macros. This is just an sed excercise here, no > manual coding needed. s/excersise/exercise Acked-by: Dinh Nguyen Thanks, Dinh __

Re: [U-Boot] [PATCH 07/15] ddr: altera: sequencer: Pluck out RW_MGR_* macros from code

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > Actually convert the sequencer code to use socfpga_sdram_rw_mgr_config > instead of the RW_MGR_* macros. This is just an sed excercise here, no > manual coding needed. > s/excersise/exercise Acked-by: Dinh Nguyen Thanks, Dinh ___

Re: [U-Boot] [PATCH] arm: socfpga: Move generated files into qts subdir

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:47:29 PM, Marek Vasut wrote: > Move all the files generated by Quartus into the qts/ subdir of the > board/altera/socfpga dir to make them explicitly separate from the > generic U-Boot code. > > Signed-off-by: Marek Vasut > Cc: Dinh Nguyen > --- > board/altera/soc

Re: [U-Boot] [PATCH 2/2] net: designware: Rename the driver var name to eth_designware

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:33:17 PM, Marek Vasut wrote: > The driver variable name is eth_sandbox, which is probably a copy-paste > mistake. Fix it. > > Signed-off-by: Marek Vasut > Cc: Dinh Nguyen > Cc: Joe Hershberger Hi Joe, I can pick both of those through u-boot-socfpga if you don't m

Re: [U-Boot] [PATCH] arm: dts: socfpga: Fix SPI aliases

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:41:05 PM, Marek Vasut wrote: > The SPI aliases are completely wrong. First, they point to non-existing > /spi@.* nodes instead of the correct /soc/spi@.* nodes. Second, the use > ad-hoc string instead of a handle. Furthermore, they are copied multiple > times in each

Re: [U-Boot] [PATCH] arm: socfpga: Fix FPGA bitstream programming routine

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:34:54 PM, Marek Vasut wrote: > In case the FPGA bitstream is aligned to 4 bytes, skip the > part of the assembler which handles unaligned bitstream. > Otherwise, that part will loop indefinitelly. > > Signed-off-by: Marek Vasut > Cc: Dinh Nguyen Applied to u-boot-

Re: [U-Boot] [PATCH] arm: dts: socfpga: Add mmc alias

2015-08-03 Thread Marek Vasut
On Monday, July 27, 2015 at 10:42:51 PM, Marek Vasut wrote: > Add alias for the SD/MMC controller, so it can be located by U-Boot OF > support. > > Signed-off-by: Marek Vasut > Cc: Dinh Nguyen Applied to u-boot-socfpga/master . Best regards, Marek Vasut

Re: [U-Boot] [PATCH 10/15] ddr: altera: sequencer: Wrap misc remaining macros

2015-08-03 Thread Dinh Nguyen
On 08/02/2015 06:21 PM, Marek Vasut wrote: > Introduce structure socfpga_sdram_misc_config to wrap the remainging > misc configuration values in board file. Again, introduce a function, > socfpga_get_sdram_misc_config(), which returns this the structure. This > is almost the final step toward wrapp

  1   2   3   >