[U-Boot] [PATCH v3 1/4] kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED

2014-03-05 Thread Masahiro Yamada
Many (but not all) of Blackfin boards give -O2 option to compile under lib/ directory. That means lib/ should be speed-optimized, whereas other parts should be size-optimized. We want to keep the same behavior, but do not want to parse board/*/config.mk again and again. We've got no choice but to

[U-Boot] [PATCH v3 0/4] Big acceleration of Kbuild performance

2014-03-05 Thread Masahiro Yamada
Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause is in $(call cc-option,...). Historically, U-Boot parses all config.mk (arch/*/config.mk and board/*/config.mk)

[U-Boot] [PATCH v3 4/4] kbuild: improve Kbuild speed

2014-03-05 Thread Masahiro Yamada
Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass. After some discussions and analysis, it turned out its main cause is in $(call cc-option,...). Historically, U-Boot parses all config.mk (arch/*/config.mk and board/*/config.mk)

[U-Boot] [PATCH v3 3/4] config.mk: specify the exact path to standalone linker script

2014-03-05 Thread Masahiro Yamada
We want to change the build system to include config.mk only from ./Makefile and spl/Makefile. We must prepare for that in this commit. $(src) is a moving target and not handy for our purpose. We must replace it with a fixed path. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com ---

[U-Boot] [PATCH v3 2/4] kbuild: add CONFIG_ prefix to USE_PRIVATE_LIBGCC

2014-03-05 Thread Masahiro Yamada
Before this commit, USE_PRIVATE_LIBGCC was defined in arch-specific config.mk and referenced in arch/$(ARCH)/lib/Makefile. We are not happy about parsing config.mk again and again. We have to keep the same behavior with a different way. By adding CONFIG_ prefix, this macro appears in

[U-Boot] [PATCH] mips: move CONFIG_MIPS{32, 64} definition to config.mk

2014-03-05 Thread Masahiro Yamada
All mip32 boards define CONFIG_MIPS32 in config headers except malta board which defines it in boards.cfg. We can consolidate them by defining it in arch/mips/cpu/mips32/config.mk. CONFIG_MIPS64 definition can be moved to arch/mips/cpu/mips64/config.mk as well. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH v2] mips: move CONFIG_MIPS{32, 64} definition to config.mk

2014-03-05 Thread Masahiro Yamada
All mips32 boards define CONFIG_MIPS32 in config headers except malta boards which define it in boards.cfg. We can consolidate them by defining it in arch/mips/cpu/mips32/config.mk. CONFIG_MIPS64 definition can be moved to arch/mips/cpu/mips64/config.mk as well. Signed-off-by: Masahiro Yamada

[U-Boot] [PATCH] powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260

2014-03-05 Thread Masahiro Yamada
Before this commit, CONFIG_MPC8260 and CONFIG_8260 were used mixed-up. All boards with mpc8260 cpu defined both of them: - CONFIG_MPC8260 was defined in board config headers and include/common.h - CONFIG_8260 was defined arch/powerpc/cpu/mpc8260/config.mk We do not need to have both of

[U-Boot] [PATCH 3/3] net/phy: Add support for CS4315/CS4340 PHY

2014-03-05 Thread Shengzhou Liu
Add support for Cortina CS4315/CS4340 10G PHY. - This driver loads CS43xx firmware to initialize Cortina PHY. - To define macro CONFIG_PHY_CORTINA will enable this driver. - Cortina PHY has non-standard offset of PHY ID registers, so define own get_phy_id function. Signed-off-by: Shengzhou Liu

[U-Boot] [PATCH 2/3] net/phy: update get_phy_device_by_mask to probe more 10G PHY

2014-03-05 Thread Shengzhou Liu
In function get_phy_device_by_mask(), when trying Clause 45, we should extend the value of devad(used in create_phy_by_mask) to zero to cover more PHYs (e.g. devad must be 0 for CS4315 PHY). Signed-off-by: Shengzhou Liu shengzhou@freescale.com --- drivers/net/phy/phy.c | 4 ++-- 1 file

[U-Boot] [PATCH] malta: correct tcl script path in README.malta

2014-03-05 Thread James Hogan
README.malta referred to board/malta, but malta has now been moved within board/imgtec/, so correct the path. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc: Paul Burton paul.bur...@imgtec.com --- doc/README.malta | 2 +- 1 file

[U-Boot] [PATCH 0/3] samsung: Add mmc controller to use dw mmc

2014-03-05 Thread Beomho Seo
This patch set for use dw mmc controller. First, add dw mmc controller initialization. And then, change exynos4 mmc gpio configuration. Additionally, I have removed exynos4x12_set_mmc_clk function. Because samsung_get_base_clock() (exynos4x12/ exynos4) return same value. This patch set is tested

[U-Boot] [PATCH 1/3] board: samsung: trats2: Add DW MMC controller initialization

2014-03-05 Thread Beomho Seo
Add DW MMC controller initialization. Selectively use DW MMC controller instead of SDHCI controller. Signed-off-by: Beomho Seo beomho@samsung.com Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Cc: Minkyu Kang mk7.k...@samsung.com --- board/samsung/trats2/trats2.c | 31

[U-Boot] [PATCH 2/3] arm: exynos: pinmux: Add sdmmc4 gpio configuration

2014-03-05 Thread Beomho Seo
For use dwmmc controller, add SDMMC4 gpio configuration. Signed-off-by: Beomho Seo beomho@samsung.com Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Cc: Minkyu Kang mk7.k...@samsung.com --- arch/arm/cpu/armv7/exynos/pinmux.c | 20 +++- 1 file changed, 15 insertions(+),

Re: [U-Boot] FW: [PATCH v2] socfpga: Adding Clock Manager driver

2014-03-05 Thread Chin Liang See
Hi Pavel, Hi! Clock Manager driver will be called to reconfigure all the clocks setting based on user input. The input are passed to Preloader through handoff files Signed-off-by: Chin Liang See cl...@altera.com Cc: Albert Aribaud albert.u.b...@aribaud.net Cc: Tom Rini tr...@ti.com Cc:

[U-Boot] [PATCH 3/3] arm: exynos: clock: Remove exynos4x12_set_mmc_clk function

2014-03-05 Thread Beomho Seo
Remove exynos4x12_set_mmc_clk. Signed-off-by: Beomho Seo beomho@samsung.com Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Cc: Minkyu Kang mk7.k...@samsung.com --- arch/arm/cpu/armv7/exynos/clock.c | 29 + 1 file changed, 1 insertion(+), 28 deletions(-)

[U-Boot] [PATCH 1/2] kbuild: move checkthumb to ARM archprepare

2014-03-05 Thread Masahiro Yamada
checkthumb makes sense only for ARM architecture. Move it to arch/arm/config.mk. To make sure gcc supports THUMB mode before beginning build, run checkthumb during archprepare. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- Makefile | 8 arch/arm/config.mk |

[U-Boot] [PATCH 2/2] kbuild: move checkgcc4 to PowerPC archprepare

2014-03-05 Thread Masahiro Yamada
checkgcc4 is used only for PowerPC. Move it to arch/powerpc/config.mk. To make sure gcc is new enough before beginning build, run checkgcc4 during archprepare. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com --- Makefile | 9 - arch/powerpc/config.mk | 11

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

2014-03-05 Thread Albert ARIBAUD
Hi Tom, On Tue, 4 Mar 2014 14:19:47 -0500, Tom Rini tr...@ti.com wrote: Hey, The following changes since commit eeb72e67619b98d2502fe634a3a5d9953de92ad0: Merge branch 'master' of git://git.denx.de/u-boot-arm (2014-02-26 16:49:58 -0500) are available in the git repository at:

[U-Boot] [PATCH 0/2] Move arch-specific checks to archprepare target

2014-03-05 Thread Masahiro Yamada
Masahiro Yamada (2): kbuild: move checkthumb to ARM archprepare kbuild: move checkgcc4 to PowerPC archprepare Makefile | 17 - arch/arm/config.mk | 12 +++- arch/powerpc/config.mk | 11 ++- 3 files changed, 21 insertions(+), 19

[U-Boot] [PATCH 1/3] net/phy: enable get_phy_id redefinable

2014-03-05 Thread Shengzhou Liu
As some PHYs have non-standard PHY ID registers, PHY Id can't be read correctly by current get_phy_id function, so we enable get_phy_id redefinable to permit specific PHY driver having own specific get_phy_id function. Signed-off-by: Shengzhou Liu shengzhou@freescale.com ---

Re: [U-Boot] [PATCH 0/3] samsung: Add mmc controller to use dw mmc

2014-03-05 Thread Lukasz Majewski
Hi Beomho, This patch set for use dw mmc controller. First, add dw mmc controller initialization. And then, change exynos4 mmc gpio configuration. Additionally, I have removed exynos4x12_set_mmc_clk function. Because samsung_get_base_clock() (exynos4x12/ exynos4) return same value. Thank

[U-Boot] [RFC PATCH] kbuild: use cc-cross-prefix to choose CROSS_COMPILE

2014-03-05 Thread Masahiro Yamada
CROSS_COMPILE is generally passed from the command line or by the environment variable because cross tools vary from user to user. But, having some choices of often used CROSS_COMPILE seems reasonable. $(call cc-cross-prefix, ...) returns the first prefix where a prefix$(CC) is found in PATH.

Re: [U-Boot] [RFC PATCH] kbuild: use cc-cross-prefix to choose CROSS_COMPILE

2014-03-05 Thread Detlev Zundel
Hi Masahiro, CROSS_COMPILE is generally passed from the command line or by the environment variable because cross tools vary from user to user. But, having some choices of often used CROSS_COMPILE seems reasonable. $(call cc-cross-prefix, ...) returns the first prefix where a prefix$(CC)

Re: [U-Boot] [RFC PATCH] kbuild: use cc-cross-prefix to choose CROSS_COMPILE

2014-03-05 Thread Masahiro Yamada
Hi Detlev, On Wed, 05 Mar 2014 11:06:03 +0100 Detlev Zundel d...@denx.de wrote: Hi Masahiro, CROSS_COMPILE is generally passed from the command line or by the environment variable because cross tools vary from user to user. But, having some choices of often used CROSS_COMPILE

Re: [U-Boot] [RFC PATCH] kbuild: use cc-cross-prefix to choose CROSS_COMPILE

2014-03-05 Thread Detlev Zundel
Hi Masahiro, Hi Detlev, On Wed, 05 Mar 2014 11:06:03 +0100 Detlev Zundel d...@denx.de wrote: Hi Masahiro, CROSS_COMPILE is generally passed from the command line or by the environment variable because cross tools vary from user to user. But, having some choices of often used

Re: [U-Boot] [PATCH v4 1/2] power: add PFUZE100 PMIC driver

2014-03-05 Thread Stefano Babic
On 13/02/2014 08:48, Tim Harvey wrote: Signed-off-by: Tim Harvey thar...@gateworks.com Acked-by: Stefano Babic sba...@denx.de --- Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering

Re: [U-Boot] [PATCH v4 2/2] ventana: Add Gateworks Ventana family support

2014-03-05 Thread Stefano Babic
On 13/02/2014 08:48, Tim Harvey wrote: Gateworks Ventana is a product family based on the i.MX6. This patch adds support for all boards in the Ventana family. Where possible, data from the boards EEPROM is used to determine various details about the board at runtime. Signed-off-by: Tim

Re: [U-Boot] [PATCH 1/5] wandboard: Staticize usdhc1_pads

2014-03-05 Thread Stefano Babic
On 15/02/2014 17:51, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Fix the following sparse warning: wandboard.c:58:22: warning: symbol 'usdhc1_pads' was not declared. Should it be static? Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- Applied to

Re: [U-Boot] [PATCH 2/5] mmc: Add a prototype for board_mmc_init()

2014-03-05 Thread Stefano Babic
On 15/02/2014 17:51, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Fixes the following sparse warning: wandboard.c:137:5: warning: symbol 'board_mmc_init' was not declared. Should it be static? Cc: Pantelis Antoniou pa...@antoniou-consulting.com Signed-off-by:

Re: [U-Boot] [PATCH 4/5] wandboard: Include input.h

2014-03-05 Thread Stefano Babic
On 15/02/2014 17:52, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Include input.h in order to fix the following sparse warning: wandboard.c:278:5: warning: symbol 'overwrite_console' was not declared. Should it be static? Signed-off-by: Fabio Estevam

Re: [U-Boot] [PATCH 3/5] wandboard: Fix sparse warning

2014-03-05 Thread Stefano Babic
On 15/02/2014 17:52, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Add a prototype for board_phy_config() to fix the following sparse warning: wandboard.c:200:5: warning: symbol 'board_phy_config' was not declared. Should it be static? Cc: Joe Hershberger

Re: [U-Boot] [PATCH 5/5] fb: Add a prototype for board_video_skip()

2014-03-05 Thread Stefano Babic
On 15/02/2014 17:52, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com Add a prototype for board_video_skip() in order to fix the following sparse warning: wandboard.c:227:5: warning: symbol 'board_video_skip' was not declared. Should it be static? Cc: Anatolij

Re: [U-Boot] [PATCH v4 2/2] ventana: Add Gateworks Ventana family support

2014-03-05 Thread Stefano Babic
Hi Tim, On 05/03/2014 12:06, Stefano Babic wrote: On 13/02/2014 08:48, Tim Harvey wrote: Gateworks Ventana is a product family based on the i.MX6. This patch adds support for all boards in the Ventana family. Where possible, data from the boards EEPROM is used to determine various details

Re: [U-Boot] [RFC PATCH] kbuild: use cc-cross-prefix to choose CROSS_COMPILE

2014-03-05 Thread Tom Rini
On Wed, Mar 05, 2014 at 06:24:24PM +0900, Masahiro Yamada wrote: CROSS_COMPILE is generally passed from the command line or by the environment variable because cross tools vary from user to user. But, having some choices of often used CROSS_COMPILE seems reasonable. $(call

Re: [U-Boot] [PATCH v2] mips: move CONFIG_MIPS{32, 64} definition to config.mk

2014-03-05 Thread Daniel Schwierzeck
2014-03-05 9:25 GMT+01:00 Masahiro Yamada yamad...@jp.panasonic.com: All mips32 boards define CONFIG_MIPS32 in config headers except malta boards which define it in boards.cfg. We can consolidate them by defining it in arch/mips/cpu/mips32/config.mk. CONFIG_MIPS64 definition can be moved to

Re: [U-Boot] [PATCH] malta: correct tcl script path in README.malta

2014-03-05 Thread Daniel Schwierzeck
2014-03-04 15:48 GMT+01:00 James Hogan james.ho...@imgtec.com: README.malta referred to board/malta, but malta has now been moved within board/imgtec/, so correct the path. Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc: Paul

Re: [U-Boot] [PATCH] ppc4xx: Remove 4xx NAND booting support

2014-03-05 Thread Matthias Fuchs
Hi Stefan, On 04.03.2014 15:34, Stefan Roese wrote: As ppc4xx currently only supports the deprecated nand_spl infrastructure and nobody seems to have time / resources to port this over to the newer SPL infrastructure, lets remove NAND booting completely. This should not affect the normal,

[U-Boot] A proposal/hack for an efficient USB DFU for linux based boards

2014-03-05 Thread Krishna Pattabiraman
Hi All, I was working with dfu-utill couple of years ago as part of my thesis. My task was to provide a firmware upgrade mechanism using USB. I had an open moko so I thought of implementing a solution based on it. The board I used is SAM9G45 http://www.atmel.com/devices/sam9g45.aspx. My

[U-Boot] [PATCH] pinmux:exynos:uart:fix: Add default statement to remove warnings (gcc-4.8.2)

2014-03-05 Thread Lukasz Majewski
For Exynos' pinmux UART implementation there was a possibility to run for() statement with uninitialized bank, start and count values. Those warnings appear when following toolchain is used (gcc-4.8.2-glibc-2.18-binutils-2.24): warning: 'count' may be used uninitialized in this function

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

2014-03-05 Thread Chin Liang See
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 cl...@altera.com Cc: Dinh Nguyen dingu...@altera.com Cc: Wolfgang Denk w...@denx.de CC: Pavel Machek pa...@denx.de Cc: Tom Rini tr...@ti.com Cc:

Re: [U-Boot] [PATCH v3] socfpga: Adding Clock Manager driver

2014-03-05 Thread Pavel Machek
On Tue 2014-03-04 22:13:53, Chin Liang See wrote: Clock Manager driver will be called to reconfigure all the clocks setting based on user input. The input are passed to Preloader through handoff files Signed-off-by: Chin Liang See cl...@altera.com Cc: Albert Aribaud

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

2014-03-05 Thread Pavel Machek
Hi! Also I expect that you can change all pins for uarts/ethernets/spi/i2c/etc that's why there is no golden configuration for socfpga that's why it is better to keep it empty just to compile it. Well, there are some development boards around... and having u-boot able to boot on the devel

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

2014-03-05 Thread Pavel Machek
Hi! I changed that to if (!scan_chain_engine_is_idle(SCAN_MAX_DELAY)) It should much better now Yes, thanks. Removed. Thanks Thanks for all the changes, it looks better now, so you have my Acked-by in another thread.

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

2014-03-05 Thread Chin Liang See
Hi Pavel, On Mon, 2014-03-03 at 21:41 +0100, ZY - pavel wrote: Hi! 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 cl...@altera.com Cc: Dinh Nguyen dingu...@altera.com Cc:

[U-Boot] [PATCH V2 3/3] cmd:gpt: randomly generate each partition uuid if undefined

2014-03-05 Thread Przemyslaw Marczak
Changes: - randomly generate each partition uuid if undefined - print info about generated uuid - save environment on gpt write success - update doc/README.gpt Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com Acked-by: Lukasz Majewski l.majew...@samsung.com cc: Piotr Wilczek

[U-Boot] [PATCH V2 1/3] part_efi: move uuid_string() and string_uuid() to lib/uuid.c

2014-03-05 Thread Przemyslaw Marczak
Changes: Move functions: - disk/part_efi.c uuid_string() to lib/uuid.c - uuid_bin_to_str() - disk/part_efi.c string_uuid() to lib/uuid.c - uuid_str_to_bin() Update files: - include/common.h - disk/part_efi.c - lib/Makefile Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com Acked-by: Lukasz

[U-Boot] [PATCH V2 2/3] lib: uuid: add functions to generate UUID version 4

2014-03-05 Thread Przemyslaw Marczak
This patch adds support to generate UUID (Universally Unique Identifier) in version 4 based on RFC4122, which is randomly. Source: https://www.ietf.org/rfc/rfc4122.txt Changes: - add new config: CONFIG_RANDOM_UUID: compile uuid.c and rand.c Update files: - include/common.h - lib/Makefile -

[U-Boot] [PATCH V2 1/3] cpu: exynos4: ace_sha: add hardware random number generator support.

2014-03-05 Thread Przemyslaw Marczak
This patch adds implementation of function hw_rand() based on exynos security sub system. Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com cc: Akshay Saraswat aksha...@samsung.com cc: ARUN MANKUZHI aru...@samsung.com cc: Minkyu Kang mk7.k...@samsung.com --- Changes v2: - none

[U-Boot] [PATCH V2 2/3] lib: rand: add call to hw_rand() - hardware random number generator

2014-03-05 Thread Przemyslaw Marczak
Changes: - lib/rand.c: add call to hw_rand() (depends on CONFIG_RAND_HW_ACCEL) - include/common.h: add hw_rand() declaration. Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com cc: Michael Walle mich...@walle.cc cc: Tom Rini tr...@ti.com --- Changes v2: - move function hw_rand() from rand()

[U-Boot] [PATCH V2 3/3] trats/trats2: enable exynos security subsystem and function hw_rand()

2014-03-05 Thread Przemyslaw Marczak
This allows to use hardware random number generator from exynos security subsystem. Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com Acked-by: Lukasz Majewski l.majew...@samsung.com cc: Piotr Wilczek p.wilc...@samsung.com cc: Minkyu Kang mk7.k...@samsung.com --- Changes v2: - none

[U-Boot] CONFIG_SYS_XIP_BOOT for when it's a choice?

2014-03-05 Thread Tom Rini
Hey all, I'm looking over some patches for am43xx to enable the case of non-SPL XIP booting and this means we start getting code that's shared with am335x that looks like: #if defined(CONFIG_SPL_BUILD) || defined(CONFIG_NOR_BOOT) || \ defined(CONFIG_QSPI_BOOT) ... #endif Because we need

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

2014-03-05 Thread Chin Liang See
On Mon, 2014-03-03 at 18:03 -0600, Scott Wood wrote: On Fri, 2014-02-21 at 14:51 -0600, Chin Liang See wrote: 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.

Re: [U-Boot] [U-Boot, v3] nand/denali: Adding Denali NAND driver support

2014-03-05 Thread Chin Liang See
On Mon, 2014-03-03 at 20:24 -0600, Scott Wood wrote: On Thu, Feb 27, 2014 at 11:05:06AM -0600, Chin Liang See wrote: 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.

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

2014-03-05 Thread Chin Liang See
Hi Masahiro, On Tue, 2014-03-04 at 19:31 +0900, Masahiro Yamada wrote: Hello Scott, Chin, +/* this is a helper macro that allows us to + * format the bank into the proper bits for the controller */ +#define BANK(x) ((x) 24) + +/* Interrupts are cleared by writing a 1 to the

