Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-03-24 Thread Wolfgang Denk
Dear Olliver Schinagl, In message <5330b4c9.10...@schinagl.nl> you wrote: > > > sr32() is not defined anywhere. > it should be defined in > arch/arm/include/asm/arch-sunxi/sys_proto.h > and comes from > arch/arm/cpu/armv7/syslib.c Please avoid using sr32() alltogether. It is basically only used

[U-Boot] [PATCH 2/2] powerpc/T208xRDB: add mtdparts suppport

2014-03-24 Thread Shengzhou Liu
We use dynamical mtdparts partition instead of directly puting mtd partitions nodes in device tree. Signed-off-by: Shengzhou Liu --- Verified on T2080RDB. include/configs/T208xRDB.h | 16 1 file changed, 16 insertions(+) diff --git a/include/configs/T208xRDB.h b/include/config

[U-Boot] [PATCH 1/2] powerpc/T208xQDS: add mtdparts suppport

2014-03-24 Thread Shengzhou Liu
We use dynamical mtdparts partition instead of directly puting mtd partitions nodes in device tree. Signed-off-by: Shengzhou Liu --- Verified on T2080QDS. include/configs/T208xQDS.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/configs/T208xQDS.h b/include/confi

Re: [U-Boot] [PATCH v7] socfpga: Adding Scan Manager driver

2014-03-24 Thread Michal Simek
Hi Chin, On 03/24/2014 04:21 PM, Chin Liang See wrote: > Hi Michal, > > On Wed, 2014-03-12 at 15:54 +0100, Michal Simek wrote: >> On 03/12/2014 03:45 PM, Chin Liang See wrote: >>> Hi guys, >>> >>> Any ACK or further comments? >> >> I still have a comment that you should at least rename your socfp

Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-03-24 Thread Olliver Schinagl
On 03/24/2014 09:52 PM, Marek Vasut wrote: On Friday, March 21, 2014 at 10:54:18 PM, Ian Campbell wrote: This has been stripped back for mainlining and supports only sun7i. These changes are not useful by themselves but are split out to make the patch sizes more manageable. [...] +int clock_i

[U-Boot] Numbered GPIO patch for exynos

2014-03-24 Thread Simon Glass
Hi Rajeshwari, I recall you mentioning that this patch has not made it to mainline yet. Do you know who is working on it please? Regards, Simon ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] ARM: tegra: pack pinmux data tables tighter

2014-03-24 Thread Simon Glass
Hi Stephen, On 21 March 2014 14:58, Stephen Warren wrote: > From: Stephen Warren > > Use smaller fields in the Tegra pinmux structures in order to pack the > data tables into a smaller space. This saves around 1-3KB for the SPL > and around 3-8KB for the main build of U-Boot, depending on the bo

Re: [U-Boot] [PATCH V2 11/13] ARM: tegra: Tegra30 pinmux cleanup

2014-03-24 Thread Simon Glass
On 21 March 2014 11:28, Stephen Warren wrote: > From: Stephen Warren > > This renames all the pinmux pins, drive groups, and functions so they > have a prefix which matches the type name. These lists are also auto- > generated using scripts that were also used to generate the kernel > pinctrl dri

Re: [U-Boot] [PATCH V2 10/13] ARM: tegra: Tegra20 pinmux cleanup

2014-03-24 Thread Simon Glass
Hi Stephen, On 21 March 2014 11:28, Stephen Warren wrote: > From: Stephen Warren > > This renames all the Tegra20 pinmux pins and functions so they have a > prefix which matches the type name. > > The entries in tegra20_pingroups[] are all updated to remove the columns > which are no longer used

Re: [U-Boot] [PATCH V2 09/13] ARM: tegra: use clrsetbits_le32 in pinmux driver

2014-03-24 Thread Simon Glass
Hi Stephen, On 21 March 2014 11:28, Stephen Warren wrote: > From: Stephen Warren > > This removes a bunch of open-coded register IO, masking, and shifting. > I would have squashed this into "ARM: tegra: pinctrl: remove duplication" > except that keeping it a separate commit allows easier bisecti

