Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-22 Thread TigerLiu
Hi, bhupesh and drambo: I think current uboot ARMv8's start.S could handle EL2/EL1 case. I have tested it on FVP model, let arm trusted firmware boot u-boot.bin. It seemed ok. The command I used is: ./Foundation_v8 --cores=4 --no-secure-memory --no-gicv3 --data="./bl1.bin"@0x0 --nsdata="./u-boot.bi

Re: [U-Boot] [RFC PATCH 1/2] common: Add new clk command

2014-01-22 Thread Michal Simek
On 01/22/2014 08:44 PM, Gerhard Sittig wrote: > On Wed, Jan 22, 2014 at 12:02 +0100, Michal Simek wrote: >> >> --- /dev/null >> +++ b/common/cmd_clk.c >> @@ -0,0 +1,51 @@ >> +/* >> + * Copyright (C) 2013 Xilinx, Inc. >> + * >> + * SPDX-License-Identifier: GPL-2.0+ >> + */ >> +#include >> +#include

Re: [U-Boot] Warnings on arm64 build

2014-01-22 Thread bhupesh.sha...@freescale.com
Hi Mashiro, > -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] > On Behalf Of Masahiro Yamada > Sent: Thursday, January 23, 2014 12:38 PM > To: u-boot@lists.denx.de > Subject: [U-Boot] Warnings on arm64 build > > Hello aarch64 experts, > > >

Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-22 Thread bhupesh.sha...@freescale.com
Hi Darwin, > -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] > On Behalf Of drambo > Sent: Thursday, January 23, 2014 12:32 AM > To: u-boot@lists.denx.de > Subject: Re: [U-Boot] how to get u-boot code with arm64: core support > > Hi Bhupesh, >

[U-Boot] Warnings on arm64 build

2014-01-22 Thread Masahiro Yamada
Hello aarch64 experts, Since commit 3865ceb (vexpress/armv7: Fix incorrect ethernet controller), I have many warning messages when I compile vexpress board. smc9.c: In function ‘poll4int’: smc9.h:252:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #

[U-Boot] U-boot for 64bit ARMv8

2014-01-22 Thread TigerLiu
Hi, experts: I found ARMv8/Exceptions.S only created a 8 items vector table. But based on ARMv8 Arch Ref Manual, it should create 16 items in a vector table: Current Exception level with SP_EL0 : 4 items Current Exception level with SP_Elx : 4 items EL immediately lower than target_EL is using AAR

[U-Boot] [PATCH 1/2] imx6: ensure AHB clock is 132MHz in low freq boot mode

2014-01-22 Thread Anson Huang
For low freq boot mode(ARM boot up with 396MHz), ROM will not set AHB clock to 132MHz, and the reset value of AHB divider is incorrect which will lead to wrong AHB rate, need to correct it. To enable low freq boot mode, need to set BOOT_CFG2[2] to high, tested on i.MX6Q/DL SabreSD board and i.MX6SL

[U-Boot] [PATCH 2/2] imx6: make sure MMDC_CHx_MASK is clear to avoid warm reset failure

2014-01-22 Thread Anson Huang
Boot ROM may mask MMDC_CHx_MASK in CCM_CCDR(such as i.MX6SL TO1.2), it will cause warm reset fail, need to clear this MMDC_CHx_MASK field to make sure all the i.MX6 series SOCs reset function work. Otherwise, uboot "reset" command will fail, tested on i.MX6SL EVK board with TO1.2. Signed-off-by: A

Re: [U-Boot] File system API: Read file size without reading file contents

2014-01-22 Thread Simon Glass
+Stephen Hi Frank, On 22 January 2014 16:01, Frank Bormann wrote: > Hi All, > > I would like to read a configuration file from an ext4 disk partition in > u-boot and parse its contents. In order to malloc a buffer of sufficient > size to read the entire file contents, I would need to know the f

Re: [U-Boot] How to perform a secure boot on ARM Linux

2014-01-22 Thread Simon Glass
+Tom Hi, On 20 January 2014 11:47, Marek Vasut wrote: > On Monday, January 20, 2014 at 01:40:52 PM, rakesh ranjan wrote: > > Hi, > > > > I have a beagle board and want to create a u-boot that verifies the > kernel > > and rootfs before booting it. Any pointers on how it can be achieved will > >

Re: [U-Boot] [PATCH 1/3 V3] esdhc: Workaround for card can't be detected on T4240QDS

2014-01-22 Thread Zhang Haijun
Many thanks. Pantelis and York How about below patch? http://patchwork.ozlabs.org/patch/283002/ It's about esdhc, but is in york's backyard. Regards Haijun On 01/22/2014 08:01 PM, Pantelis Antoniou wrote: Hi York, On Jan 22, 2014, at 12:01 AM, York Sun wrote: Pantelis, On 01/09/2014 0

Re: [U-Boot] [PATCH v15 07/10] arm64: core support

2014-01-22 Thread drambo
On 14-01-22 04:29 PM, Scott Wood-2 [via U-Boot] wrote: > > > On Tue, 2014-01-14 at 09:52 +0800, FengHua wrote: >> hi bhupesh, >> >>> Hi David, >>> >>> In reference to my mail above, I see that the transition to EL2 (from EL3) >>> which occurs very early >>> in start.S needs to be changed on line

Re: [U-Boot] [PATCH v15 07/10] arm64: core support

