[U-Boot] [PATCH] lib: fdt: fix indent of #ifdef..#endif conditional

2015-08-01 Thread Masahiro Yamada
Match the depth of indentation between #ifdef and #endif for better readability. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- lib/fdtdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index a954051..48667ef 100644 ---

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-08-01 Thread Peng Fan
On Fri, Jul 31, 2015 at 09:36:45PM -0500, Scott Wood wrote: On Sat, 2015-08-01 at 09:15 +0800, Peng Fan wrote: On Fri, Jul 31, 2015 at 12:07:50PM -0500, Scott Wood wrote: On Tue, 2015-07-21 at 16:15 +0800, Peng Fan wrote: If ecc chunk data size is 512 and oobsize is bigger than 512, there is

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

2015-08-01 Thread Masahiro Yamada
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: - socfpga_arria5_defconfig - socfpga_cyclone5_defconfig But they were

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

2015-08-01 Thread Masahiro Yamada
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) !defined(SPL_OF_CONTROL) # define OF_CONTROL 0 # else #

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

2015-08-01 Thread Masahiro Yamada
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 feature should be supported for SPL or not - Add

Re: [U-Boot] [PATCH 01/16] ARM: remove vpac270 board support

2015-08-01 Thread Simon Glass
Hi Marek, On 28 July 2015 at 09:57, Marek Vasut ma...@denx.de wrote: On Tuesday, July 28, 2015 at 05:53:10 PM, Masahiro Yamada wrote: [...] $ git describe v2015.07-307-g2647394 $ make vpac270_ond_256_defconfig # # configuration written to .config # $ make -s

[U-Boot] [PATCH] arm: Correct comments in crt0.S for the recent SPL improvements

2015-08-01 Thread Simon Glass
The current comments need a bit of tweaking since we now support stack and global_data relocation in SPL. Also add a reference to the README. For AArch64 this is not implemented, so leave a TODO for this. Signed-off-by: Simon Glass s...@chromium.org Reported-by: Tim Harvey thar...@gateworks.com

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:45PM +0900, 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

Re: [U-Boot] [PATCH] drivers: hierarchize drivers Kconfig menu

2015-08-01 Thread Bin Meng
Hi Masahiro, On Sun, Jul 26, 2015 at 1:46 AM, Masahiro Yamada yamada.masah...@socionext.com wrote: The menuconfig for drivers are getting more and more cluttered and unreadable because too many entries are displayed in a single flat menu. Use hierarchic menu for each category.

Re: [U-Boot] [PATCH] dm: serial: Add a REQUIRE_SERIAL_CONSOLE option for boards with no serial port

2015-08-01 Thread Simon Glass
Hi Hans, On 25 July 2015 at 03:58, Hans de Goede hdego...@redhat.com wrote: Currently the serial code assumes that there is always at least one serial port (and panics / crashes due to null pointer dereferences when there is none). This makes it impossible to use u-boot on boards where there

Re: [U-Boot] Pull request: u-boot-arm/master

2015-08-01 Thread Tom Rini
On Fri, Jul 31, 2015 at 03:06:49AM +0200, Albert ARIBAUD wrote: Hello, The following changes since commit cc35734358540a1bbaf042fdf9f4cb2de17389ed: Merge branch 'master' of git://git.denx.de/u-boot-tegra (2015-07-29 18:58:39 -0400) are available in the git repository at:

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:31PM +0900, 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 yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom

Re: [U-Boot] Please pull u-boot-x86

2015-08-01 Thread Tom Rini
On Fri, Jul 31, 2015 at 07:35:23AM -0600, Simon Glass wrote: Hi Tom, A fix for a nasty problem where patman runs twice! The following changes since commit cc35734358540a1bbaf042fdf9f4cb2de17389ed: Merge branch 'master' of git://git.denx.de/u-boot-tegra (2015-07-29 18:58:39 -0400)

Re: [U-Boot] Please pull u-boot-mpc85xx master