Re: [U-Boot] [PATCH 1/3] powerpc/p1010rdb: SECURE BOOT- define CONFIG_SYS_RAMBOOT for NAND boot

2014-03-05 Thread Scott Wood
On Tue, 2014-03-04 at 23:30 -0600, Bansal Aneesh-B39320 wrote: Yes, in case of secure boot from NAND, the DRAM is initialized by the BootROM and complete u-boot image is copied from NAND to DRAM by the BootROM. So, it should be called RAMBOOT. DRAM or SRAM? Having ROM initialize DDR is a bit

[U-Boot] [PATCH v4 1/2] nand/denali: Adding Denali NAND driver support

2014-03-05 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 cl...@altera.com Cc: Artem Bityutskiy artem.bityuts...@linux.intel.com Cc: David Woodhouse

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

2014-03-05 Thread Chin Liang See
On Wed, 2014-03-05 at 17:15 +0100, ZY - pavel wrote: Hi! I changed that to if (!scan_chain_engine_is_idle(SCAN_MAX_DELAY)) It should much better now Yes, thanks. Removed. Thanks Thanks for all the changes, it looks better now, so you have my Acked-by in another thread. Thanks

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

2014-03-05 Thread Scott Wood
On Wed, 2014-03-05 at 11:34 -0600, Chin Liang See wrote: On Mon, 2014-03-03 at 18:03 -0600, Scott Wood wrote: On Fri, 2014-02-21 at 14:51 -0600, Chin Liang See wrote: To add the Denali NAND driver support into U-Boot. It required information such as register base address from