2014-01-22 Thread Scott Wood
On Tue, 2014-01-14 at 09:52 +0800, FengHua wrote: > hi bhupesh, > > > Hi David, > > > > In reference to my mail above, I see that the transition to EL2 (from EL3) > > which occurs very early > > in start.S needs to be changed on lines of the ARMv7 code, i.e. the EL2 > > transition should happen

[U-Boot] File system API: Read file size without reading file contents

2014-01-22 Thread Frank Bormann
Hi All, I would like to read a configuration file from an ext4 disk partition in u-boot and parse its contents. In order to malloc a buffer of sufficient size to read the entire file contents, I would need to know the file size before actually reading it. As far as I understand, the current s

Re: [U-Boot] [PATCH] ARM: tegra: don't exceed AVP limits when configuring PLLP

2014-01-22 Thread Stephen Warren
On 01/22/2014 01:21 PM, Stephen Warren wrote: > From: Jimmy Zhang > > Based on the Tegra114 TRM, the system clock (which is the AVP clock) can > run up to 275MHz. On power on, the default sytem clock source is set to > PLLP_OUT0. In function clock_early_init(), PLLP_OUT0 will be set to > 408MHz w

Re: [U-Boot] [PATCH 3/8] Tegra124: Add SPL/AVP (arm720t) cpu files

2014-01-22 Thread Stephen Warren
On 10/08/2013 02:13 AM, Thierry Reding wrote: > On Tue, Oct 08, 2013 at 12:42:53AM +0200, Tom Warren wrote: >> This provides SPL support for T124 boards - AVP >> early init, plus CPU (A15) init/jump to main U-Boot. >> +#if defined(CONFIG_TEGRA124) >> + struct clk_rst_ctlr *clkrst = (struct c

[U-Boot] [PATCH 3/3] net: sh-eth: Fix typo from rESR_RTLF to EESR_RTLF

2014-01-22 Thread Nobuhiro Iwamatsu
'r' of rESR_RTLF is a mistake of E. Signed-off-by: Nobuhiro Iwamatsu --- drivers/net/sh_eth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sh_eth.h b/drivers/net/sh_eth.h index 2909659..d0d9aaa 100644 --- a/drivers/net/sh_eth.h +++ b/drivers/net/sh_eth.h @@ -47

[U-Boot] [PATCH 2/3] net: sh-eth: Fix coding style

2014-01-22 Thread Nobuhiro Iwamatsu
This fixes checkpatch's warning. Signed-off-by: Nobuhiro Iwamatsu --- drivers/net/sh_eth.c | 35 ++- drivers/net/sh_eth.h | 9 - 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 0cb963f..81

[U-Boot] [PATCH 1/3] net: sh-eth: Add support R7S72100 of rmobile

2014-01-22 Thread Nobuhiro Iwamatsu
The R7S72100 of ARM SoC that Renesas manufactured has one Ether port. This has the same IP SH-Ether. This patch adds support of the R7S72100 in SH-Ether. Signed-off-by: Nobuhiro Iwamatsu --- drivers/net/sh_eth.c | 10 --- drivers/net/sh_eth.h | 81

[U-Boot] [PATCH] serial: sh: Add Support R7S72100 of rmobile

2014-01-22 Thread Nobuhiro Iwamatsu
The R7S72100 has same IP as serial with SH. This adds support R7S72100 to serial_sh. Signed-off-by: Nobuhiro Iwamatsu --- drivers/serial/serial_sh.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/serial/serial_sh.h b/drivers/serial/serial_sh.h index f5e9854..612e11

Re: [U-Boot] [PATCH 1/6] ARM: tegra: deduplicate MASK_BITS_xxx clock mux enum

2014-01-22 Thread Tom Warren
On Wed, Jan 22, 2014 at 2:54 PM, Stephen Warren wrote: > On 01/22/2014 02:35 PM, Tom Warren wrote: > ... > > Thanks for doing these patches - nice job. LGTM. > > > > Applies cleanly to u-boot-tegra/next after applying Alban's 2 patches, > > your other 3 patches, and then this series of 6. Building

Re: [U-Boot] [PATCH 1/6] ARM: tegra: deduplicate MASK_BITS_xxx clock mux enum

2014-01-22 Thread Stephen Warren
On 01/22/2014 02:35 PM, Tom Warren wrote: ... > Thanks for doing these patches - nice job. LGTM. > > Applies cleanly to u-boot-tegra/next after applying Alban's 2 patches, > your other 3 patches, and then this series of 6. Building all now, I'll > test later. Great! Just FYI, I tested MMC and DHC

Re: [U-Boot] [PATCH 1/6] ARM: tegra: deduplicate MASK_BITS_xxx clock mux enum

2014-01-22 Thread Tom Warren
Stephen, On Wed, Jan 22, 2014 at 1:20 PM, Stephen Warren wrote: > From: Tom Warren > > The enum used to define the set of register bits used to represent a > clock's input mux, MUX_BITS_*, is defined separately for each SoC at > present. Move this definition to a common location to ease fixing

Re: [U-Boot] [PATCH 5/5] NAND: DaVinci: allow forced disable of subpage writes

2014-01-22 Thread Scott Wood
On Mon, 2014-01-20 at 17:10 -0500, Murali Karicheri wrote: > This patch introduces a configurable mechanism to disable subpage writes > in the DaVinci NAND driver. > > Signed-off-by: Vitaly Andrianov > Signed-off-by: Murali Karicheri > --- > drivers/mtd/nand/davinci_nand.c |3 +++ > 1 file