2015-08-01 Thread Tom Rini
On Fri, Jul 31, 2015 at 09:00:43AM -0700, York Sun wrote: Tom, The following changes since commit 26473945ad6667183296e7edee2a65edf31bb6f7: Merge branch 'master' of http://git.denx.de/u-boot-sunxi (2015-07-25 09:04:18 -0400) are available in the git repository at:

Re: [U-Boot] [PATCH 01/16] ARM: remove vpac270 board support

2015-08-01 Thread Marek Vasut
On Saturday, August 01, 2015 at 06:08:56 PM, Simon Glass wrote: Hi Marek, Hi! On 28 July 2015 at 09:57, Marek Vasut ma...@denx.de wrote: On Tuesday, July 28, 2015 at 05:53:10 PM, Masahiro Yamada wrote: [...] $ git describe v2015.07-307-g2647394 $ make

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

2015-08-01 Thread Masahiro Yamada
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-off-by: Masahiro Yamada yamada.masah...@socionext.com ---

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

2015-08-01 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None drivers/Makefile| 2 +- drivers/led/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 1baecb4..3188a51 100644 --- a/drivers/Makefile

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

2015-08-01 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None drivers/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 22d316e..1baecb4 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -1,5

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

2015-08-01 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None drivers/Makefile| 2 +- drivers/ram/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 8d4ac06..22d316e 100644 --- a/drivers/Makefile

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

2015-08-01 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None drivers/Makefile| 2 +- drivers/clk/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index dd57849..a1e24c1 100644 --- a/drivers/Makefile

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

2015-08-01 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None drivers/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index a1e24c1..8d4ac06 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -1,8

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

2015-08-01 Thread Masahiro Yamada
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 deprecate those two files. Use $(SPL_) for the entry in the

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

2015-08-01 Thread Masahiro Yamada
There is no case where defined(SPL_DISABLE_OF_CONTROL) is true. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None include/fdtdec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index 4b3f8d1..2681a64

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

2015-08-01 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None drivers/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 3188a51..4901e16 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -1,5

Re: [U-Boot] [PATCH] drivers: hierarchize drivers Kconfig menu

2015-08-01 Thread Bin Meng
Hi Masahiro, On Sat, Aug 1, 2015 at 9:27 PM, Masahiro Yamada yamada.masah...@socionext.com wrote: Hi Bin, Looks like I missed some items.. Anyway, they do not have many drivers below them, so menuconfig is not so messy. Do you want me send v2, or will you send a follow-up patch? I can

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:39PM +0900, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:38PM +0900, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:35PM +0900, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:32PM +0900, 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

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:34PM +0900, 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.

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:40PM +0900, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:41PM +0900, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:43PM +0900, Masahiro Yamada wrote: There is no case where defined(SPL_DISABLE_OF_CONTROL) is true. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:42PM +0900, 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

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:37PM +0900, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:36PM +0900, Masahiro Yamada wrote: Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com Reviewed-by: Tom Rini tr...@konsulko.com -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list

Re: [U-Boot] [PATCH] drivers: hierarchize drivers Kconfig menu

2015-08-01 Thread Masahiro Yamada
Hi Bin, Looks like I missed some items.. Anyway, they do not have many drivers below them, so menuconfig is not so messy. Do you want me send v2, or will you send a follow-up patch? 2015-08-01 20:11 GMT+09:00 Bin Meng bmeng...@gmail.com: Hi Masahiro, On Sun, Jul 26, 2015 at 1:46 AM,

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

2015-08-01 Thread Tom Rini
On Sat, Aug 01, 2015 at 10:14:44PM +0900, 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] drivers: hierarchize drivers Kconfig menu

2015-08-01 Thread Paul Kocialkowski
Le samedi 01 août 2015 à 17:18 +0200, Marek Vasut a écrit : On Saturday, August 01, 2015 at 11:08:10 AM, Paul Kocialkowski wrote: Hi, Le lundi 27 juillet 2015 à 14:33 +0200, Paul Kocialkowski a écrit : Le dimanche 26 juillet 2015 à 02:46 +0900, Masahiro Yamada a écrit : The

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-08-01 Thread Marek Vasut
On Saturday, August 01, 2015 at 08:32:07 PM, Scott Wood wrote: On Sat, 2015-08-01 at 17:18 +0200, Marek Vasut wrote: On Saturday, August 01, 2015 at 07:56:39 AM, Peng Fan wrote: On Fri, Jul 31, 2015 at 09:36:45PM -0500, Scott Wood wrote: On Sat, 2015-08-01 at 09:15 +0800, Peng Fan wrote:

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