[U-Boot] [PATCH] mx25pdk: Align the environment with other FSL boards

2014-03-05 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com Allow the boot of a device tree mainline kernel by aligning the environment variables with other FSL boards. Tested NFS boot of a dt 3.14-rc5 kernel. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- include/configs/mx25pdk.h | 103

Re: [U-Boot] [PATCH] mx25pdk: Align the environment with other FSL boards

2014-03-05 Thread Otavio Salvador
On Wed, Mar 5, 2014 at 3:51 PM, Fabio Estevam feste...@gmail.com wrote: From: Fabio Estevam fabio.este...@freescale.com Allow the boot of a device tree mainline kernel by aligning the environment variables with other FSL boards. Tested NFS boot of a dt 3.14-rc5 kernel. Signed-off-by: Fabio

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

2014-03-05 Thread Michal Simek
Hi Pavel, 2014-03-05 17:13 GMT+01:00 Pavel Machek pa...@denx.de: Hi! Also I expect that you can change all pins for uarts/ethernets/spi/i2c/etc that's why there is no golden configuration for socfpga that's why it is better to keep it empty just to compile it. Well, there are some

[U-Boot] [PATCH 1/4] aes: Fix kerneldoc for aes.h

2014-03-05 Thread Marek Vasut
Fix the function annotations in aes.h so they're compatible with kerneldoc. Signed-off-by: Marek Vasut ma...@denx.de --- include/aes.h | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/aes.h b/include/aes.h index ea06308..c70eda6 100644 ---