[U-Boot] [PATCH 1/6] ARM: tegra: deduplicate MASK_BITS_xxx clock mux enum

2014-01-22 Thread Stephen Warren
From: Tom Warren The enum used to define the set of register bits used to represent a clock's input mux, MUX_BITS_*, is defined separately for each SoC at present. Move this definition to a common location to ease fixing up some issues with the definition, and the code that uses it. Signed-off-b

[U-Boot] [PATCH v2] mx6: Distinguish mx6dual from mx6quad

2014-01-22 Thread Fabio Estevam
From: Fabio Estevam Currently when we boot a mx6dual U-boot reports that it is a mx6quad. Report it as MX6D instead: CPU: Freescale i.MX6D rev1.2 at 792 MHz Signed-off-by: Fabio Estevam Tested-by: Otavio Salvador --- Changes since v1: - Fix mx5 build error (Otavio) arch/arm/cpu/armv7/mx6

[U-Boot] [PATCH] ARM: tegra: amend pmc.h for Tegra114+

2014-01-22 Thread Stephen Warren
From: Stephen Warren Tegra114 and later's PMC module removes the pwrgate_timer_on register and replaces it with a clamp_status register. Adjust pmc.h to reflect this, and update any code affected by the change. The cpu.c change in this patch was extracted from a much larger patch by Jimmy Zhang.

[U-Boot] [PATCH 4/6] ARM: tegra: use MASK_BITS_* macros everywhere

2014-01-22 Thread Stephen Warren
From: Stephen Warren Not all code that set or interpreted "mux_bits" was using the named macros, but rather some was simply using hard-coded integer constants. This makes it hard to determine which pieces of code are affected by changes to those constants. Replace the integer constants with the

[U-Boot] [PATCH 3/6] ARM: tegra: rename OUT_CLK_SOURCE_*

2014-01-22 Thread Stephen Warren
From: Stephen Warren OUT_CLK_SOURCE_ are currently named after the number of bits the mask they represent includes. However, bit count is not the only possible variable; bit position may also vary. Rename OUT_CLK_SOURCE_ to OUT_CLK_SOURCE_31_30_ and OUT_CLK_SOURCE4_ to OUT_CLK_SOURCE_31_28 to mor

[U-Boot] [PATCH 2/6] ARM: tegra: rename MASK_BITS_29_28 to MASK_BITS_31_28

2014-01-22 Thread Stephen Warren
From: Stephen Warren The only place where the MASK_BITS_* values are used is in adjust_periph_pll(), which interprets the value 4 (old MASK_BITS_29_28, new MASK_BITS_31_28) as being associated with mask OUT_CLK_SOURCE4_MASK, i.e. bits 31:28. Rename the MASK_BITS_ macro to reflect how it's actuall

[U-Boot] [PATCH 6/6] ARM: tegra: implement MASK_BITS_31_29

2014-01-22 Thread Stephen Warren
From: Tom Warren Some clock sources have 3-bit muxes in bits 31:29. Implement core support for this mux field. Signed-off-by: Tom Warren [swarren, extracted from a larger patch by Tom] Signed-off-by: Stephen Warren --- arch/arm/cpu/tegra-common/clock.c | 22 ++ arc

[U-Boot] [PATCH] ARM: tegra: don't exceed AVP limits when configuring PLLP

2014-01-22 Thread Stephen Warren
From: Jimmy Zhang Based on the Tegra114 TRM, the system clock (which is the AVP clock) can run up to 275MHz. On power on, the default sytem clock source is set to PLLP_OUT0. In function clock_early_init(), PLLP_OUT0 will be set to 408MHz which is beyond system clock's upper limit. The fix is to

[U-Boot] [PATCH 5/6] ARM: tegra: MASK_BITS_ no longer needs specific values

2014-01-22 Thread Stephen Warren
From: Stephen Warren Since all code that sets or interprets MASK_BITS_* now uses the enums to define/compare the values, there is no need for MASK_BITS_* to have a specific integer value. In fact, having a specific integer value may encourage people to hard-code those values, or interpret the val

Re: [U-Boot] [RFC PATCH 1/2] common: Add new clk command

2014-01-22 Thread Gerhard Sittig
On Wed, Jan 22, 2014 at 12:02 +0100, Michal Simek wrote: > > --- /dev/null > +++ b/common/cmd_clk.c > @@ -0,0 +1,51 @@ > +/* > + * Copyright (C) 2013 Xilinx, Inc. > + * > + * SPDX-License-Identifier: GPL-2.0+ > + */ > +#include > +#include > +#include > + > +int __weak soc_clk_dump(void) > +{

Re: [U-Boot] how to get u-boot code with arm64: core support

2014-01-22 Thread drambo
Hi Bhupesh, > U-boot doesn't have ARM trusted firmware support as of now. U-boot for > ARMv8 starts in EL3, whereas UEFI starts in EL2 as trusted firmware itself > is working in EL3. Since the ATF software doesn't really care whether it is loading uefi or u-boot and since it wants to load non

Re: [U-Boot] [PATCH 7/7] zynq: Move bootmode to headers