2015-08-01 Thread Hans de Goede
Do not add a bogus (pointing to a non existing serial port) stdout-path alias to dts on boards without a serial port. Signed-off-by: Hans de Goede hdego...@redhat.com --- include/configs/sunxi-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/sunxi-common.h

[U-Boot] [PATCH 1/3] sunxi: usb-phy: Never power off the usb ports

2015-08-01 Thread Hans de Goede
USB devices are not really designed to get the power bounced off and on at them. Esp. USB powered harddisks do not like this. Currently we power off the USB ports both on a usb reset and when booting the kernel, causing the usb-power to bounce off and then back on again. This patch removes the

[U-Boot] [PATCH 2/3] sunxi: Add CONFIG_USB0_ID_DET setting to 2 more tablets

2015-08-01 Thread Hans de Goede
Now that we have code to check the id-pin and detect usb-host adapters plugged into the otg port that way, enable it on the tablets which I own. Signed-off-by: Hans de Goede hdego...@redhat.com --- configs/Chuwi_V7_CW0825_defconfig | 1 + configs/UTOO_P66_defconfig| 1 + 2 files changed,

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-08-01 Thread Scott Wood
On Sat, 2015-08-01 at 17:18 +0200, Marek Vasut wrote: On Saturday, August 01, 2015 at 07:56:39 AM, Peng Fan wrote: On Fri, Jul 31, 2015 at 09:36:45PM -0500, Scott Wood wrote: On Sat, 2015-08-01 at 09:15 +0800, Peng Fan wrote: On Fri, Jul 31, 2015 at 12:07:50PM -0500, Scott Wood wrote:

[U-Boot] [PATCH] armv8: ls2085a: Update bootargs as per default target console

2015-08-01 Thread Prabhakar Kushwaha
LS2085 targets supports following UART console LS2085AQDS UART0 LS2085ARDB UART1 LS2085ASim UART0 LS2085AEmu UART0 So update the bootargs as per the default console present at the target Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com ---

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-08-01 Thread Peng Fan
On Sat, Aug 01, 2015 at 01:54:48PM -0500, Scott Wood wrote: On Sat, 2015-08-01 at 20:38 +0200, Marek Vasut wrote: On Saturday, August 01, 2015 at 08:32:07 PM, Scott Wood wrote: On Sat, 2015-08-01 at 17:18 +0200, Marek Vasut wrote: On Saturday, August 01, 2015 at 07:56:39 AM, Peng Fan wrote:

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-08-01 Thread Scott Wood
On Sat, 2015-08-01 at 20:38 +0200, Marek Vasut wrote: On Saturday, August 01, 2015 at 08:32:07 PM, Scott Wood wrote: On Sat, 2015-08-01 at 17:18 +0200, Marek Vasut wrote: On Saturday, August 01, 2015 at 07:56:39 AM, Peng Fan wrote: On Fri, Jul 31, 2015 at 09:36:45PM -0500, Scott Wood

[U-Boot] [RFC PATCH] Makefile: Add SOURCE_DATE_TZ

2015-08-01 Thread Chris Packham
Along with SOURCE_DATE_EPOCH SOURCE_DATE_TZ can be used to recreate a build with a specific date timestamp. This allows the verification of source supplied with a pre-compiled binary. If SOURCE_DATE_EPOCH is supplied SOURCE_DATE_TZ can be used to specify what will appear in the output of the