Re: [U-Boot] [PATCH V2 08/13] ARM: tegra: pinmux naming consistency fixes

2014-03-24 Thread Simon Glass
On 21 March 2014 11:28, Stephen Warren wrote: > From: Stephen Warren > > Clean up the naming of pinmux-related objects: > * Refer to drive groups rather than pad groups to match the Linux kernel. > * Ensure all pinmux API types are prefixed with pmux_, values (defines) > are prefixed with PMUX_

Re: [U-Boot] [PATCH V2 06/13] ARM: tegra: pinctrl: remove duplication

2014-03-24 Thread Simon Glass
Hi Stephen, On 21 March 2014 11:28, Stephen Warren wrote: > From: Stephen Warren > > Much of arch/arm/cpu/tegra*-common/pinmux.c is identical. Remove the > duplication by creating pinmux-common.c for all the identical code. > > This leaves: > * arch/arm/include/asm/arch-tegra*/pinmux.h defining

Re: [U-Boot] [PATCH V2 05/13] ARM: tegra: use apb_misc.h in more places

2014-03-24 Thread Simon Glass
On 21 March 2014 11:28, Stephen Warren wrote: > From: Stephen Warren > > Tegra's "APB misc" register region contains various miscellaneous > registers and the Tegra pinmux registers. Some code that touches the > misc registers currently uses struct pmux_tri_ctlr, which is intended to > be a defin

Re: [U-Boot] [PATCH] arm: Handle .gnu.hash section in ldscripts

2014-03-24 Thread Simon Glass
On 26 January 2014 20:48, Andreas Färber wrote: > Avoids "could not find output section .gnu.hash" ld.bfd errors on openSUSE. > > Cc: Albert Aribaud > Cc: Tom Rini > Signed-off-by: Andreas Färber Acked-by: Simon Glass Tested on snow Tested-by: Simon Glass before: $ crosfw -b daisy Config

Re: [U-Boot] [PATCH 1/2] board: ecovec: fix debug LEDs pin direction

2014-03-24 Thread Nobuhiro Iwamatsu
Applied, thanks! Best regards, Nobuhiro 2014-03-17 23:14 GMT+09:00 Baruch Siach : > All pins should be output. > > Signed-off-by: Baruch Siach > --- > board/renesas/ecovec/ecovec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/board/renesas/ecovec/ecovec.c b/board/r

Re: [U-Boot] [PATCH 2/2] board: ecovec: fix USB0 clock enable

2014-03-24 Thread Nobuhiro Iwamatsu
Applied, thanks! Best regards, Nobuhiro 2014-03-17 23:14 GMT+09:00 Baruch Siach : > Enable USB0 clock by resetting bit 20 of MSTPCR2. Leave other bits unchanged. > > Signed-off-by: Baruch Siach > --- > board/renesas/ecovec/ecovec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

Re: [U-Boot] [PATCH v4 2/4] cpu: exynos4: add ace sha base address

2014-03-24 Thread Minkyu Kang
On 24/03/14 16:44, Przemyslaw Marczak wrote: > Hello Minkyu, > > On 03/22/2014 04:18 PM, Minkyu Kang wrote: >> Dear Przemyslaw Marczak, >> >> >> On 21 March 2014 17:56, Przemyslaw Marczak wrote: >> >>> Signed-off-by: Przemyslaw Marczak >>> Cc: Minkyu Kang >>> >>> --- >>> Changes v3: >>> - new c

Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-03-24 Thread Marek Vasut
On Monday, March 24, 2014 at 11:42:17 PM, Olliver Schinagl wrote: > On 03/24/2014 09:52 PM, Marek Vasut wrote: > > On Friday, March 21, 2014 at 10:54:18 PM, Ian Campbell wrote: > >> This has been stripped back for mainlining and supports only sun7i. > >> These changes are not useful by themselves b