2014-01-22 Thread Jagan Teki
On Wed, Jan 22, 2014 at 2:53 PM, Michal Simek wrote: > These numbers will be reused by SPL. > > Signed-off-by: Michal Simek > --- > > arch/arm/include/asm/arch-zynq/hardware.h | 6 ++ > board/xilinx/zynq/board.c | 6 -- > 2 files changed, 6 insertions(+), 6 deletions(-) >

Re: [U-Boot] [PATCH 2/7] zynq: Enable dcache support

2014-01-22 Thread Jagan Teki
On Wed, Jan 22, 2014 at 2:53 PM, Michal Simek wrote: > Enable dcache. > > Signed-off-by: Michal Simek > --- > > arch/arm/cpu/armv7/zynq/cpu.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm/cpu/armv7/zynq/cpu.c b/arch/arm/cpu/armv7/zynq/cpu.c > index 9af340e..c771759 10

Re: [U-Boot] [PATCH 1/7] zynq: Do not explicitely enable icache

2014-01-22 Thread Jagan Teki
On Wed, Jan 22, 2014 at 2:53 PM, Michal Simek wrote: > icache is already enabled by default. > > Signed-off-by: Michal Simek > --- > > board/xilinx/zynq/board.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c > index a5b9bde..08932a

Re: [U-Boot] [PATCH 3/7] zynq: Fix incorrect header name

2014-01-22 Thread Jagan Teki
On Wed, Jan 22, 2014 at 2:53 PM, Michal Simek wrote: > Zynq common configuration is placed in zynq-common.h > not zynq_common.h. > > Signed-off-by: Michal Simek > --- > > include/configs/zynq_zc70x.h | 2 +- > include/configs/zynq_zed.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-

[U-Boot] Please pull u-boot-mpc85xx

2014-01-22 Thread York Sun
Tom, The following changes since commit e222b1f36fedb0363dbc21e0add7dc3848bae553: powerpc/mpc85xx:Increase binary size for P, B & T series boards. (2014-01-21 14:06:30 -0800) are available in the git repository at: git://git.denx.de/u-boot-mpc85xx.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v3] net/designware: make driver compatible with data cache