Re: [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-08-01 Thread Hans de Goede
Hi, On 23-07-15 14:33, Piotr Zierhoffer wrote: This is a basic driver for the sunxi NAND controller for Allwinner A20. It supports only SPL. The driver uses DMA for data transfers. It does not support writing. Thanks for your work on this. I've merged patches 1 - 3 in my sunxi-wip branch,

[U-Boot] [PATCH v2] Makefile: Use correct timezone for U_BOOT_TZ

2015-08-01 Thread Chris Packham
When building with SOURCE_DATE_EPOCH the timezone is in UTC. When building normally the timezone is taken from the build machine's locale setting. Signed-off-by: Chris Packham judge.pack...@gmail.com Tested-by: Bin Meng bmeng...@gmail.com Tested-by: Paul Kocialkowski cont...@paulk.fr --- Changes

Re: [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-08-01 Thread Boris Brezillon
Hi Hans, On Sat, 1 Aug 2015 14:15:53 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 23-07-15 14:33, Piotr Zierhoffer wrote: This is a basic driver for the sunxi NAND controller for Allwinner A20. It supports only SPL. The driver uses DMA for data transfers. It does not support

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

2015-08-01 Thread Masahiro Yamada
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 strategy is, put entries into Makefile.spl for options we need

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

2015-08-01 Thread Masahiro Yamada
If the target string matches CONFIG_, move the pointer p forward. This saves several 7-chars adjustments. Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None scripts/basic/fixdep.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

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

2015-08-01 Thread Masahiro Yamada
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. Here are some macros useful in C/CPP expressions.

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

2015-08-01 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada yamada.masah...@socionext.com --- Changes in v2: None drivers/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 2515aab..dd57849 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -1,7

Re: [U-Boot] [PATCH] drivers: hierarchize drivers Kconfig menu

2015-08-01 Thread Marek Vasut
On Saturday, August 01, 2015 at 11:08:10 AM, Paul Kocialkowski wrote: Hi, Le lundi 27 juillet 2015 à 14:33 +0200, Paul Kocialkowski a écrit : Le dimanche 26 juillet 2015 à 02:46 +0900, Masahiro Yamada a écrit : The menuconfig for drivers are getting more and more cluttered and

Re: [U-Boot] [PATCH resend V2 1/3] mtd: nand: mxs support oobsize bigger than 512

2015-08-01 Thread Marek Vasut
On Saturday, August 01, 2015 at 07:56:39 AM, Peng Fan wrote: On Fri, Jul 31, 2015 at 09:36:45PM -0500, Scott Wood wrote: On Sat, 2015-08-01 at 09:15 +0800, Peng Fan wrote: On Fri, Jul 31, 2015 at 12:07:50PM -0500, Scott Wood wrote: On Tue, 2015-07-21 at 16:15 +0800, Peng Fan wrote: If

Re: [U-Boot] [PATCH v3 0/4] sunxi: nand: Basic NAND driver for SPL

2015-08-01 Thread Scott Wood
On Sat, 2015-08-01 at 14:30 +0200, Boris Brezillon wrote: Hi Hans, On Sat, 1 Aug 2015 14:15:53 +0200 Hans de Goede hdego...@redhat.com wrote: Hi, On 23-07-15 14:33, Piotr Zierhoffer wrote: This is a basic driver for the sunxi NAND controller for Allwinner A20. It supports only

[U-Boot] [PATCH 24/28] ddr: altera: sdram: Clean up sdram_write_verify()

2015-08-01 Thread Marek Vasut
Clean the function up so that it's obvious what it is doing, fix the formating strings in debug outputs, add kerneldoc. Make the function return proper errno-compliant return values and propagate this change throughout sdram.c Signed-off-by: Marek Vasut ma...@denx.de ---

[U-Boot] [PATCH 26/28] ddr: altera: sdram: Minor cleanup in sdram_set_rule()

2015-08-01 Thread Marek Vasut
Zap an obscure unneeded cast and clean other minor nits in this function. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index

[U-Boot] [PATCH 28/28] ddr: altera: sdram: Make sdram_start and sdram_end into u32

2015-08-01 Thread Marek Vasut
Originally, both sdram_start and sdram_end were 64b values. The sdram_start had no reason for being so, since our address space is only 32b, so switching sdram_start to u32 is simple. The sdram_end is a bit more complex, since it can actually be set to (1 32) if someone really wanted to use an

[U-Boot] [PATCH 23/28] ddr: altera: sdram: Clean up sdram_calculate_size() part 2

2015-08-01 Thread Marek Vasut
Clean up coding style, mostly clean up comments, add kerneldoc. Also, zap assignment of the cs variable, which is outright dead code, so just remove it. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 35 --- 1 file changed, 12

[U-Boot] [PATCH 16/28] ddr: altera: sdram: Clean up sdram_mmr_init_full() part 4

2015-08-01 Thread Marek Vasut
Merge sdr_set_*() functions which are just setting registers among the sea of register setting in sdram_mmr_init_full(). There is no need to keep them separate this way, there is nothing special about them. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 98

[U-Boot] [PATCH 21/28] ddr: altera: sdram: Introduce socfpga_sdram_get_config()

2015-08-01 Thread Marek Vasut
Introduce socfpga_sdram_get_config() function implement in a board file, which returns the socfpga_sdram_config structure. This is the last step in cleaning up the socfpga_mmr_init_full(), but not the last step which allows removing the inclusion of sdram.h from drivers/ddr/altera/sdram.c thus

[U-Boot] [PATCH 20/28] ddr: altera: sdram: Clean up sdram_mmr_init_full() part 8

2015-08-01 Thread Marek Vasut
Fix the return value so that standard errno return values can be used. Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/mach-socfpga/include/mach/sdram.h | 2 +- drivers/ddr/altera/sdram.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 17/28] ddr: altera: sdram: Clean up sdram_mmr_init_full() part 5

2015-08-01 Thread Marek Vasut
Rework remaining two register setting functions such that they only return the final register value. Move the register setting into the block of register I/O in sdram_mmr_init_full(). Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 21 +++-- 1 file

[U-Boot] [PATCH 08/28] ddr: altera: sdram: Clean up set_sdr_fifo_cfg()

2015-08-01 Thread Marek Vasut
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH 12/28] ddr: altera: sdram: Introduce socfpga_sdram_config() structure