[U-Boot] [PATCH 4/4] aes: Add 'aes' command to access AES-128-CBC

2014-03-05 Thread Marek Vasut
Add simple 'aes' command, which allows using the AES-128-CBC encryption and decryption functions from U-Boot command line. Signed-off-by: Marek Vasut ma...@denx.de --- README | 1 + common/Makefile | 1 + common/cmd_aes.c | 89

[U-Boot] [PATCH V2 2/4] aes: Move the AES-128-CBC encryption function to common code

2014-03-05 Thread Marek Vasut
Move the AES-128-CBC encryption function implemented in tegra20-common/crypto.c into lib/aes.c . This is well re-usable common code. Moreover, clean the code up a bit and fix the kerneldoc-style annotations. Signed-off-by: Marek Vasut ma...@denx.de --- arch/arm/cpu/tegra20-common/crypto.c | 72

[U-Boot] [PATCH V2 3/3] env: Implement support for AES encryption into fw_* tools

2014-03-05 Thread Marek Vasut
Implement support for encrypting/decrypting the environment block into the tools/env/fw_* tools. The cipher used is AES 128 CBC and the implementation depends solely on components internal to U-Boot. To allow building against the internal AES library, the library did need minor adjustments to not

[U-Boot] [PATCH V2 1/3] env: Add env_export() wrapper