2014-01-22 Thread Alexey Brodkin
Hi Mischa, On Wed, 2014-01-22 at 17:10 +, Mischa Jonker wrote: > Hello Alexey, > > In general, a very nice, clean patch. > > > + /* Flush modified buffer descriptor */ > > + flush_dcache_range((unsigned long)desc_p, > > + (unsigned long)desc_p + sizeof(struct dmamacd

Re: [U-Boot] [PATCH v3] net/designware: make driver compatible with data cache

2014-01-22 Thread Mischa Jonker
Hello Alexey, In general, a very nice, clean patch. > + /* Flush modified buffer descriptor */ > + flush_dcache_range((unsigned long)desc_p, > +(unsigned long)desc_p + sizeof(struct dmamacdescr)); > + If I remember correctly, there is some bit that tells you if th

[U-Boot] [PATCH v2] net/designware - switch driver to phylib usage

2014-01-22 Thread Alexey Brodkin
With this change driver will benefit from existing phylib and thus custom phy functionality implemented in the driver will go away: * Instantiation of the driver is now much shorter - 2 parameters instead of 4. * Simplified phy management/functoinality in driver is replaced with rich functionalit

Re: [U-Boot] [PATCH v3] net/designware: make driver compatible with data cache

2014-01-22 Thread Stefan Roese
Hi Alexey, On 22.01.2014 17:49, Alexey Brodkin wrote: From: Alexey Brodkin Up until now this driver only worked with data cache disabled. To make it work with enabled data cache following changes were required: * Flush Tx/Rx buffer descriptors their modification * Invalidate Tx/Rx buffer

[U-Boot] [PATCH v3] net/designware: make driver compatible with data cache

2014-01-22 Thread Alexey Brodkin
From: Alexey Brodkin Up until now this driver only worked with data cache disabled. To make it work with enabled data cache following changes were required: * Flush Tx/Rx buffer descriptors their modification * Invalidate Tx/Rx buffer descriptors before reading its values * Flush cache for da

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

2014-01-22 Thread Jagannadha Sutradharudu Teki
Hi Tom, SF code optimized stuff and few fixes. -- Thanks! Jagan. The following changes since commit b44bd2c73c4cfb6e3b9e7f8cf987e8e39aa74a0b: Prepare v2014.01 (2014-01-20 17:52:59 -0500) are available in the git repository at: git://git.denx.de/u-boot-spi.git master for you to fetch chan

Re: [U-Boot] Pull request u-boot-mpc85xx

2014-01-22 Thread Tom Rini
On Tue, Jan 21, 2014 at 03:07:40PM -0800, York Sun wrote: > Tom, > > The following changes since commit b44bd2c73c4cfb6e3b9e7f8cf987e8e39aa74a0b: > > Prepare v2014.01 (2014-01-20 17:52:59 -0500) > > are available in the git repository at: > > git://git.denx.de/u-boot-mpc85xx.git master >

Re: [U-Boot] [PATCH v2] designware_i2c: Enhance DesignWare I2C driver address support

2014-01-22 Thread Chin Liang See
Thanks Alexey. Hi Heiko, I believe this patch should be good for apply. Would need your help then. :) Thanks Chin Liang On Wed, 2014-01-15 at 15:51 +, Alexey Brodkin wrote: > On Wed, 2014-01-15 at 09:45 -0600, Chin Liang See wrote: > > Changes for v2 > > - Removed the function check_params

[U-Boot] [PATCH V2 8/8] board:samsung:trats/trats2: enable boot with appended and separated DTB

2014-01-22 Thread Piotr Wilczek
This patch modifies envs to enable dual kernel boot - with separated DTB if the DTB file is loaded successfully; - with DTB apppended to uImage if DTB file is not found; This is neccesssary for backward compatibilty. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park Cc: Lukasz Majewski

[U-Boot] [PATCH V2 5/8] board:samsung:universal: add env variables describing platform

2014-01-22 Thread Piotr Wilczek
This patch adds variables describing platform (soc, board, vendor) to default environment. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park Cc: Przemyslaw Marczak --- Changes for V2: - rebased on patchset [PATCH v6 00/11] Introduce Samsung misc file and LCD menu board/samsung/univer

[U-Boot] [PATCH V2 2/8] arm:s5pc110: add cpu revision

2014-01-22 Thread Piotr Wilczek
This patch adds s5p_cpu_rev. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park --- Changes for V2: - none arch/arm/include/asm/arch-s5pc1xx/cpu.h |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/include/asm/arch-s5pc1xx/cpu.h b/arch/arm/include/asm/arch-s5pc1xx/

[U-Boot] [PATCH V2 7/8] board:samsung:trats2: add env variables describing platform

2014-01-22 Thread Piotr Wilczek
This patch adds variables describing platform (soc, board, vendor) to default environment. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park --- Changes for V2: - rebased on patchset [PATCH v6 00/11] Introduce Samsung misc file and LCD menu board/samsung/trats2/trats2.c |3 +++ in

[U-Boot] [PATCH V2 4/8] board:samsung:goni: add env variables describing platform

2014-01-22 Thread Piotr Wilczek
This patch adds variables describing platform (soc, board, vendor) to default environment. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park Cc: Mateusz Zalega --- Changes for V2: - rebased on patchset [PATCH v6 00/11] Introduce Samsung misc file and LCD menu board/samsung/goni/goni.

[U-Boot] [PATCH V2 3/8] board:samsung:common: set envs with board unified information

2014-01-22 Thread Piotr Wilczek
This patch sets envs that describe board information. The following envs are set: soc_id, soc_rev, board_rev. Based on this information, if CONFIG_OF_LIBFDT is enabled, the 'fdtfile' env is set as: fdtfile=${soc_family}${soc_id}-${board}.dtb The generated envs are intenionally not saved to persist

[U-Boot] [PATCH V2 6/8] board:samsung:trats: add env variables describing platform

2014-01-22 Thread Piotr Wilczek
This patch adds variables describing platform (soc, board, vendor) to default environment. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park Cc: Lukasz Majewski --- Changes for V2: - rebased on patchset [PATCH v6 00/11] Introduce Samsung misc file and LCD menu board/samsung/trats/tra

[U-Boot] [PATCH V2 1/8] arm:exynos: add cpu revision

2014-01-22 Thread Piotr Wilczek
This patch enables to read cpu revision on Exynos CPU. Signed-off-by: Piotr Wilczek Signed-off-by: Kyungmin Park --- Changes for V2: - none arch/arm/include/asm/arch-exynos/cpu.h |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-exynos/cp

[U-Boot] [PATCH V2 0/8] arm: add runtime envs describing build

2014-01-22 Thread Piotr Wilczek
This patchset adds runtime variables for Samsung boards that describe build configuration (arch, soc, board, vendor). Additionally, more envs describing platform (soc and board revision) are added to Samsung common code. For boards Trats and Trats2, based on the added envs, 'fdtfile' env is set a

Re: [U-Boot] [PATCH] mx6sl: Adjust fdt_addr to avoid address overlapping

2014-01-22 Thread Otavio Salvador
On Wed, Jan 22, 2014 at 12:23 PM, Fabio Estevam wrote: > From: Fabio Estevam > > Similarly as it was done on commit 6584a1b526 (ARM: mx6: Change the FDT > loading > address to avoid overlaping), we need to adjust the fdt_addr in order to be > able to boot FSL 3.10 kernel. > > Signed-off-by: Fabi

[U-Boot] [PATCH] mx6sl: Adjust fdt_addr to avoid address overlapping

2014-01-22 Thread Fabio Estevam
From: Fabio Estevam Similarly as it was done on commit 6584a1b526 (ARM: mx6: Change the FDT loading address to avoid overlaping), we need to adjust the fdt_addr in order to be able to boot FSL 3.10 kernel. Signed-off-by: Fabio Estevam --- include/configs/mx6slevk.h | 2 +- 1 file changed, 1 in

Re: [U-Boot] [RFC PATCH 1/2] common: Add new clk command

2014-01-22 Thread Michal Simek
Hi Stefano, On 01/22/2014 01:46 PM, Stefano Babic wrote: > Hi Michal, > > On 22/01/2014 12:02, Michal Simek wrote: >> Command provides just dump subcommand for showing clock frequencies >> in a soc. >> > > i.MXes has already an own command for this functionality - see command > "clocks" in arch/

Re: [U-Boot] [RFC PATCH 1/2] common: Add new clk command

2014-01-22 Thread Stefano Babic
Hi Michal, On 22/01/2014 12:02, Michal Simek wrote: > Command provides just dump subcommand for showing clock frequencies > in a soc. > i.MXes has already an own command for this functionality - see command "clocks" in arch/arm. However, I like that we can have a common command for all SOCs. >

Re: [U-Boot] [PATCH 1/3 V3] esdhc: Workaround for card can't be detected on T4240QDS

2014-01-22 Thread Pantelis Antoniou
Hi York, On Jan 22, 2014, at 12:01 AM, York Sun wrote: > Pantelis, > > On 01/09/2014 09:52 PM, Haijun Zhang wrote: >> Card detection pin is ineffective on T4240QDS Rev1.0. >> There are two cards can be connected to board. >> 1. eMMC card is built-in board, can not be removed. so >> For eMMC ca

Re: [U-Boot] [PATCH 3/3 V3] eSDHC: Calculate envaddr accroding to the address format

2014-01-22 Thread Pantelis Antoniou
Hi Haijun, On Jan 10, 2014, at 7:52 AM, Haijun Zhang wrote: > On BSC9131, BSC9132, P1010 : For High Capacity SD Cards (> 2 GBytes), the > 32-bit source address specifies the memory address in block address > format. Block length is fixed to 512 bytes as per the SD High Capacity > specification. S

Re: [U-Boot] [PATCH 2/3 V3] esdhc: Detecting 8 bit width before mmc initialization

2014-01-22 Thread Pantelis Antoniou
Hi Haijun, On Jan 10, 2014, at 7:52 AM, Haijun Zhang wrote: > The upper 4 data signals of esdhc are shared with spi flash. > So detect if the upper 4 pins are assigned to esdhc before > enable sdhc 8 bit width. > > Signed-off-by: Haijun Zhang > --- > changes for V3: >- Define quirk in b

Re: [U-Boot] [PATCH 1/3 V3] esdhc: Workaround for card can't be detected on T4240QDS

2014-01-22 Thread Pantelis Antoniou
Hi Haijun, On Jan 10, 2014, at 7:52 AM, Haijun Zhang wrote: > Card detection pin is ineffective on T4240QDS Rev1.0. > There are two cards can be connected to board. > 1. eMMC card is built-in board, can not be removed. so > For eMMC card it is always there. > 2. Card detecting pin is functional

Re: [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings

2014-01-22 Thread Lukasz Majewski
Hi Przemyslaw, > This change allows updating environment stored on MMC by dfu or thor. > > New setting: > - "params.bin mmc 0x38 0x8" > > File params.bin can be generated by: tools/mkenvimage. > e.g. ./mkenvimage -s 4096 -o params.bin > > Every new env variable in text file should start with a

Re: [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings

2014-01-22 Thread Przemyslaw Marczak
CC On 01/22/2014 12:02 PM, Przemyslaw Marczak wrote: This change allows updating environment stored on MMC by dfu or thor. New setting: - "params.bin mmc 0x38 0x8" File params.bin can be generated by: tools/mkenvimage. e.g. ./mkenvimage -s 4096 -o params.bin Every new env variable in text fi

[U-Boot] [RFC PATCH 1/2] common: Add new clk command

2014-01-22 Thread Michal Simek
Command provides just dump subcommand for showing clock frequencies in a soc. Signed-off-by: Michal Simek --- README | 1 + common/Makefile | 1 + common/cmd_clk.c | 51 include/clk.h| 6 ++ i

[U-Boot] [RFC PATCH 2/2] zynq: Implement dump clock command

2014-01-22 Thread Michal Simek
From: Soren Brinkmann Enable and implement dump clock command which shows soc frequencies. Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- On the top of Zynq clk patches I have sent. All paches available for testing here git://git.denx.de/u-boot-microblaze.git xnext/clk-cmd bra

[U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings

2014-01-22 Thread Przemyslaw Marczak
This change allows updating environment stored on MMC by dfu or thor. New setting: - "params.bin mmc 0x38 0x8" File params.bin can be generated by: tools/mkenvimage. e.g. ./mkenvimage -s 4096 -o params.bin Every new env variable in text file should start with a new line. Sample env text file:

Re: [U-Boot] [PATCH imx6dl] Enable SION Bit for GPIO16 when ALT2 mode is selected

2014-01-22 Thread Fabio Estevam
On Wed, Jan 22, 2014 at 5:19 AM, Markus Niebel wrote: > > IOMUX_CONFIG_SION is used everywhere for I2C dedicated pins - partly hard > coded for > mx6q - so yes, should be used fro enet_clk, too Yes, looks good. Regards, Fabio Estevam ___ U-Boot mail

[U-Boot] [PATCH 7/8] net: zynq_gem: Calculate clock dividers dynamically

2014-01-22 Thread Michal Simek
From: Soren Brinkmann Remove hard coded clock divider setting and use the Zynq clock framework to dynamically calculate appropriate dividers at run time. Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/slcr.c | 13 - arch/arm/inc

[U-Boot] [PATCH 8/8] serial_zynq: Migrate to Zynq clock framework

2014-01-22 Thread Michal Simek
From: Soren Brinkmann Remove hard coded frequencies and use Zynq's clock framework to obtain the UART clock frequency. Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- drivers/serial/serial_zynq.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git

[U-Boot] [PATCH 4/8] zynq: timer: Migrate to zynq clock framework

2014-01-22 Thread Michal Simek
From: Soren Brinkmann Remove hardcoded frequencies in favor of Zynq clock framework. Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/timer.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/cpu/armv7/zynq/timer.c

[U-Boot] [PATCH 5/8] zynq: timer: Fix hangs if network activity attempted after about one hour

2014-01-22 Thread Michal Simek
Cortex-A9 MPCore TRM' from ARM (ARM DDI 0407G ID072711) describes in the section 4.1.1 how this value calculation should be done. This patch fixes the problem if network activity such as ping or tftp is attempted after u-boot has been idle for an hour, it hangs, and cannot control-C out of it. Si

[U-Boot] [PATCH 6/8] net: zynq_gem: Move RCLK details out of driver

2014-01-22 Thread Michal Simek
From: Soren Brinkmann The GEM driver should not need to know about Zynq specific details of RCLK related registers and bitfields in the SLCR. Move those details to the slcr driver. Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/slcr.c | 6 +

[U-Boot] [PATCH 3/8] zynq: Update CLK in bdinfo

2014-01-22 Thread Michal Simek
ARM has specific clk entries which should be also setup. Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/clk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv7/zynq/clk.c b/arch/arm/cpu/armv7/zynq/clk.c index 0891a23..ea7a677 100644 --- a/arch/arm/cpu/armv7/zy

[U-Boot] [PATCH 0/8] ZYNQ CLK update + driver changes

2014-01-22 Thread Michal Simek
Hi, this series provide patches for adding clock support for Zynq. I am sending them separately because there are several changes together. 1. Adding DIV_ROUND_CLOSEST macro 2. ARM zynq changes 3. driver changes This series is based on 7 zynq patches I have sent today. Thanks, Michal Michal Si

[U-Boot] [PATCH 2/8] zynq: Provide a framework to read clock frequencies

2014-01-22 Thread Michal Simek
From: Soren Brinkmann Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/Makefile | 1 + arch/arm/cpu/armv7/zynq/clk.c | 638 ++ arch/arm/cpu/armv7/zynq/cpu.c | 2 + arch/arm/include/asm/arch-

[U-Boot] [PATCH 1/8] common: Provide DIV_ROUND_CLOSEST macro

2014-01-22 Thread Michal Simek
From: Soren Brinkmann Provide the DIV_ROUND_CLOSEST macro - taken from the Linux kernel - in common.h Signed-off-by: Soren Brinkmann Signed-off-by: Michal Simek --- include/common.h | 16 1 file changed, 16 insertions(+) diff --git a/include/common.h b/include/common.h inde

[U-Boot] [PATCH v6 11/11] universal: add LCD download menu support

2014-01-22 Thread Przemyslaw Marczak
Signed-off-by: Przemyslaw Marczak --- changes v2: - add definitions for check keys - cleanup config definitions Changes v3: - remove CONFIG_BOARD_NAME from include/configs/5pc210_universal.h Changes v4: - none Changes v5: - none Changes v6: - universal.c : call boot menu from board file. bo

[U-Boot] [PATCH v6 05/11] lib: tizen: change Tizen logo with the new one.

2014-01-22 Thread Przemyslaw Marczak
This is big size patch. Please follow the link: http://www.denx.de/wiki/pub/U-Boot/TooBigPatches/0005-lib-tizen-change-Tizen-logo-with-the-new-one.patch ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v6 08/11] samsung: misc: Add LCD download menu.

2014-01-22 Thread Przemyslaw Marczak
This simple LCD menu allows run one of download mode on device without writing on console or for fast and easy upgrade. This feature check user keys combination at boot: - power key + volume up - download menu - power key + volume down - thor mode (without menu) New configs: - CONFIG_LCD_MENU - C

[U-Boot] [PATCH v6 03/11] samsung: common: Add file for common functions, draw_logo() cleanup.

2014-01-22 Thread Przemyslaw Marczak
Changes: new file: - board/samsung/common/misc.c depends on: CONFIG_MISC_COMMON - move draw_logo() to misc.c configs: trats, trats2, universal: - enable CONFIG_MISC_COMMON, - enable CONFIG_MISC_INIT_R, - add misc_init_r() and call draw_logo() in it. Signed-off-by: Przemyslaw Marczak --- Chang

[U-Boot] [PATCH v6 10/11] trats2: add LCD download menu support

2014-01-22 Thread Przemyslaw Marczak
Signed-off-by: Przemyslaw Marczak --- changes v2: - add definitions for check keys - cleanup config definitions Changes v3: - remove CONFIG_BOARD_NAME from include/configs/trats2.h Changes v4: - remove include of pmic.h from trats2.h - remove include of common.h from pmic.h Changes v5: - none

[U-Boot] [PATCH v6 09/11] trats: add LCD download menu support

2014-01-22 Thread Przemyslaw Marczak
Signed-off-by: Przemyslaw Marczak Acked-by: Lukasz Majewski --- changes v2: - add definitions to check keys - cleanup config definitions - add acked-by Changes v3: - remove CONFIG_BOARD_NAME from include/configs/trats.h Changes v4: - none Changes v5: - none Changes v6: - trats.c : call boot

[U-Boot] [PATCH v6 04/11] common: lcd.c: fix data abort exception when try to access bmp header

2014-01-22 Thread Przemyslaw Marczak
Changes: - le16_to_cpu() to get_unaligned_le16() - le32_to_cpu() to get_unaligned_le32() when access fields in struct bmp header. This changes avoids data abort exception caused by unaligned data access. Signed-off-by: Przemyslaw Marczak Acked-by: Anatolij Gustschin --- Changes v2: - new patch

[U-Boot] [PATCH v6 02/11] trats2: Code cleanup.

2014-01-22 Thread Przemyslaw Marczak
Remove wrong and unused env variables Trats2 is not as GT-I8800. Signed-off-by: Przemyslaw Marczak Acked-by: Jaehoon Chung Cc: Piotr Wilczek --- Changes v2: - none Changes v3: - none Changes v4: - add "include pmic.h" to "max77686_pmic.h" Changes v5: - add acked-by Changes v6: - misc_init_

[U-Boot] [PATCH v6 06/11] video: exynos: fimd: add support for various display color modes

2014-01-22 Thread Przemyslaw Marczak
Now fimd BPP color mode depends on vl_bpp value in struct "panel_info". There is only 16BPP mode check, default mode is 24BPP. Other fimd modes are usually unneeded and also needs some fimd driver modifications and tests. Signed-off-by: Przemyslaw Marczak --- Changes v2: - check panel_info vl_b

[U-Boot] [PATCH v6 01/11] s5p: gpio: change gpio coding method for s5p gpio.

2014-01-22 Thread Przemyslaw Marczak
Old s5p gpio coding method was not clean and was not working properly for all parts and banks. New method is clean and easy to extend. Gpio coding mask: 0x00ff - pin number 0x0000 - bank offset 0xff00 - part number Signed-off-by: Przemyslaw Marczak --- Changes v2: - none Changes v3

[U-Boot] [PATCH v6 00/11] Introduce Samsung misc file and LCD menu.

2014-01-22 Thread Przemyslaw Marczak
This patch set includes changes required to: - properly use of all gpios - introduce common file for Samsung misc code - keys support (PWR, VOL:UP,DOWN) - console support on LCD - 16bpp logo support - introduce LCD menu on Samsung devices Each version changes are described in each patch commit msg

[U-Boot] [PATCH v6 07/11] samsung: boards: update display configs with 16bpp mode.

2014-01-22 Thread Przemyslaw Marczak
16 bpp mode is required by LCD console mode. This change updates exynos board files. Signed-off-by: Przemyslaw Marczak --- Changes v2: -- new patch Changes v3: - none Changes v4: - none Changes v5: - none Changes v6: - none board/samsung/trats/trats.c |2 +- board/samsung/

[U-Boot] [PATCH] zynq: serial: Simplify serial driver initialization

2014-01-22 Thread Michal Simek
Define both serial uarts in the driver and return default uart based on board configuration. - Move baseaddresses to hardware.h - Define default baudrate and clock values Signed-off-by: Michal Simek --- On the top of zynq series [7/7] I have just sent. Forget to add it on the top of it. arch/a

Re: [U-Boot] [PATCH] net/designware - switch driver to phylib usage

2014-01-22 Thread Alexey Brodkin
Hi Sonic, On Wed, 2014-01-22 at 17:10 +0800, Sonic Zhang wrote: > Hi Alexey, > > I failed to apply your patch on the 2014.01 release head. Indeed this one requires 2 other patches which didn't made it to mainline yet. Do you mind to try to apply both patches (http://patchwork.ozlabs.org/patch/3

[U-Boot] [PATCH 5/7] zynq: Enable tftp put command

2014-01-22 Thread Michal Simek
For saving content of memory via tftp to file. Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index 08b53d0..6591372 100644 --- a/include/configs/zynq-common.h +++ b/

[U-Boot] [PATCH 7/7] zynq: Move bootmode to headers

2014-01-22 Thread Michal Simek
These numbers will be reused by SPL. Signed-off-by: Michal Simek --- arch/arm/include/asm/arch-zynq/hardware.h | 6 ++ board/xilinx/zynq/board.c | 6 -- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/arch-zynq/hardware.h b/arch/arm/i

[U-Boot] [PATCH 6/7] zynq: Use board_eth_init if CMD_NET is not enabled

2014-01-22 Thread Michal Simek
board_eth_init can be also called in cases where CMD_NET is not enabled. Signed-off-by: Michal Simek --- board/xilinx/zynq/board.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 08932a2..27aeaa4 100644 --- a/board/xilinx/zynq/boa

[U-Boot] [PATCH 1/7] zynq: Do not explicitely enable icache

2014-01-22 Thread Michal Simek
icache is already enabled by default. Signed-off-by: Michal Simek --- board/xilinx/zynq/board.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index a5b9bde..08932a2 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.

[U-Boot] [PATCH 4/7] zynq: Extend kernel image size to 20MB

2014-01-22 Thread Michal Simek
Extend max kernel image size. Gunzip is checking this value. If kernel is larger, message below is shown. Uncompressing Kernel Image ... Error: inflate() returned -5 GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover Signed-off-by: Michal Simek --- include/configs/

[U-Boot] [PATCH 2/7] zynq: Enable dcache support

2014-01-22 Thread Michal Simek
Enable dcache. Signed-off-by: Michal Simek --- arch/arm/cpu/armv7/zynq/cpu.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv7/zynq/cpu.c b/arch/arm/cpu/armv7/zynq/cpu.c index 9af340e..c771759 100644 --- a/arch/arm/cpu/armv7/zynq/cpu.c +++ b/arch/arm/cpu/armv7/zynq/

  1   2   >