[U-Boot] [PATCH 3/3] MAINTAINERS: comment out blank M: field

2014-09-15 Thread Masahiro Yamada
Since commit ddaf5c8f3030050fcd356a1e49e3ee8f8f52c6d4 (patman: RunPipe() should not pipe stdout/stderr unless asked), Patman spits lots of "Invalid MAINTAINERS address: '-'" error messages for patches with global changes. It takes too long for Patman to process them. Anyway, "M:-" does not car

[U-Boot] [PATCH 0/3] Comment out invalid email addresses in MAINTAINERS

2014-09-15 Thread Masahiro Yamada
Masahiro Yamada (3): tools/genboardscfg.py: pick up also commented maitainers MAINTAINERS: comment out invalid maintainers MAINTAINERS: comment out blank M: field board/LaCie/net2big_v2/MAINTAINERS| 2 +- board/LaCie/netspace_v2/MAINTAINERS | 2 +- board/LaCie/wireless_spac

[U-Boot] [PATCH 1/3] tools/genboardscfg.py: pick up also commented maitainers

2014-09-15 Thread Masahiro Yamada
We are still keeping invalid email addressed in MAINTAINERS because they carry information. The problem is that scripts/get_maintainer.pl adds emails in the "M:" field including invalid ones. We want to comment out invalid email addresses in MAINTAINERS to prevent scripts/get_maintainer.pl from p

[U-Boot] [PATCH 2/3] MAINTAINERS: comment out invalid maintainers