2014-03-05 Thread Marek Vasut
Implement env_export() wrapper, so that all implementers of saveenv() don't have to call hexport_r(), crc32() etc. sequence . This trims down a bit of code duplication. Signed-off-by: Marek Vasut ma...@denx.de --- common/env_common.c| 17 + common/env_dataflash.c | 17

[U-Boot] [PATCH 2/3] env: Implement support for encrypting environment

2014-03-05 Thread Marek Vasut
Add function which allows encrypting the whole environment block with AES-128-CBC. The key for the environment is retrieved by env_aes_cbc_get_key() function, which must be implemented on a per-board basis. Signed-off-by: Marek Vasut ma...@denx.de --- common/env_common.c | 62

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

2014-03-05 Thread Chin Liang See
On Wed, 2014-03-05 at 19:47 +0100, Michal Simek wrote: Hi Pavel, 2014-03-05 17:13 GMT+01:00 Pavel Machek pa...@denx.de: Hi! Also I expect that you can change all pins for uarts/ethernets/spi/i2c/etc that's why there is no golden configuration

[U-Boot] [PATCH 1/2] arm: mxs: Adjust the load address of U-Boot and SPL for HAB

2014-03-05 Thread Marek Vasut
When using HAB, there are additional special requirements on the placement of U-Boot and the U-Boot SPL in memory. To fullfill these, this patch moves the U-Boot binary a little further from the begining of the DRAM, so the HAB CST and IVT can be placed in front of the U-Boot binary. This is