Re: [U-Boot] [PATCH] kbuild: create a build directory automatically for out-of-tree build

2014-03-24 Thread Simon Glass
+Tom On 23 March 2014 22:55, Masahiro Yamada wrote: > Prior to Kbuild, the build system created a build directory, > when it did not exist, for out-of-tree build. > > This feature was dropped when we switched to Kbuild > because many of lines in makefiles were copied from Linux Kernel. > (In Lin

Re: [U-Boot] [PATCH v2 5/9] sunxi: generic sun7i build infrastructure.

2014-03-24 Thread Marek Vasut
On Friday, March 21, 2014 at 10:54:22 PM, Ian Campbell wrote: > This has been stripped back for mainlining and supports only sun7i booting > via FEL mode. These changes are not useful by themselves but are split out > to make the patch sizes more manageable. > > As well as the following signed-off

Re: [U-Boot] [PATCH v2 1/9] sunxi: initial sun7i clocks and timer support.

2014-03-24 Thread Marek Vasut
On Friday, March 21, 2014 at 10:54:18 PM, Ian Campbell wrote: > This has been stripped back for mainlining and supports only sun7i. These > changes are not useful by themselves but are split out to make the patch > sizes more manageable. [...] > +int clock_init(void) > +{ > + struct sunxi_ccm

Re: [U-Boot] [PATCH v2 8/9] sunxi: mmc support

2014-03-24 Thread Marek Vasut
On Friday, March 21, 2014 at 10:54:25 PM, Ian Campbell wrote: > As well as the following signed-off-by the sunxi branch shows commits to > these files authored by the following: > Stefan Roese > Tom Cubie > yemao > > Signed-off-by: Henrik Nordstrom > Signed-off-by: Luke Leighton > Signed-o

Re: [U-Boot] [PATCH v2 2/9] sunxi: initial sun7i pinmux and gpio support

2014-03-24 Thread Marek Vasut
On Friday, March 21, 2014 at 10:54:19 PM, Ian Campbell wrote: [...] > diff --git a/arch/arm/cpu/armv7/sunxi/pinmux.c > b/arch/arm/cpu/armv7/sunxi/pinmux.c new file mode 100644 > index 000..8f5cbfe > --- /dev/null > +++ b/arch/arm/cpu/armv7/sunxi/pinmux.c > @@ -0,0 +1,80 @@ > +/* > + * (C) Copy

Re: [U-Boot] [RFC PATCH 04/17] kconfig: add defconfig files for all boards

2014-03-24 Thread Daniel Schwierzeck
2014-03-24 7:35 GMT+01:00 Masahiro Yamada : > > Thanks for your effort. I think basicly we're going to the right direction. > But I am afraind more careful check is necessary before posting the > series. > > > I did build test on your patches on kconfig-support branch. > I noticed many boards would

[U-Boot] Need some help setting default DRAM clock to a lower value

2014-03-24 Thread Ratin
Hi I am working on a project with cubie2 boards loading linux (Patricks nand boot loader patch, and kernel 3.3.0+ and ubuntu linaro 13.04 distro). I have met with stability issues (lock-up) and as I dug deeper, a number of other people have also complained about lockup issue relating to high DRA

[U-Boot] [PATCH v3] arm: Add support for semihosting for armv8 fastmodel targets.

2014-03-24 Thread Darwin Rambo
The reason for this change is to be able to use the ARM Trusted Firmware (ATF) to load the various ATF images, plus u-boot, which can then load the kernel/ramdisk/dtb with calls to an external host from a standard fastmodel armv8 board file using semihosting, and then launch the kernel without a bo

[U-Boot] [PATCH 1/6] Add an info word to commands

2014-03-24 Thread Simon Glass
In cmd_bootm.c the function pointer is misused as a flags word. It is better to add a flag word to each command, so that bootm can avoid this hack. To avoid increasing the size of the U-Boot binary, we can re-use the existing 'repeatable' flag, which only needs a single bit. Signed-off-by: Simon

[U-Boot] [PATCH 5/6] main: Process FDT options even without CONFIG_BOOTDELAY

2014-03-24 Thread Simon Glass
At present when this option is not defined, we do not process the FDT options - for example we do not run the boot command specified by the FDT. Move this code into the common function and make sure it is always called when CONFIG_OF_CONTROL is defined. Signed-off-by: Simon Glass --- common/mai

[U-Boot] [PATCH 2/6] Refactor command macros so they can compile to nothing

2014-03-24 Thread Simon Glass
Commands are declared entirely within a macro, like this: U_BOOT_CMD(...); Sub-commands are not the same. At present the U_BOOT_CMD_MKENT() macro is used within an array declaration, but the array itself is not handled by macros. We have this: static cmd_tbl_t table[] = { U_BOOT_CMD_MKEN

[U-Boot] [PATCH 4/6] main: Exclude getline code when CONFIG_CMDLINE is not defined

2014-03-24 Thread Simon Glass
It would be better to split common/main.c into a few chunks: readline, the standard parser and the real main. However such a change is fairly invasive. For now, use #ifdef to remove the unwanted code. This helps to reduce the image size by removing unwanted code. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH 6/6] sandbox: Add board_run_command() function

2014-03-24 Thread Simon Glass
Add a simple board_run_command() function for sandbox. It does nothing except print the command that would be executed. This can be extended to perform actual tasks. Signed-off-by: Simon Glass --- board/sandbox/sandbox/sandbox.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/bo

[U-Boot] [PATCH 3/6] Add CONFIG_CMDLINE to allow removal of all commands

2014-03-24 Thread Simon Glass
A large chunk of the U-Boot code is the command line. For some applications this is not needed, since the boot can be controlled by a board-specific hard-coded boot procedure. This saves a significant amount of space. This makes U-Boot proper look a little more like SPL in terms of size. Signed-o

[U-Boot] [PATCH 0/6] Adjust command macros to allow smaller U-Boot size

2014-03-24 Thread Simon Glass
A large chunk of U-Boot's executable size is the code to process and execute commands. This is reasonable, since commands and scripts are an important part of U-Boot's feature set and provide much of its flexibility. However, for some applications only a very limited set of commands is required. W

Re: [U-Boot] [PATCH v7] socfpga: Adding Scan Manager driver

2014-03-24 Thread Chin Liang See
Hi Michal, On Wed, 2014-03-12 at 15:57 +0100, Michal Simek wrote: > On 03/05/2014 05:05 PM, Chin Liang See wrote: > > Scan Manager driver will be called to configure the IOCSR > > scan chain. This configuration will setup the IO buffer settings > > > > Signed-off-by: Chin Liang See > > Cc: Dinh

Re: [U-Boot] [PATCH v7] socfpga: Adding Scan Manager driver

2014-03-24 Thread Chin Liang See
Hi Michal, On Wed, 2014-03-12 at 15:54 +0100, Michal Simek wrote: > On 03/12/2014 03:45 PM, Chin Liang See wrote: > > Hi guys, > > > > Any ACK or further comments? > > I still have a comment that you should at least rename your socfpga board name > to something better because currently it is mor

Re: [U-Boot] [PATCH v6] nand/denali: Adding Denali NAND driver support

2014-03-24 Thread Chin Liang See
Hi Mashiro, On Wed, 2014-03-19 at 20:26 +0900, Masahiro Yamada wrote: > Hi Chin, > > > > --- /dev/null > > +++ b/drivers/mtd/nand/denali.c > > @@ -0,0 +1,1132 @@ > > +/* > > + * Copyright (C) 2013-2014 Altera Corporation > > + * Copyright (C) 2009-2010, Intel Corporation and its suppliers. > >

[U-Boot] [PATCH v7] nand/denali: Adding Denali NAND driver support

2014-03-24 Thread Chin Liang See
To add the Denali NAND driver support into U-Boot. It required information such as register base address from configuration header file within include/configs folder. Signed-off-by: Chin Liang See Cc: Artem Bityutskiy Cc: David Woodhouse Cc: Brian Norris Cc: Scott Wood Cc: Masahiro Yamada -

[U-Boot] [PATCH] powerpc/t4240: updated RCW and PBI for rev2.0

2014-03-24 Thread shh.xie
From: Shaohui Xie Also, remove workaround of rev1.0. Signed-off-by: Shaohui Xie --- board/freescale/t4qds/t4_pbi.cfg | 14 -- board/freescale/t4qds/t4_rcw.cfg | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/board/freescale/t4qds/t4_pbi.cfg b/board/freesca

[U-Boot] [PATCH] axs101 - increase EEPROM page write delay from 32 to 64 msec

2014-03-24 Thread Alexey Brodkin
With 32 milliseconds delay on some boards EEMPROM got written inconsistently. With 64 msec all of our existig boards show properly written EEPROM. Cc: Tom Rini Signed-off-by: Alexey Brodkin --- include/configs/axs101.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include

[U-Boot] Pull request: u-boot-mmc 24032014

2014-03-24 Thread Pantelis Antoniou
Hi Tom, The following changes since commit 2c072c958bb544c72f0e848375803dbd6971f022: sandbox: config: Enable cros_ec emulation and related items (2014-03-17 20:05:50 -0600) are available in the git repository at: git://git.denx.de/u-boot-mmc.git master for you to fetch changes up to eea4e

Re: [U-Boot] [RFC] ARM: U-boot and 2 GiB of ram with get_ram_size only being long

2014-03-24 Thread Olliver Schinagl
Hey all, *ping* On 10/21/2013 09:44 PM, Wolfgang Denk wrote: Dear Scott Wood, In message <1382138723.7979.928.ca...@snotra.buserror.net> you wrote: And the one 64-bit environment that we're about to have in U-Boot (armv8) has discontiguous memory, which is another case where get_ram_size() w

Re: [U-Boot] [PATCH] we don't went version control for .cmd files

2014-03-24 Thread Pavel Machek
Hi! > > .cmd files should not be version-controlled. > > > > Signed-off-by: Pavel Machek > > > > diff --git a/.gitignore b/.gitignore > > index a163728..77fb2c8 100644 > > --- a/.gitignore > > +++ b/.gitignore > > @@ -15,6 +15,7 @@ > > *.swp > > *.patch > > *.bin > > +*.cmd > > > > #

Re: [U-Boot] Query on u-boot

2014-03-24 Thread Jagan Teki
On Mon, Mar 24, 2014 at 9:31 AM, S Durga Prasad Paladugu wrote: > Hi, > > I have a below query on u-boot bootup. > > When UBOOT does not detect NOR flash during bootup it throws up an error > message that indicates that uboot did not detect NOR flash and stops > there. > But when uboot does not d

Re: [U-Boot] [PATCH] kbuild: out-of-tree build issues

2014-03-24 Thread Masahiro Yamada
Hi Wolfgang, > I notice an issues with out of tree builds in current top of tree > code: "make O=${SOMEDIR} distclean" leaves files around: > > -> rm -fr ${SOMEDIR} > -> mkdir -p ${SOMEDIR} > -> make -s O=${SOMEDIR} TQM5200S_config > Configuring for TQM5200S - Board: TQM5

Re: [U-Boot] [linux-sunxi] [PATCH v2 0/9] sunxi: initial upstreamining effort

2014-03-24 Thread Ian Campbell
On Mon, 2014-03-24 at 01:14 +0100, Henrik Nordström wrote: > fre 2014-03-21 klockan 21:54 + skrev Ian Campbell: > > > I've tried to give corect credit and S-o-b based upon: > > git log --pretty='%aN' linux-sunxi/sunxi -- [PATHS] | sort -u > > git log linux-sunxi/sunxi -- [PATHS] | grep -i

[U-Boot] [PATCH] mmc: fsl_esdhc: add controller reset in case of data related errors too

2014-03-24 Thread Andrew Gabbasov
The controller reset is performed now if command error occurs. This commit adds the reset for the case of data related errors too. Signed-off-by: Andrew Gabbasov --- drivers/mmc/fsl_esdhc.c | 63 +++ 1 file changed, 36 insertions(+), 27 deletions(-)

[U-Boot] [PATCH] mmc: fsl_esdhc: fix calculation of timeout for data transactions

2014-03-24 Thread Andrew Gabbasov
Calculation of the timeout value should be based on actual clock value, written to controller registers. Since mmc->tran_speed is either the maximum allowed speed, or the preliminary value, that is be not yet set to registers, the actual timeout, taken by the controller, based on its clock settings

Re: [U-Boot] [RFC PATCH 0/17] Version 0 of Kconfig for U-Boot

2014-03-24 Thread Masahiro Yamada
Hi Wolfgang, On Mon, 24 Mar 2014 08:30:56 +0100 Wolfgang Denk wrote: > Dear Masahiro, > > In message <20140324145814.b35f.aa925...@jp.panasonic.com> you wrote: > > > > You are suggesting a better idea below. > > We should not treat SPL as a special case. > > > > In my opinion, CONFIG_SPL_* s

Re: [U-Boot] [PATCH] kbuild: out-of-tree build issues

2014-03-24 Thread Wolfgang Denk
Dear Masahiro, I notice an issues with out of tree builds in current top of tree code: "make O=${SOMEDIR} distclean" leaves files around: -> rm -fr ${SOMEDIR} -> mkdir -p ${SOMEDIR} -> make -s O=${SOMEDIR} TQM5200S_config Configuring for TQM5200S - Board: TQM5200,

[U-Boot] [PATCH] mmc: Handle switch error status bit in MMC card status

2014-03-24 Thread Andrew Gabbasov
MMC switch command for unsupported feature (e.g. bus width) sets a switch error bit in card status. This bit should be checked, and, if it's set, no access with new controller settings should be performed. Signed-off-by: Andrew Gabbasov --- drivers/mmc/mmc.c |4 +++- include/mmc.h |2

[U-Boot] [PATCH] driver/net/fm/memac_phy: Initialize mdio_clock for SoCs wih FMANv3

2014-03-24 Thread Priyanka Jain
MDIO clock needs to be initialized in u-boot code for SoCs having FMAN-v3(v3H or v3L) controller due to below reasons -On SoCs that have FMAN-v3H like B4860, default value of MDIO_CLK_DIV bits in mdio_stat(mdio_cfg) register generates mdio clock too high (much higher than 2.5MHz), violating the I

Re: [U-Boot] [PATCH v4 2/4] cpu: exynos4: add ace sha base address

2014-03-24 Thread Przemyslaw Marczak
Hello Minkyu, On 03/22/2014 04:18 PM, Minkyu Kang wrote: Dear Przemyslaw Marczak, On 21 March 2014 17:56, Przemyslaw Marczak wrote: Signed-off-by: Przemyslaw Marczak Cc: Minkyu Kang --- Changes v3: - new commit - after separate changes from next commit Changes v4: - none --- arch/arm/

Re: [U-Boot] [RFC PATCH 0/17] Version 0 of Kconfig for U-Boot

2014-03-24 Thread Wolfgang Denk
Dear Masahiro, In message <20140324145814.b35f.aa925...@jp.panasonic.com> you wrote: > > You are suggesting a better idea below. > We should not treat SPL as a special case. > > In my opinion, CONFIG_SPL_* should be discontinued. > > For example, we can merge CONFIG_SPL_TEXT_BASE > to CONFIG_S