2014-09-15 Thread Masahiro Yamada
The "S:Orphan" in MAINTAINERS means that the maintainer in the "M:" field is unreachable (i.e. the email address is not working). (Refer to the definition of "Orphan" adopted in U-Boot in the log of commit 31f1b654b2f395b69faa5d0d3c1eb0803923bd3b, "boards.cfg: move boards with invalid emails to

[U-Boot] [PATCH 4/4] ARM: ls102xa: allow all the peripheral access permissions as R/W.

2014-09-15 Thread Xiubo Li
The Central Security Unit (CSU) allows secure world software to change the default access control policies of peripherals/bus slaves, determining which bus masters may access them. This allows peripherals to be separated into distinct security domains. Combined with SMMU configuration of the system

[U-Boot] [PATCH v3 2/3] tools: Import Kconfiglib

2014-09-15 Thread Masahiro Yamada
Kconfiglib is the flexible Python Kconfig parser and library created by Ulf Magnusson. (https://github.com/ulfalizer/Kconfiglib) This commit imports kconfiglib.py from commit ce84c22e58fa59cb93679d4ead03c3cd1387965e of https://github.com/ulfalizer/Kconfiglib with an ISC SPDX-License-Identifier. S

[U-Boot] [PATCH 1/4] ARM: HYP/non-sec: add the pen address byte reverting support.

2014-09-15 Thread Xiubo Li
For some SoCs, the pen address may has different endianness with the CPUs, so this need the byte revertion for it, Signed-off-by: Xiubo Li --- arch/arm/cpu/armv7/nonsec_virt.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv7/nonsec_virt.S b/arch/arm/cpu/armv7/nonsec_virt

[U-Boot] [PATCH 2/4] ARM: HYP/non-sec: Fix the ARCH Timer frequency setting.

2014-09-15 Thread Xiubo Li
For some SoCs, the CONFIG_SYS_CLK_FREQ maybe won't equal the ARCH Timer's frequency. Here using the CONFIG_TIMER_CLK_FREQ instead if the ARCH Timer's frequency need to config here. Signed-off-by: Xiubo Li --- arch/arm/cpu/armv7/nonsec_virt.S | 4 ++-- include/configs/sun7i.h | 1 + 2 f

[U-Boot] [PATCH 0/4] ls102xa: HYP/non-sec: for ls102xa.

2014-09-15 Thread Xiubo Li
Xiubo Li (4): ARM: HYP/non-sec: add the pen address byte reverting support. ARM: HYP/non-sec: Fix the ARCH Timer frequency setting. ls102xa: HYP/non-sec: support for ls102xa boards ARM: ls102xa: allow all device accessable in non-secure state arch/arm/cpu/armv7/ls102xa/cpu.c

[U-Boot] [PATCH 3/4] ls102xa: HYP/non-sec: support for ls102xa boards

2014-09-15 Thread Xiubo Li
Enable hypervisors utilizing the ARMv7 virtualization extension on the LS1021A-QDS/TWR boards with the A7 core tile, we add the required configuration variable. Also we define the board specific smp_set_cpu_boot_addr() function to set the start address for secondary cores in the LS1021A specific ma

Re: [U-Boot] [PATCH v2 2/3] tools: Import Kconfiglib (Superseded !!!)

2014-09-15 Thread Masahiro Yamada
Hi Tom, I think this series (v2) is under review now, but I have noticed my big mistake in terms of the license. In v2, I accidentally added GPL-2.0+ SPDX but it should have been ISC SPDX. I'd like you to replace it with v3. On Mon, 1 Sep 2014 19:57:37 +0900 Masahiro Yamada wrote: > Kcon

[U-Boot] [PATCH v3 3/3] tools/genboardscfg.py: improve performance more with Kconfiglib

2014-09-15 Thread Masahiro Yamada
The idea of using Kconfiglib was given by Tom Rini. It allows us to scan lots of defconfigs very quickly. This commit also uses multiprocessing for further acceleration. Signed-off-by: Masahiro Yamada Suggested-by: Tom Rini Acked-by: Simon Glass --- Changes in v3: - A minor comment fix Chan

[U-Boot] [PATCH v3 0/3] Add ISC SPDX, import Kconfiglib and improve genboardscfg.py

2014-09-15 Thread Masahiro Yamada
Masahiro Yamada (3): SPDX: Add ISC SPDX-License-Identifier tools: Import Kconfiglib tools/genboardscfg.py: improve performance more with Kconfiglib Licenses/README |1 + Licenses/isc.txt | 17 + tools/buildman/kconfiglib.py | 3799

[U-Boot] [PATCH v3 1/3] SPDX: Add ISC SPDX-License-Identifier

2014-09-15 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada Cc: Wolfgang Denk --- Changes in v3: None Changes in v2: - Newly added Licenses/README | 1 + Licenses/isc.txt | 17 + 2 files changed, 18 insertions(+) create mode 100644 Licenses/isc.txt diff --git a/Licenses/README b/Licenses/README index

Re: [U-Boot] [PATCH 12/35] arm: socfpga: clock: Implant order into bit definitions

2014-09-15 Thread Marek Vasut
On Monday, September 15, 2014 at 11:21:22 PM, Pavel Machek wrote: > Hi! > > > Dear Marek Vasut, > > > > In message <1410779188-6880-13-git-send-email-ma...@denx.de> you wrote: > > > The bit definitions for clock manager are complete chaos. Implement > > > some basic logical order into them. > >

Re: [U-Boot] [PATCH 30/35] arm: socfpga: cache: Enable D-Cache

2014-09-15 Thread Pavel Machek
On Mon 2014-09-15 13:59:25, Marek Vasut wrote: > The code is now fixed to the point where we can safely enable > the L1 data cache. Enable the D-Cache and set it as write-alloc. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: Wol

Re: [U-Boot] [PATCH 29/35] arm: socfpga: cache: Define cacheline size

2014-09-15 Thread Pavel Machek
On Mon 2014-09-15 13:06:22, Marek Vasut wrote: > The Cortex-A9 has 32-byte long L1 cachelines. Define this value. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: Wolfgang Denk Acked-by: Pavel Machek -- (english) http://www.l

Re: [U-Boot] [PATCH 28/35] arm: cache: Add support for write-allocate D-Cache

2014-09-15 Thread Pavel Machek
On Mon 2014-09-15 13:06:21, Marek Vasut wrote: > Add configuration for the write-allocate mode of L1 D-Cache on ARM. > This is needed for D-Cache operation on Cortex-A9 on the SoCFPGA . > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini >

Re: [U-Boot] [PATCH 26/35] arm: socfpga: reset: Add function to reset FPGA bridges

2014-09-15 Thread Pavel Machek
On Mon 2014-09-15 13:06:19, Marek Vasut wrote: > Add function to enable and disable FPGA bridges. This code is used > by the FPGA manager to disable the bridges before programming the > FPGA and will later be also used by the initialization code for the > chip to put the chip into well defined stat

Re: [U-Boot] [PATCH 24/35] arm: socfpga: board: Align checkboard() output

2014-09-15 Thread Pavel Machek
On Mon 2014-09-15 13:06:17, Marek Vasut wrote: > Cosmetic change to the checkboard() function output. Align the > output with the rest of initial output produced by U-Boot. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: Wolfgang

Re: [U-Boot] [PATCH 19/35] arm: socfpga: reset: Add EMAC reset functions

2014-09-15 Thread Pavel Machek
On Mon 2014-09-15 13:06:12, Marek Vasut wrote: > Add functions to reset the EMAC ethernet blocks. We cannot handle > two EMAC ethernet blocks yet, therefore the ifdefs. Once there is > hardware using both EMAC blocks, this ifdef will have to go. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See

Re: [U-Boot] [PATCH 18/35] arm: socfpga: timer: Pull the timer reload value from config file

2014-09-15 Thread Pavel Machek
On Mon 2014-09-15 13:06:11, Marek Vasut wrote: > The timer reload value is a property of the timer hardware and there > is no reason for this to be configurable. Place this into the timer > driver just like on the other hardware. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Ngu

Re: [U-Boot] [PATCH 12/35] arm: socfpga: clock: Implant order into bit definitions

2014-09-15 Thread Pavel Machek
Hi! > Dear Marek Vasut, > In message <1410779188-6880-13-git-send-email-ma...@denx.de> you wrote: > > The bit definitions for clock manager are complete chaos. Implement > > some basic logical order into them. > ... > > +#define CLKMGR_BYPASS_MAINPLL_SET(x) (((x) << 0) & > > 0x0

Re: [U-Boot] [PATCH 15/35] arm: socfpga: clock: Add code to read clock configuration

2014-09-15 Thread Dinh Nguyen
On 09/15/2014 06:06 AM, Marek Vasut wrote: > From: Pavel Machek > > Add the entire bulk of code to read out clock configuration from the SoCFPGA > CPU registers. This is important for MMC, QSPI and UART drivers as otherwise > they cannot determine the frequency of their upstream clock. > > Signe

Re: [U-Boot] [PATCH 14/35] arm: socfpga: clock: Add missing stubs into board file

2014-09-15 Thread Dinh Nguyen
On 09/15/2014 06:06 AM, Marek Vasut wrote: > Add some stub defines, which are used by the clock code, but are > missing from the auto-generated header file for the SoCFPGA family. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: W

Re: [U-Boot] [PATCH 13/35] arm: socfpga: clock: Drop nonsense inlining from clock manager code

2014-09-15 Thread Dinh Nguyen
On 09/15/2014 06:06 AM, Marek Vasut wrote: > The inlining is done by GCC whe needed, there is no need to do it s/whe/when. Acked-by: Dinh Nguyen thanks... > explicitly. Furthermore, the inline keyword does not force-inline > the code, but is only a hint for the compiler. Scrub this hint. > > S

Re: [U-Boot] [PATCH 03/35] net: dwc: Fix cache alignment issues

2014-09-15 Thread Marek Vasut
On Monday, September 15, 2014 at 05:40:54 PM, Dinh Nguyen wrote: > On 09/15/2014 06:05 AM, Marek Vasut wrote: > > Fix remaining cache alignment issues in the DWC Ethernet driver. > > Please note that the cache handling in the driver is making the > > code hideous and thus the next patch cleans that

Re: [U-Boot] [PATCH 05/35] mmc: dw_mmc: cleanups

2014-09-15 Thread Marek Vasut
On Monday, September 15, 2014 at 06:00:47 PM, Dinh Nguyen wrote: > On 09/15/2014 06:05 AM, Marek Vasut wrote: > > From: Pavel Machek > > > > The dw_mmc driver was responding to errors with debug(). Change that > > to prinf()/puts() respectively so that any errors are immediately > > obvious. Also

Re: [U-Boot] [PATCH 10/10] dm: imx: Move cm_fx6 to use driver model for serial and GPIO

2014-09-15 Thread Igor Grinberg
On 09/15/14 15:57, Simon Glass wrote: > Now that serial and GPIO are available for iMX.6, move cm_fx6 over as an > example. > > Signed-off-by: Simon Glass > --- > > board/compulab/cm_fx6/cm_fx6.c | 10 ++ > include/configs/cm_fx6.h | 11 +++ > 2 files changed, 21 insertion

Re: [U-Boot] [PATCH 06/10] dm: imx: Use gpio_request() to request GPIOs

2014-09-15 Thread Igor Grinberg
On 09/15/14 21:04, Simon Glass wrote: > Hi Igor, > > On 15 September 2014 11:13, Igor Grinberg wrote: >> Hi Simon, >> >> On 09/15/14 15:57, Simon Glass wrote: >>> GPIOs should be requested before use. Without this, driver model will not >>> permit the GPIO to be used. [...] >> >> In all the abo

Re: [U-Boot] [PATCH 08/10] dm: imx: gpio: Support driver model in MXC gpio driver

2014-09-15 Thread Igor Grinberg
Hi Simon, On 09/15/14 15:57, Simon Glass wrote: > Add driver model support with this driver. In this case the platform data > is in the driver. It would be better to put this into an SOC-specific file, > but this is best attempted when more boards are moved over to use driver > model. > > Signed-

Re: [U-Boot] Generic bootcmd handling: Missing 'scsi scan'

2014-09-15 Thread Stephen Warren
On 09/15/2014 11:59 AM, Hans de Goede wrote: Hi, On 09/15/2014 07:22 PM, Stephen Warren wrote: On 09/14/2014 12:00 PM, Hans de Goede wrote: Hi Karsten, Thanks for testing this! On 09/14/2014 05:43 PM, Karsten Merker wrote: Hello, I am currently testing the new bootcmd handling introduced a

Re: [U-Boot] [PATCH 06/10] dm: imx: Use gpio_request() to request GPIOs

2014-09-15 Thread Simon Glass
Hi Igor, On 15 September 2014 11:13, Igor Grinberg wrote: > Hi Simon, > > On 09/15/14 15:57, Simon Glass wrote: >> GPIOs should be requested before use. Without this, driver model will not >> permit the GPIO to be used. > > Right. That should have been done from the start... Sorry for that... > A

[U-Boot] [PATCH] imx6: fix pl301_mx6qper1_bch clock gating setup

2014-09-15 Thread Anatolij Gustschin
Current code sets reserved CG1 bits instead of CG6 bits for pl301_mx6qper1_bch clock. Fix it. Signed-off-by: Anatolij Gustschin Cc: Heiko Schocher Cc: Stefan Roese Cc: Tim Harvey --- board/aristainetos/aristainetos.c |2 +- board/barco/titanium/titanium.c |2 +- board/ga

[U-Boot] No boot file defined with u-boot from the xilinx repo

2014-09-15 Thread Manolis Ragkousis
Hello everyone, I am using u-boot from the xilinx repo on github with the zedboard and whenever I start the zedboard I get the "No boot file defined". I have checked that all the variables boot_image kernel_image and devicetree_image are normally set in zynq-common.h. If I use fatload mmc 0 0x300

Re: [U-Boot] [PATCH 07/10] imximage.cfg: Remove copyright header

2014-09-15 Thread Igor Grinberg
On 09/15/14 15:57, Simon Glass wrote: > This seems to break mkimage: > > Invalid imximage commands Type - valid names are: BOOT_FROM, BOOT_OFFSET, > DATA, CSF, IMAGE_VERSION > Error: board/compulab/cm_fx6/imximage.cfg[1] - Invalid command(/*) That is really strange, because there are multiple im

Re: [U-Boot] Generic bootcmd handling: Missing 'scsi scan'

2014-09-15 Thread Hans de Goede
Hi, On 09/15/2014 07:22 PM, Stephen Warren wrote: > On 09/14/2014 12:00 PM, Hans de Goede wrote: >> Hi Karsten, >> >> Thanks for testing this! >> >> On 09/14/2014 05:43 PM, Karsten Merker wrote: >>> Hello, >>> >>> I am currently testing the new bootcmd handling introduced at >>> http://git.denx.de

Re: [U-Boot] Generic bootcmd handling: Missing 'scsi scan'

2014-09-15 Thread Stephen Warren
On 09/14/2014 12:00 PM, Hans de Goede wrote: Hi Karsten, Thanks for testing this! On 09/14/2014 05:43 PM, Karsten Merker wrote: Hello, I am currently testing the new bootcmd handling introduced at http://git.denx.de/?p=u-boot.git;a=commit;h=8cc96848f0a467922820895b6b2363b0c64163b5 on a sunxi-

[U-Boot] [PATCH 35/35] arm: socfpga: nic301: Add NIC-301 configuration code

2014-09-15 Thread Marek Vasut
From: Pavel Machek Add code which configures the AMBA NIC-301 and the SCU on the SoCFPGA . The code sets the access permissions for the CPU to the AMBA slaves such that the CPU can access them in both secure and non-secure mode. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc

[U-Boot] [PATCH 34/35] arm: socfpga: pl310: Map SDRAM to 0x0

2014-09-15 Thread Marek Vasut
Configure the PL310 address filter to make sure DRAM is mapped to 0x0. This code also configures the "remap" register of NIC-301 and sets the required 'mpuzero' bit. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Mach

[U-Boot] [PATCH 33/35] arm: socfpga: nic301: Add NIC-301 GPV register file

2014-09-15 Thread Marek Vasut
Add register definition for the NIC-301 used on SoCFPGA. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- arch/arm/include/asm/arch-socfpga/nic301.h | 195 + 1 file changed, 195

[U-Boot] [PATCH 32/35] arm: socfpga: scu: Add SCU register file

2014-09-15 Thread Marek Vasut
Add the Snoop Control Unit register definition file. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- arch/arm/include/asm/arch-socfpga/scu.h | 23 +++ 1 file changed, 23 insertions(+)

[U-Boot] [PATCH 31/35] arm: socfpga: cache: Enable PL310 L2 cache

2014-09-15 Thread Marek Vasut
Enable the PL310 L2 cache controller support for the SoCFPGA. With the cache related issues resolved, this is safe to be done. Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- include/configs/socfpga_cyclon

Re: [U-Boot] [PATCH 06/10] dm: imx: Use gpio_request() to request GPIOs

2014-09-15 Thread Igor Grinberg
Hi Simon, On 09/15/14 15:57, Simon Glass wrote: > GPIOs should be requested before use. Without this, driver model will not > permit the GPIO to be used. Right. That should have been done from the start... Sorry for that... A question below though.. > > Signed-off-by: Simon Glass > --- > > a

Re: [U-Boot] [PATCH 10/35] arm: socfpga: Add watchdog disable for socfpga

2014-09-15 Thread Dinh Nguyen
On 09/15/2014 06:06 AM, Marek Vasut wrote: > From: Pavel Machek > > This adds watchdog disable. It is neccessary for running Linux kernel. > > Signed-off-by: Pavel Machek > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: Wolfgang

Re: [U-Boot] [PATCH 05/35] mmc: dw_mmc: cleanups

2014-09-15 Thread Dinh Nguyen
On 09/15/2014 06:05 AM, Marek Vasut wrote: > From: Pavel Machek > > The dw_mmc driver was responding to errors with debug(). Change that > to prinf()/puts() respectively so that any errors are immediately > obvious. Also adjust english in comments. > > Signed-off-by: Pavel Machek > Signed-off-b

Re: [U-Boot] [PATCH 03/35] net: dwc: Fix cache alignment issues

2014-09-15 Thread Dinh Nguyen
On 09/15/2014 06:05 AM, Marek Vasut wrote: > Fix remaining cache alignment issues in the DWC Ethernet driver. > Please note that the cache handling in the driver is making the > code hideous and thus the next patch cleans that up. In order to > make this change reviewable though, the cleanup is spl

Re: [U-Boot] [PATCH 25/35] arm: socfpga: fpga: Add SoCFPGA FPGA programming interface

2014-09-15 Thread Wolfgang Denk
Dear Marek Vasut, In message <1410779188-6880-26-git-send-email-ma...@denx.de> you wrote: > From: Pavel Machek > > Add code necessary to program the FPGA part of SoCFPGA from U-Boot > with an RBF blob. This patch also integrates the code into the > FPGA driver framework in U-Boot so it can be us

Re: [U-Boot] [PATCH 01/35] net: Remove unused CONFIG_DW_SEARCH_PHY from configs

2014-09-15 Thread Dinh Nguyen
On 09/15/2014 06:05 AM, Marek Vasut wrote: > From: Pavel Machek > > Remove this symbol from configs, since it's unused. > > Signed-off-by: Pavel Machek > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Albert Aribaud > Cc: Tom Rini > Cc: Wolfgang Denk > Cc: Pavel M

Re: [U-Boot] [PATCH] imx6: add Bachmann OT1200 board

2014-09-15 Thread Stefano Babic
Hi Christian, On 15/09/2014 08:37, Christian Gmeiner wrote: > 2014-09-09 16:41 GMT+02:00 Christian Gmeiner : >> This patch adds support for the OT1200 series of devices. >> >> Following components are used in u-boot: >> + ethernet >> + i2c >> + emmc >> + gpio >> >> The main difference between the

[U-Boot] [PATCH v3] imx: ddr: Move mx6q_4x_mt41j128.cfg to mx6sabresd board

2014-09-15 Thread nitin.garg
From: Nitin Garg Provide cgtqmx6eval board its own variant of ddr setup config file. Move board/freescale/imx/ddr/ mx6q_4x_mt41j128.cfg to board/freescale/mx6sabresd/ as this is was designed for the mx6sabresd board. Signed-off-by: Nitin Garg --- Series-changes: 3 -Provide cgtqmx6eval board it

Re: [U-Boot] [PATCH 12/35] arm: socfpga: clock: Implant order into bit definitions

2014-09-15 Thread Wolfgang Denk
Dear Marek Vasut, In message <1410779188-6880-13-git-send-email-ma...@denx.de> you wrote: > The bit definitions for clock manager are complete chaos. Implement > some basic logical order into them. ... > +#define CLKMGR_BYPASS_MAINPLL_SET(x) (((x) << 0) & 0x0001) > +#define CLKMGR_BYPA

Re: [U-Boot] [PATCH v5 14/14] dm: tegra: Enable driver model for serial

2014-09-15 Thread Otavio Salvador
On Mon, Sep 15, 2014 at 10:54 AM, Tom Rini wrote: > On Tue, Sep 09, 2014 at 01:42:59PM -0600, Simon Glass wrote: >> Hi, >> >> On 4 September 2014 16:27, Simon Glass wrote: >> >> > Use driver model for serial ports. >> > >> > Since Tegra now uses driver model for serial, adjust the definition of >

Re: [U-Boot] boot count feature with eMMC booting

2014-09-15 Thread Tom Rini
On Fri, Sep 12, 2014 at 02:52:05PM +0530, jags gediya wrote: > I want to implement fail-safe booting feature in my project. Basically > my logic is, i will increase any u-boot environment variable each time > and up on successful bring up, i want to decrease the value of that > again. If the value

Re: [U-Boot] [PATCH v5 14/14] dm: tegra: Enable driver model for serial

2014-09-15 Thread Tom Rini
On Tue, Sep 09, 2014 at 01:42:59PM -0600, Simon Glass wrote: > Hi, > > On 4 September 2014 16:27, Simon Glass wrote: > > > Use driver model for serial ports. > > > > Since Tegra now uses driver model for serial, adjust the definition of > > V_NS16550_CLK so that it is clear that this is only use

Re: [U-Boot] Fwd: Recommended SH toolchain

2014-09-15 Thread Tom Rini
On Tue, Sep 02, 2014 at 02:49:36PM +0300, Vasili Galka wrote: > Hi Tom, > > On Thu, Aug 21, 2014 at 2:07 PM, Vasili Galka wrote: > > > Hi Nobuhiro, > > > > I'm trying to verify the correct build of all SH boards in U-Boot. What is > > the recommended toolchain to use? > > > > I tried the one fro

[U-Boot] [PATCH 3/3] ot1200: patch dts with EDID data

2014-09-15 Thread Christian Gmeiner
We support one base print with different panel sizes. In order to keep it simple we use one devicetree for the linux kernel. The timing values for each panel is stored on an i2c EEPROM. This EDID gets transformed to fb_videomode and later stored in the dtb. Signed-off-by: Christian Gmeiner --- b

[U-Boot] [PATCH 2/3] fdt: add fdt_add_display_timings(..) and friends

2014-09-15 Thread Christian Gmeiner
This new function is used to set all display-timings properties based on fb_videomode. display-timings { timing0 { clock-frequency = <2500>; hactive = <640>; vactive = <480>; hback-porch = <48>; hfront-porc

[U-Boot] [PATCH 1/3] edid: add function to convert edid to fb_videomode

2014-09-15 Thread Christian Gmeiner
There may be some custom boards in the field which have an seperate eeprom chip to store edid informations in it. To make use of those edid information in the board code this patch add a function to convert edid to fb_videomode. Signed-off-by: Christian Gmeiner --- common/edid.c | 30 ++

[U-Boot] [PATCH 04/10] dm: serial: Don't require device tree to configure a console

2014-09-15 Thread Simon Glass
Allow serial_find_console_or_panic() to work without a device tree. Signed-off-by: Simon Glass --- drivers/serial/serial-uclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index d04104e..1ac943f 100644 -

[U-Boot] [PATCH 01/10] dm: linker_lists: Add a way to declare multiple objects

2014-09-15 Thread Simon Glass
The existing ll_entry_declare() permits a single element of the list to be added to a linker list. Sometimes we want to add several objects at once. To avoid lots of messy declarations, add a macro to support this. Signed-off-by: Simon Glass --- include/linker_lists.h | 21 +

[U-Boot] [PATCH 09/10] dm: imx: serial: Support driver model in the MXC serial driver

2014-09-15 Thread Simon Glass
Add driver model support with this driver. Boards which use this driver should define platform data in their board files. Signed-off-by: Simon Glass --- drivers/serial/serial_mxc.c | 170 +--- include/serial_mxc.h| 14 2 files changed, 159 i

[U-Boot] [PATCH 10/10] dm: imx: Move cm_fx6 to use driver model for serial and GPIO

2014-09-15 Thread Simon Glass
Now that serial and GPIO are available for iMX.6, move cm_fx6 over as an example. Signed-off-by: Simon Glass --- board/compulab/cm_fx6/cm_fx6.c | 10 ++ include/configs/cm_fx6.h | 11 +++ 2 files changed, 21 insertions(+) diff --git a/board/compulab/cm_fx6/cm_fx6.c b/boar

[U-Boot] [PATCH 07/10] imximage.cfg: Remove copyright header

2014-09-15 Thread Simon Glass
This seems to break mkimage: Invalid imximage commands Type - valid names are: BOOT_FROM, BOOT_OFFSET, DATA, CSF, IMAGE_VERSION Error: board/compulab/cm_fx6/imximage.cfg[1] - Invalid command(/*) Signed-off-by: Simon Glass --- board/compulab/cm_fx6/imximage.cfg | 6 -- 1 file changed, 6 de

[U-Boot] [PATCH 02/10] dm: core: Allow a list of devices to be declared in one step

2014-09-15 Thread Simon Glass
The U_BOOT_DEVICE macro allows the declaration of a single U-Boot device. Add an equivalent macro to declare an array of devices, for convenience. Signed-off-by: Simon Glass --- include/dm/platdata.h | 4 1 file changed, 4 insertions(+) diff --git a/include/dm/platdata.h b/include/dm/plat

[U-Boot] [PATCH 05/10] dm: serial: Put common code into separate functions

2014-09-15 Thread Simon Glass
Avoid duplicating the code which deals with getc() and putc(). It is fairly simple, but may expand later. Signed-off-by: Simon Glass --- drivers/serial/serial-uclass.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/serial/serial-uc

[U-Boot] [PATCH 06/10] dm: imx: Use gpio_request() to request GPIOs

2014-09-15 Thread Simon Glass
GPIOs should be requested before use. Without this, driver model will not permit the GPIO to be used. Signed-off-by: Simon Glass --- arch/arm/imx-common/i2c-mxv7.c | 14 ++ board/compulab/cm_fx6/cm_fx6.c | 9 + board/compulab/cm_fx6/common.c | 3 +++ 3 files changed, 26 in

[U-Boot] [PATCH 08/10] dm: imx: gpio: Support driver model in MXC gpio driver

2014-09-15 Thread Simon Glass
Add driver model support with this driver. In this case the platform data is in the driver. It would be better to put this into an SOC-specific file, but this is best attempted when more boards are moved over to use driver model. Signed-off-by: Simon Glass --- drivers/gpio/mxc_gpio.c | 291

[U-Boot] [PATCH 0/10] dm: imx: Add driver model support for GPIO and serial on cm_fx6

2014-09-15 Thread Simon Glass
This series adjusts the IMX serial and GPIO drivers to support driver model. As an example of its use, the recently-added cm_fx6 board is converted over to driver model. Some minor driver model core changed are required to make this work and these are included with this series. Simon Glass (10):

[U-Boot] [PATCH 03/10] dm: core: Allow device_bind() to used without CONFIG_OF_CONTROL

2014-09-15 Thread Simon Glass
The sequence number support in driver model requires device tree control. It should be skipped if CONFIG_OF_CONTROL is not defined, and should not require functions from fdtdec. Signed-off-by: Simon Glass --- drivers/core/device.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) di

[U-Boot] [PATCH v2 30/30] dm: exynos: cros_ec: Move cros_ec_spi to driver model

2014-09-15 Thread Simon Glass
Adjust this driver to use driver model and move smdk5420 boards over to use it. Signed-off-by: Simon Glass --- Changes in v2: None drivers/misc/cros_ec_spi.c | 68 +++-- include/configs/peach-pit.h | 1 + 2 files changed, 60 insertions(+), 9 deletions(

[U-Boot] [PATCH v2 15/30] dm: spi: Remove SPI_INIT feature

2014-09-15 Thread Simon Glass
This feature provides for init of a single SPI port for the soft SPI feature. It is not really compatible with driver model since it assumes a single SPI port. Also, inserting SPI init into the driver by means of a #define is not very nice. This feature is not used by any active boards, so let's r

[U-Boot] [PATCH v2 12/30] dm: sandbox: spi: Move to driver model

2014-09-15 Thread Simon Glass
Adjust the sandbox SPI driver to support driver model and move sandbox over to driver model for SPI. Signed-off-by: Simon Glass --- Changes in v2: - Correct sandbox's xfer() method signature - Use 'bus' instead of 'dev' to make the API clearer arch/sandbox/include/asm/state.h | 1 + drivers/

[U-Boot] [PATCH v2 23/30] dm: Convert spi_flash_probe() and 'sf probe' to use driver model

2014-09-15 Thread Simon Glass
We want the SPI flash probing feature to operate as a standard driver. Add a driver for the basic probing feature used by most boards. This will be activated by device_probe() as with any other driver. The 'sf probe' command currently keeps track of the SPI slave that it last used. This doesn't wo

[U-Boot] [PATCH v2 24/30] dm: sf: sandbox: Convert SPI flash driver to driver model

2014-09-15 Thread Simon Glass
Convert sandbox's spi flash emulation driver to use driver model. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/include/asm/spi.h | 13 -- arch/sandbox/include/asm/state.h | 1 - drivers/mtd/spi/sandbox.c| 326 +-- include/conf

[U-Boot] [PATCH v2 13/30] dm: spi: Add documentation on how to convert over SPI drivers

2014-09-15 Thread Simon Glass
This README is intended to help maintainers move their SPI drivers over to driver model. It works through the required steps with an example. Signed-off-by: Simon Glass --- Changes in v2: - Update for changes to exynos driver - Fix typos reported by Jagannadha Sutradharudu Teki doc/driver-mode

[U-Boot] [PATCH v2 26/30] dm: spi: Add tests

2014-09-15 Thread Simon Glass
These tests use SPI flash (and the sandbox emulation) to operate. Signed-off-by: Simon Glass --- Changes in v2: - Create a 'spi.bin' file for the SPI tests test/dm/Makefile | 1 + test/dm/spi.c | 47 +++ test/dm/test-dm.sh | 2 ++ 3 files ch

[U-Boot] [PATCH v2 22/30] dm: sf: Add a uclass for SPI flash

2014-09-15 Thread Simon Glass
Add a driver model uclass for SPI flash which supports the common operations (read, write, erase). Since we must keep support for the non-dm interface, some modification of the spi_flash header is required. CONFIG_DM_SPI_FLASH is used to enable driver model for SPI flash. Signed-off-by: Simon Gla

[U-Boot] [PATCH v2 14/30] dm: spi: Rename soft_spi.c to soft_spi_legacy.c

2014-09-15 Thread Simon Glass
Reserve the 'normal' name for use by driver model, and rename the old driver so that it is clear that it is for 'legacy' drivers only. Signed-off-by: Simon Glass --- Changes in v2: None drivers/spi/Makefile | 2 +- drivers/spi/{soft_spi.c => soft_spi_legacy.c} | 0 2 f

[U-Boot] [PATCH v2 25/30] dm: exynos: config: Use driver model for SPI flash

2014-09-15 Thread Simon Glass
Use driver model for exynos5 board SPI flash. Signed-off-by: Simon Glass --- Changes in v2: None include/configs/exynos-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/exynos-common.h b/include/configs/exynos-common.h index 0ec2ed7..47136b3 100644 --- a/include/con

[U-Boot] [PATCH v2 16/30] dm: spi: Add soft_spi implementation

2014-09-15 Thread Simon Glass
Add a new implementation of soft_spi that uses device tree to specify the GPIOs. This will replace soft_spi_legacy for boards which use driver model. Signed-off-by: Simon Glass --- Changes in v2: None doc/device-tree-bindings/spi/soft-spi.txt | 32 drivers/spi/Makefile

[U-Boot] [PATCH v2 27/30] dm: sf: Add tests for SPI flash

2014-09-15 Thread Simon Glass
Add a simple test for SPI that uses SPI flash. It operates by creating a SPI flash file and using the 'sf test' command to test that all operations work correctly. Signed-off-by: Simon Glass --- Changes in v2: None test/dm/Makefile | 1 + test/dm/sf.c | 43

[U-Boot] [PATCH v2 29/30] dm: sandbox: cros_ec: Move sandbox cros_ec to driver module

2014-09-15 Thread Simon Glass
Adjust the sandbox cros_ec emulation driver to work with driver model, and switch over to driver model for sandbox cros_ec. Signed-off-by: Simon Glass --- Changes in v2: None drivers/misc/cros_ec_sandbox.c | 90 +++--- include/configs/sandbox.h | 1 +

[U-Boot] [PATCH v2 28/30] dm: cros_ec: Add support for driver model

2014-09-15 Thread Simon Glass
Add support for driver model if enabled. This involves minimal changes to the code, mostly just plumbing around the edges. Signed-off-by: Simon Glass --- Changes in v2: None common/cros_ec.c | 30 ++ drivers/misc/cros_ec.c | 122 ++

[U-Boot] [PATCH v2 21/30] spi: Use error return value in sf_ops

2014-09-15 Thread Simon Glass
Adjust spi_flash_probe_slave() to return an error value instead of a pointer so we get the correct error return. Have the caller allocate memory for spi_flash to simplify error handling, and also so that driver model can use its existing allocated memory. Add a spi.h include in the sf_params file

[U-Boot] [PATCH v2 02/30] sandbox: Convert SPI flash emulation to use sf_params

2014-09-15 Thread Simon Glass
At present sandbox has its own table of supported SPI flash chips. Now that the SPI flash system is fully consolidated and has its own list, sandbox should use that. This enables us to expand the number of chips that sandbox supports. Signed-off-by: Simon Glass Reviewed-by: Jagannadha Sutradharu

[U-Boot] [PATCH v2 17/30] dm: exynos: Convert SPI to driver model

2014-09-15 Thread Simon Glass
Move the exynos SPI driver over to driver model. This removes quite a bit of boilerplate from the driver, although it adds some for driver model. A few device tree additions are needed to make the SPI flash available. Signed-off-by: Simon Glass --- Changes in v2: - Add additional debug() statem

[U-Boot] [PATCH v2 20/30] sf: Tidy up public and private header files

2014-09-15 Thread Simon Glass
Since spi_flash.h is supposed to be the public API for SPI flash, move private things to sf_internal.h. Also tidy up a few comment nits. Signed-off-by: Simon Glass --- Changes in v2: None board/buffalo/lsxl/lsxl.c | 3 +- common/cmd_sf.c| 1 + drivers/mtd/spi/ramtron.c

[U-Boot] [PATCH v2 11/30] dm: spi: Adjust cmd_spi to work with driver model

2014-09-15 Thread Simon Glass
Driver model uses a different way to find the SPI bus and slave from the numbered devices given on the command line. Adjust the code to suit. Signed-off-by: Simon Glass --- Changes in v2: None common/cmd_spi.c | 34 +++--- 1 file changed, 27 insertions(+), 7 deletio

[U-Boot] [PATCH v2 07/30] dm: spi: Add a uclass for SPI

2014-09-15 Thread Simon Glass
Add a uclass which provides access to SPI buses and includes operations required by SPI. For a time driver model will need to co-exist with the legacy SPI interface so some parts of the header file are changed depending on which is in use. The exports are adjusted also since some functions are not

[U-Boot] [PATCH v2 19/30] sf: Add an empty entry to the parameter list

2014-09-15 Thread Simon Glass
The list is supposed to be terminated with a NULL name, but is not. If a board probes a chip which does not appear in the table, U-Boot will crash (at least on sandbox). Signed-off-by: Simon Glass --- Changes in v2: None drivers/mtd/spi/sf_params.c | 1 + 1 file changed, 1 insertion(+) diff -

[U-Boot] [PATCH v2 18/30] exynos: universal_c210: Move to driver model soft_spi

2014-09-15 Thread Simon Glass
Adjust this board to use the driver model soft_spi implementation. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/dts/exynos4210-universal_c210.dts | 13 board/samsung/universal_c210/universal.c | 52 -- include/configs/s5pc210_universal.h

[U-Boot] [PATCH v2 04/30] sandbox: dts: Add a SPI device and cros_ec device

2014-09-15 Thread Simon Glass
Add a SPI device which can be used for testing SPI flash features in sandbox. Also add a cros_ec device since with driver model the Chrome OS EC emulation will not otherwise be available. Signed-off-by: Simon Glass --- Changes in v2: - Adjust binding to avoid Linux-specific mentions arch/sand

[U-Boot] [PATCH v2 06/30] spi: Add brackets and tidy defines in spi.h

2014-09-15 Thread Simon Glass
Some of the #defines in spi.h are not bracketed. To avoid future mistakes add brackets. Also add an explanatory comment for SPI_CONN_DUAL_... Signed-off-by: Simon Glass Reviewed-by: Jagannadha Sutradharudu Teki --- Changes in v2: None include/spi.h | 24 1 file change

[U-Boot] [PATCH v2 01/30] dm: Fix repeated comment in README

2014-09-15 Thread Simon Glass
A merge error ended up repeating a similar sentence twice. Fix it. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to fix README merge error README | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README b/README index 0a0f528..298e8d6 100644 --- a/README +

[U-Boot] [PATCH v2 08/30] dm: sandbox: Add a SPI emulation uclass

2014-09-15 Thread Simon Glass
U-Boot includes a SPI emulation driver already but it is not explicit, and is hidden in the SPI flash code. Conceptually with sandbox's SPI implementation we have a layer which creates SPI bus transitions and a layer which interprets them, currently only for SPI flash. The latter is actually an em

[U-Boot] [PATCH v2 03/30] sandbox: config: Enable all SPI flash chips

2014-09-15 Thread Simon Glass
Sandbox may as well support everything. This increases the amount of code that is built/tested by sandbox, and also provides access to all the supported SPI flash devices. Signed-off-by: Simon Glass Reviewed-by: Jagannadha Sutradharudu Teki --- Changes in v2: None include/configs/sandbox.h |

[U-Boot] [PATCH v2 09/30] dm: Remove spi_init() from board_r.c when using driver model

2014-09-15 Thread Simon Glass
Driver model does its own init, so we don't need this. There is still a call in board_f.c but it is only enabled by CONFIG_HARD_SPI. It is easy enough to disable that option when converting boards which use it to driver model. Signed-off-by: Simon Glass --- Changes in v2: - Fix a typo in the co

[U-Boot] [PATCH v2 10/30] dm: Add spi.h header to a few files

2014-09-15 Thread Simon Glass
Some files are using SPI functions but not explitly including the SPI header file. Fix this, since driver model needs it. Signed-off-by: Simon Glass --- Changes in v2: - Add spi.h header to dfu_sf.c and some renesas boards board/renesas/sh7752evb/sh7752evb.c | 1 + board/renesas/sh7753evb/sh77

[U-Boot] [PATCH v2 05/30] dm: spi: Move cmd device code into its own function

2014-09-15 Thread Simon Glass
In preparation for changing the error handling in this code for driver model, move it into its own function. Reviewed-by: Jagannadha Sutradharudu Teki Signed-off-by: Simon Glass --- Changes in v2: None common/cmd_spi.c | 53 - 1 file changed

  1   2   >