2015-08-01 Thread Marek Vasut
Introduce this seemingly massive structure, which holds required values of all the registers of the SDRAM controller. The idea here is to avoid including the sdram.h header file, which is full of ad-hoc macros that polute the global namespace. Once the cleanup of sdram.c would be complete and all

[U-Boot] [PATCH 09/28] ddr: altera: sdram: Clean up set_sdr_mp_weight()

2015-08-01 Thread Marek Vasut
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 37 - 1 file changed, 16 insertions(+), 21

[U-Boot] [PATCH 06/28] ddr: altera: sdram: Clean up set_sdr_addr_rw()

2015-08-01 Thread Marek Vasut
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 30 ++ 1 file changed, 10 insertions(+), 20

[U-Boot] [PATCH 15/28] ddr: altera: sdram: Clean up sdram_mmr_init_full() part 3

2015-08-01 Thread Marek Vasut
Pluck out the remaining CONFIG_HPS_SDR_CTRLCFG_ and put it into the socfpga_sdram_config structure. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 67 +++--- 1 file changed, 39 insertions(+), 28 deletions(-) diff --git

[U-Boot] [PATCH 18/28] ddr: altera: sdram: Clean up sdram_mmr_init_full() part 6

2015-08-01 Thread Marek Vasut
Pull out the block of register programming into a separate function. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/ddr/altera/sdram.c

[U-Boot] [PATCH 19/28] ddr: altera: sdram: Clean up sdram_mmr_init_full() part 7

2015-08-01 Thread Marek Vasut
Add kerneldoc. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index 2377b45..295747b 100644 --- a/drivers/ddr/altera/sdram.c +++

[U-Boot] [PATCH 13/28] ddr: altera: sdram: Clean up sdram_mmr_init_full() part 1

2015-08-01 Thread Marek Vasut
Zap all the ad-hoc readbacks from the registers and other useless and broken debug output. This is really not useful and is only confusing. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 44 1 file changed, 44 deletions(-)