[U-Boot] [PATCH 2/2] arm: mxs: Add support for generating signed BootStream

2014-03-05 Thread Marek Vasut
This patch adds the groundwork for generating signed BootStream, which can be used by the HAB library in i.MX28. We are adding a new target, u-boot-signed.sb , since the process for generating regular non-signed BootStream is much easier. Moreover, the signed bootstream depends on external

Re: [U-Boot] [PATCH 2/4] aes: Move the AES-128-CBC encryption function to common code

2014-03-05 Thread Marek Vasut
On Sunday, February 16, 2014 at 12:30:54 AM, Simon Glass wrote: Hi Marek, On 5 February 2014 20:44, Marek Vasut ma...@denx.de wrote: Move the AES-128-CBC encryption function implemented in tegra20-common/crypto.c into lib/aes.c . This is well re-usable common code. Moreover, clean the

Re: [U-Boot] [PATCH 3/3] fit: rsa: Add support for SHA256 hash

2014-03-05 Thread Marek Vasut
On Sunday, February 16, 2014 at 12:31:53 AM, Simon Glass wrote: Hi Marek, On 5 February 2014 20:47, Marek Vasut ma...@denx.de wrote: Add support for sha256,rsa2048 signature. This patch utilises the previously laid groundwork for adding other hashes. Signed-off-by: Marek Vasut

[U-Boot] [PATCH 3/4] aes: Implement AES-128-CBC decryption function

2014-03-05 Thread Marek Vasut
Implement a compatible AES-128-CBC decryption function as a counterpart of the encryption function pulled from tegra20-common/crypto.c . Signed-off-by: Marek Vasut ma...@denx.de --- include/aes.h | 10 ++ lib/aes.c | 28 2 files changed, 38 insertions(+)

[U-Boot] Single u-boot for quad/duallite

2014-03-05 Thread Troy Kisky
Since we are slowly heading toward a single u-boot for quad/duallite, can we find a solution to this now. mx6sabre_common.h: fdt_file= CONFIG_DEFAULT_FDT_FILE \0 \ mx6sabresd.h:#define CONFIG_DEFAULT_FDT_FILEimx6q-sabresd.dtb mx6sabresd.h:#define CONFIG_DEFAULT_FDT_FILE

Re: [U-Boot] Single u-boot for quad/duallite

2014-03-05 Thread Otavio Salvador
On Wed, Mar 5, 2014 at 4:30 PM, Troy Kisky troy.ki...@boundarydevices.com wrote: Since we are slowly heading toward a single u-boot for quad/duallite, can we find a solution to this now. mx6sabre_common.h: fdt_file= CONFIG_DEFAULT_FDT_FILE \0 \ mx6sabresd.h:#define

[U-Boot] [PATCH] am33xx: Rework #ifdef's around s_init for clarity

2014-03-05 Thread Tom Rini
The s_init function is only called on SPL or XIP cases, so lets only build it for them. This makes the #if logic within the function a bit clearer as to when we are or are not calling things, and makes it easier to see that for example preloader_console_init isn't ever called in the non-XIP full

Re: [U-Boot] Pull request: nand flash

2014-03-05 Thread Tom Rini
On Tue, Mar 04, 2014 at 08:09:19PM -0600, Scott Wood wrote: The following changes since commit eeb72e67619b98d2502fe634a3a5d9953de92ad0: Merge branch 'master' of git://git.denx.de/u-boot-arm (2014-02-26 16:49:58 -0500) are available in the git repository at:

Re: [U-Boot] [PATCH V2 2/3] lib: rand: add call to hw_rand() - hardware random number generator

2014-03-05 Thread Tom Rini
On Wed, Mar 05, 2014 at 05:57:46PM +0100, Przemyslaw Marczak wrote: Changes: - lib/rand.c: add call to hw_rand() (depends on CONFIG_RAND_HW_ACCEL) - include/common.h: add hw_rand() declaration. Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com cc: Michael Walle mich...@walle.cc cc:

[U-Boot] omap24xx_i2c: i2c 16-bit write to pcf8575

2014-03-05 Thread Richard Retanubun
Hello, My platform is a dra7xx_evm. My code baseline is denx master I am trying to write to the pcf8575 i2c gpio expander at address 0x21 (bit P4) I can read 16-bit okay in this version, but 16-bit writing is not working. // Display current values i2c md 21 0.0 2 : f7 eb.. // Set bit

Re: [U-Boot] [RFC PATCH] kbuild: use cc-cross-prefix to choose CROSS_COMPILE