[U-Boot] [PATCH 14/28] ddr: altera: sdram: Clean up sdram_mmr_init_full() part 2

2015-08-01 Thread Marek Vasut
Suck out all the CONFIG_HPS_SDR_CTRLCFG_* from sdram_mmr_init_full() into the socfpga_sdram_config structure. There is still one ugly macro left behind, but this will be taken care of in subsequent patch. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 150

[U-Boot] [PATCH 10/28] ddr: altera: sdram: Clean up set_sdr_mp_pacing()

2015-08-01 Thread Marek Vasut
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 37 - 1 file changed, 16 insertions(+), 21

[U-Boot] [PATCH 27/28] ddr: altera: sdram: Minor cleanup in sdram_get_rule()

2015-08-01 Thread Marek Vasut
Fix the data types and zap unnecessary type change. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index da7f27f..22cad88 100644 ---

[U-Boot] [PATCH 22/28] ddr: altera: sdram: Clean up sdram_calculate_size() part 1

2015-08-01 Thread Marek Vasut
Pluck out all of the CONFIG_HPS_SDR_CTRLCFG_* macros. This change makes sdram.c completely clear of these macros and allows removing of the ugly include of sdram.h . The namespace is now a much nicer place! Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 19

[U-Boot] [PATCH 25/28] ddr: altera: sdram: Add missing kerneldoc

2015-08-01 Thread Marek Vasut
Add kerneldoc to functions which are missing it, but are already cleaned up. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index fe2e753..e16f116

[U-Boot] [PATCH 11/28] ddr: altera: sdram: Clean up set_sdr_mp_threshold()

2015-08-01 Thread Marek Vasut
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-)

[U-Boot] [PATCH 01/28] ddr: altera: sdram: Switch to generic_hweight32()

2015-08-01 Thread Marek Vasut
Use generic function instead of CPU-specific one. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index 474df42..9e6acfe 100644 ---

[U-Boot] [PATCH 05/28] ddr: altera: sdram: Clean up set_sdr_dram_timing*()

2015-08-01 Thread Marek Vasut
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Merge set_sdr_dram_timing{1,2,3,4,lowpwr}() into single function set_sdr_dram_timing() , since there's no point in keeping all this stuff separate anymore.

[U-Boot] [PATCH 02/28] ddr: altera: sdram: Clean up compute_errata_rows() part 1

2015-08-01 Thread Marek Vasut
Clean up weird parenthesis and odd type casts from the function. Fix comment style. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c

[U-Boot] [PATCH 03/28] ddr: altera: sdram: Clean up compute_errata_rows() part 2

2015-08-01 Thread Marek Vasut
Remove all parameters of this function, since they are only constants passed in from another function, so make them local. Also, rename the function to get_errata_rows() as this is closer to what it does. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 35

[U-Boot] [PATCH 04/28] ddr: altera: sdram: Clean up set_sdr_ctrlcfg()

2015-08-01 Thread Marek Vasut
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. The big plan here is to remove all the CONFIG_HPS_SDR_ macros, hide them in QTS compatibility layer in board implementation and pass only a small structure

[U-Boot] [PATCH 00/28] socfpga: sdram.c cleanups

2015-08-01 Thread Marek Vasut
This entire series focuses solely on cleaning up the drivers/ddr/altera/sdram.c file. After this series, this one file is totally checkpatch clean and does not pull in any weird qts-generated macros ; all that is wrapped in the board file. This micro-series applies on top of my previous

[U-Boot] [PATCH 07/28] ddr: altera: sdram: Clean up set_sdr_static_cfg()

2015-08-01 Thread Marek Vasut
Get rid of the constant clrsetbits_le32(), instead prepare the whole content of the register once and write it at the end of the function. Signed-off-by: Marek Vasut ma...@denx.de --- drivers/ddr/altera/sdram.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git

Re: [U-Boot] [RFC PATCH] Makefile: Add SOURCE_DATE_TZ

2015-08-01 Thread Paul Kocialkowski
Le samedi 01 août 2015 à 22:32 +1200, Chris Packham a écrit : Along with SOURCE_DATE_EPOCH SOURCE_DATE_TZ can be used to recreate a build with a specific date timestamp. This allows the verification of source supplied with a pre-compiled binary. If SOURCE_DATE_EPOCH is supplied

[U-Boot] [PATCH] ARM: drop optional from target select in favor of ARCH_VERSATILE

2015-08-01 Thread Masahiro Yamada
Since commit a26cd04920dc (arch: Make board selection choices optional), Kconfig could create such an insane .config file that no SoC/board is selected. This is now a real problem for Buildroot, for example. (http://lists.busybox.net/pipermail/buildroot/2015-July/135125.html) This commit drops

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

2015-08-01 Thread Masahiro Yamada
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 target. Signed-off-by: Masahiro Yamada

Re: [U-Boot] [PATCH v3 1/2] arch: Make board selection choices optional

2015-08-01 Thread Masahiro Yamada
Hi Alexey, 2015-07-30 2:32 GMT+09:00 Alexey Brodkin alexey.brod...@synopsys.com: Hi Joe, Masahiro-san, On Wed, 2015-07-29 at 20:25 +0300, Alexey Brodkin wrote: Hi Joe, On Wed, 2015-05-13 at 10:11 +0900, Masahiro Yamada wrote: Hi Joe, 2015-05-13 7:12 GMT+09:00 Tom Rini

Re: [U-Boot] [PATCH 00/20] arm: rpi: Enable USB and Ethernet driver model Raspberry Pi

2015-08-01 Thread Stephen Warren
On 07/28/2015 07:55 AM, Tom Rini wrote: On Mon, Jul 27, 2015 at 09:10:32PM -0600, Stephen Warren wrote: On 07/24/2015 07:44 AM, Tom Rini wrote: On Thu, Jul 23, 2015 at 10:17:29PM -0600, Stephen Warren wrote: On 07/14/2015 09:44 AM, Simon Glass wrote: Hi Stephen, On 13 July 2015 at 22:52,

Re: [U-Boot] [PATCH 00/20] arm: rpi: Enable USB and Ethernet driver model Raspberry Pi

2015-08-01 Thread Stephen Warren
On 07/28/2015 09:44 AM, Simon Glass wrote: On 28 July 2015 at 07:55, Tom Rini tr...@konsulko.com wrote: ... Maybe examples like these are why we will need (and want) to keep platform data as a possibility in our DM work. There's value in keeping the DT that we use as minimal as possible (so

Re: [U-Boot] [PATCH] drivers: hierarchize drivers Kconfig menu

2015-08-01 Thread Paul Kocialkowski
Hi, Le lundi 27 juillet 2015 à 14:33 +0200, Paul Kocialkowski a écrit : Le dimanche 26 juillet 2015 à 02:46 +0900, Masahiro Yamada a écrit : The menuconfig for drivers are getting more and more cluttered and unreadable because too many entries are displayed in a single flat menu. Use

Re: [U-Boot] [PATCH] patman: Don't run patman when it is imported as a module

2015-08-01 Thread Chris Packham
On Sat, Aug 1, 2015 at 12:06 AM, Simon Glass s...@chromium.org wrote: Hi Chris, On 30 July 2015 at 23:34, Chris Packham judge.pack...@gmail.com wrote: Hi Simon, On Fri, Jul 31, 2015 at 7:47 AM, Simon Glass s...@chromium.org wrote: Commit 488d19c (patman: add distutils based installer) has

Re: [U-Boot] [PATCH] Makefile: Use correct timezone for U_BOOT_TZ

2015-08-01 Thread Chris Packham
(note I had some patman config that erroneously included extra people on the original Cc list, I've now dropped them) On Sat, Aug 1, 2015 at 5:05 AM, Paul Kocialkowski cont...@paulk.fr wrote: Le vendredi 31 juillet 2015 à 22:04 +1200, Chris Packham a écrit : When building with SOURCE_DATE_EPOCH