2014-03-05 Thread Gerhard Sittig
On Wed, Mar 05, 2014 at 19:27 +0900, Masahiro Yamada wrote: If you like, you can still pass CROSS_COMPILE from the command line or by the environment variable. ifeq ($(CROSS_COMPILE),) CROSS_COMPILE := $(call cc-cross-prefix, arm-linux- arm-linux-gnueabi-) endif $(call

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

2014-03-05 Thread Chin Liang See
On Wed, 2014-03-05 at 12:23 -0600, Scott Wood wrote: On Wed, 2014-03-05 at 11:34 -0600, Chin Liang See wrote: On Mon, 2014-03-03 at 18:03 -0600, Scott Wood wrote: On Fri, 2014-02-21 at 14:51 -0600, Chin Liang See wrote: To add the Denali NAND driver support into U-Boot. It required

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

2014-03-05 Thread Scott Wood
On Wed, 2014-03-05 at 17:01 -0600, Chin Liang See wrote: On Wed, 2014-03-05 at 12:23 -0600, Scott Wood wrote: On Wed, 2014-03-05 at 11:34 -0600, Chin Liang See wrote: On Mon, 2014-03-03 at 18:03 -0600, Scott Wood wrote: On Fri, 2014-02-21 at 14:51 -0600, Chin Liang See wrote: Why

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

2014-03-05 Thread Chin Liang See
On Wed, 2014-03-05 at 17:04 -0600, Scott Wood wrote: On Wed, 2014-03-05 at 17:01 -0600, Chin Liang See wrote: On Wed, 2014-03-05 at 12:23 -0600, Scott Wood wrote: On Wed, 2014-03-05 at 11:34 -0600, Chin Liang See wrote: On Mon, 2014-03-03 at 18:03 -0600, Scott Wood wrote: On Fri,

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

2014-03-05 Thread Scott Wood
On Wed, 2014-03-05 at 17:09 -0600, Chin Liang See wrote: On Wed, 2014-03-05 at 17:04 -0600, Scott Wood wrote: On Wed, 2014-03-05 at 17:01 -0600, Chin Liang See wrote: On Wed, 2014-03-05 at 12:23 -0600, Scott Wood wrote: On Wed, 2014-03-05 at 11:34 -0600, Chin Liang See wrote: On

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

2014-03-05 Thread Chin Liang See
On Wed, 2014-03-05 at 17:11 -0600, Scott Wood wrote: On Wed, 2014-03-05 at 17:09 -0600, Chin Liang See wrote: On Wed, 2014-03-05 at 17:04 -0600, Scott Wood wrote: On Wed, 2014-03-05 at 17:01 -0600, Chin Liang See wrote: On Wed, 2014-03-05 at 12:23 -0600, Scott Wood wrote: On Wed,

[U-Boot] OMAP3 ECC: Writing u-boot to NAND within u-boot

2014-03-05 Thread Ash Charles
Hi, I'm working with an OMAP3503 processor with a NAND chip attached via the GPMC interface. The NAND chip required at least 4-bit ECC outside of the first block. Currently, I write the MLO and u-boot.img files from u-boot using 1-bit hardware ECC (i.e. nandecc hw) to NAND and boot the board.

[U-Boot] [PATCH] ARM: mxs: Add OCOTP driver

2014-03-05 Thread Marek Vasut
Add yet another OCOTP driver for this i.MX family. This time, it's a driver for the OCOTP variant found in the i.MX23 and i.MX28. This version of OCOTP is too different from the i.MX6 one that I could not use the mxc_ocotp.c driver without making it into a big pile of #ifdef . This driver

[U-Boot] [PATCH v7] socfpga: Add socfpga preloader signing to mkimage

2014-03-05 Thread Charles Manning
Like many platforms, the Altera socfpga platform requires that the preloader be signed in a certain way or the built-in boot ROM will not boot the code. This change automatically creates an appropriately signed preloader from an SPL image. The signed image includes a CRC which must, of course,

Re: [U-Boot] [PATCH 0/3] samsung: Add mmc controller to use dw mmc

2014-03-05 Thread Jaehoon Chung
On 03/05/2014 06:21 PM, Lukasz Majewski wrote: Hi Beomho, This patch set for use dw mmc controller. First, add dw mmc controller initialization. And then, change exynos4 mmc gpio configuration. Additionally, I have removed exynos4x12_set_mmc_clk function. Because samsung_get_base_clock()

Re: [U-Boot] [PATCH V2 2/3] lib: rand: add call to hw_rand() - hardware random number generator

2014-03-05 Thread Masahiro Yamada
Hello Tom, unsigned int rand_r(unsigned int *seedp) { +#ifdef CONFIG_RAND_HW_ACCEL + return hw_rand(); +#endif *seedp ^= (*seedp 13); *seedp ^= (*seedp 17); *seedp ^= (*seedp 5); This doesn't already generate warnings about unreachable code? I hate to say

Re: [U-Boot] [PATCH V2 1/3] cpu: exynos4: ace_sha: add hardware random number generator support.

2014-03-05 Thread Jaehoon Chung
On 03/06/2014 01:57 AM, Przemyslaw Marczak wrote: This patch adds implementation of function hw_rand() based on exynos security sub system. Signed-off-by: Przemyslaw Marczak p.marc...@samsung.com cc: Akshay Saraswat aksha...@samsung.com cc: ARUN MANKUZHI aru...@samsung.com cc: Minkyu Kang

[U-Boot] [PATCH] board/BuR/common: fix phy addresses

2014-03-05 Thread Hannes Petermaier
BR boards are using Phy Addresses 'one' and 'two', prior this was defined through #define PHYADDR 1 within a header file. Now this is addresses are given with device-driver structure. Signed-off-by: Hannes Petermaier oe5...@oevsv.at --- board/BuR/common/common.c |4 ++-- 1 file changed, 2

[U-Boot] Secure booting using u-boot 2013

2014-03-05 Thread JYOTI DUBEY
Hello, I am trying to perform secure booting on nitrogen 6X SOM using u-boot 2013. I tried to pad and sign the u-boot.imx image for authentication.But the size of both u-boot.imx as well as u-boot-signed-padded.imx remains same. Technically signed and padded image should have more size

[U-Boot] [PATCH] mips: xburst: remove remainders of dead board

2014-03-05 Thread Masahiro Yamada
Commit 54e458de deleted qi_lb60 board support because of the incompatible license issue. There is no board with XBurst CPU. Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com Cc: Daniel Schwierzeck daniel.schwierz...@gmail.com Cc: Tom Rini tr...@ti.com --- README

Re: [U-Boot] [PATCH 1/3] samsung: misc: check_keys(), key_pressed() - remove type static.

2014-03-05 Thread Minkyu Kang
On 28/02/14 23:30, Przemyslaw Marczak wrote: This patch removes type static from those functions declaration. Now it can be used outside. outside where? I think there's no reason to make them to non-static function. If you want to use it at outside then please send the patch together.

Re: [U-Boot] [PATCH 2/3] arm: exynos: pinmux: Add sdmmc4 gpio configuration

2014-03-05 Thread Minkyu Kang
On 05/03/14 10:57, Beomho Seo wrote: For use dwmmc controller, add SDMMC4 gpio configuration. Signed-off-by: Beomho Seo beomho@samsung.com Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Cc: Minkyu Kang mk7.k...@samsung.com --- arch/arm/cpu/armv7/exynos/pinmux.c | 20

Re: [U-Boot] [PATCH 1/3] board: samsung: trats2: Add DW MMC controller initialization

2014-03-05 Thread Minkyu Kang
On 05/03/14 10:57, Beomho Seo wrote: Add DW MMC controller initialization. Selectively use DW MMC controller instead of SDHCI controller. Signed-off-by: Beomho Seo beomho@samsung.com Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Cc: Minkyu Kang mk7.k...@samsung.com ---

Re: [U-Boot] [PATCH 3/3] arm: exynos: clock: Remove exynos4x12_set_mmc_clk function

2014-03-05 Thread Minkyu Kang
On 05/03/14 10:57, Beomho Seo wrote: Remove exynos4x12_set_mmc_clk. Please describe here why you remove it. Signed-off-by: Beomho Seo beomho@samsung.com Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Cc: Minkyu Kang mk7.k...@samsung.com --- arch/arm/cpu/armv7/exynos/clock.c |

Re: [U-Boot] [PATCH 2/3] arm: exynos: pinmux: Add sdmmc4 gpio configuration

2014-03-05 Thread Jaehoon Chung
On 03/06/2014 03:58 PM, Minkyu Kang wrote: On 05/03/14 10:57, Beomho Seo wrote: For use dwmmc controller, add SDMMC4 gpio configuration. Signed-off-by: Beomho Seo beomho@samsung.com Signed-off-by: Jaehoon Chung jh80.ch...@samsung.com Cc: Minkyu Kang mk7.k...@samsung.com ---

  1   2   >