Re: [U-Boot] [PATCH 04/10] dm: timer: Support 64-bit counter

2015-11-05 Thread Thomas Chou
Hi Bin, On 2015年11月05日 22:02, Bin Meng wrote: There are timers with a 64-bit counter value but current timer uclass driver assumes a 32-bit one. Introduce a device tree property "counter-64bit", and modify timer_get_count() in the timer uclass driver to handle the 32-bit/64-bit conversion automa

Re: [U-Boot] [PATCH v3] colibri_vf: Add board_usb_phy_mode function

2015-11-05 Thread maitysanchayan
On 15-10-30 14:20:29, Marek Vasut wrote: > On Friday, October 30, 2015 at 01:26:59 PM, Sanchayan Maity wrote: > > Add board_usb_phy_mode function for detecting whether a port is > > being used as host or client using a GPIO. On Colibri Vybrid we > > provide the GPIO 102 for this very same purpose.

Re: [U-Boot] [PATCH 03/10] timer: altera: Remove the codes to get clock frequency

2015-11-05 Thread Thomas Chou
Hi Bin, On 2015年11月05日 22:02, Bin Meng wrote: Since we have timer uclass to get clock frequency for us, remove the custom version in the altera timer driver. Signed-off-by: Bin Meng --- drivers/timer/altera_timer.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/timer/alte

Re: [U-Boot] [PATCH 02/10] dm: timer: Implement pre_probe()

2015-11-05 Thread Thomas Chou
Hi Bin, On 2015年11月05日 22:02, Bin Meng wrote: Every timer device needs to have a valid clock frequency and it can be specified in the device tree. Use pre_probe() to get this in the timer uclass driver. Signed-off-by: Bin Meng --- drivers/timer/timer-uclass.c | 13 + 1 file cha

Re: [U-Boot] [PATCH 01/10] dm: timer: Fix several nits

2015-11-05 Thread Thomas Chou
Hi Bin, On 2015年11月05日 22:02, Bin Meng wrote: This changes 'Timer' to 'timer' at several places. Signed-off-by: Bin Meng --- drivers/timer/Kconfig| 10 +- drivers/timer/timer-uclass.c | 4 ++-- include/timer.h | 11 ++- 3 files changed, 13 insertions

Re: [U-Boot] [PATCH] fdt: fix address cell count checking in fdt_translate_address()

2015-11-05 Thread Stefan Roese
On 06.11.2015 04:16, Simon Glass wrote: Hi, On 3 November 2015 at 02:57, Przemyslaw Marczak wrote: Hello All, On 10/29/2015 06:15 PM, Simon Glass wrote: Hi Stefan, On 28 October 2015 at 08:37, Przemyslaw Marczak wrote: Commit: dm: core: Enable optional use of fdt_translate_address() E

Re: [U-Boot] [PATCH v4 2/3] cfi_flash: convert to driver model

2015-11-05 Thread Thomas Chou
Hi Stefan, On 2015年11月06日 14:04, Stefan Roese wrote: Hi Thomas, On 06.11.2015 02:09, Thomas Chou wrote: On 2015年11月03日 21:54, Stefan Roese wrote: On 03.11.2015 14:09, Thomas Chou wrote: Convert cfi flash to driver model. Signed-off-by: Thomas Chou --- v2 add dts binding. add more hel

Re: [U-Boot] [PATCH v4 2/3] cfi_flash: convert to driver model

2015-11-05 Thread Stefan Roese
Hi Thomas, On 06.11.2015 02:09, Thomas Chou wrote: On 2015年11月03日 21:54, Stefan Roese wrote: On 03.11.2015 14:09, Thomas Chou wrote: Convert cfi flash to driver model. Signed-off-by: Thomas Chou --- v2 add dts binding. add more help to Kconfig. move struct platdata to top of file as

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

2015-11-05 Thread Thomas Chou
Hi Tom, Please pull, The following changes since commit ed02c532be690b3d0c3e15c81531785a788fd949: Merge branch 'master' of git://git.denx.de/u-boot-video (2015-11-05 07:47:21 -0500) are available in the git repository at: git://git.denx.de/u-boot-nios.git master for you to fetch changes

Re: [U-Boot] [PATCH] nios2: nios2-generic: do not allocate rx buf in net.c

2015-11-05 Thread Thomas Chou
Hi Marek, On 2015年11月06日 09:40, Marek Vasut wrote: On Friday, November 06, 2015 at 12:47:13 AM, Thomas Chou wrote: Hi Marek, Hi! On 2015年11月06日 00:16, Marek Vasut wrote: On Thursday, November 05, 2015 at 09:42:43 AM, Thomas Chou wrote: Do not allocate rx buf in net.c, because altera_tse a

Re: [U-Boot] [PATCH] Makefile: Include vendor common library in include search path

2015-11-05 Thread Masahiro Yamada
2015-11-06 12:30 GMT+09:00 Nishanth Menon : > On Thu, Nov 5, 2015 at 6:15 PM, Simon Glass wrote: >> Hi, >> >> On 5 November 2015 at 00:32, Nishanth Menon wrote: >>> On 11/05/2015 01:28 AM, Nishanth Menon wrote: When the vendor common libraries exists, then board should be able to refere

Re: [U-Boot] [PATCH 1/2] altera_jtag_uart: Adjust the declaration of debug_uart_init()

2015-11-05 Thread Thomas Chou
Hi Simon, diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c index 767603c..5f0d7ac 100644 --- a/drivers/serial/altera_jtag_uart.c +++ b/drivers/serial/altera_jtag_uart.c @@ -130,7 +130,7 @@ U_BOOT_DRIVER(altera_jtaguart) = { #include -void debug_uart_init(

Re: [U-Boot] [PATCH v4 2/3] cfi_flash: convert to driver model

2015-11-05 Thread Thomas Chou
Hi Simon, On 2015年11月06日 11:15, Simon Glass wrote: +config CFI_FLASH + bool "Enable Driver Model for CFI Flash driver" + depends on MTD + help + The Common Flash Interface specification was developed by Intel, + AMD and other flash manufactures that provides a u

Re: [U-Boot] [PATCH v2 1/2] common/board_f.c: move mark_bootstage after arch_cpu_init_dm

2015-11-05 Thread Thomas Chou
Hi Simon, On 2015年11月06日 11:15, Simon Glass wrote: On 30 October 2015 at 01:35, Thomas Chou wrote: As mark_bootstage() uses timer, it should go after driver model is initialized. Signed-off-by: Thomas Chou Reviewed-by: Simon Glass --- common/board_f.c | 2 +- 1 file changed, 1 insertion(

Re: [U-Boot] [PATCH v4 6/7] ARM: OMAP4/5: Add generic board detection hook

2015-11-05 Thread Lokesh Vutla
On Friday 06 November 2015 06:09 AM, Steve Kipisz wrote: > Many TI EVMs have capability to store relevant board information > such as DDR description in EEPROM. Further many pad configuration > variations can occur as part of revision changes in the platform. > In-order to support these at runtim

Re: [U-Boot] [PATCH v4 5/7] ti: AM437x: Use generic EEPROM detection logic

2015-11-05 Thread Lokesh Vutla
On Friday 06 November 2015 06:09 AM, Steve Kipisz wrote: > From: Nishanth Menon > > Now that we have a generic TI eeprom logic which can be reused accross > platforms, reuse the same. > > Signed-off-by: Nishanth Menon > Signed-off-by: Steven Kipisz Reviewed-by: Lokesh Vutla Thanks and reg

Re: [U-Boot] [PATCH v4 4/7] ti: am335x: Use generic EEPROM detection logic

2015-11-05 Thread Lokesh Vutla
On Friday 06 November 2015 06:09 AM, Steve Kipisz wrote: > From: Nishanth Menon > > Use the generic EEPROM detection logic instead of duplicating the AM > eeprom logic. > > Signed-off-by: Nishanth Menon > Signed-off-by: Steven Kipisz Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh >

Re: [U-Boot] [PATCH] Makefile: Include vendor common library in include search path

2015-11-05 Thread Nishanth Menon
On Thu, Nov 5, 2015 at 6:15 PM, Simon Glass wrote: > Hi, > > On 5 November 2015 at 00:32, Nishanth Menon wrote: >> On 11/05/2015 01:28 AM, Nishanth Menon wrote: >>> When the vendor common libraries exists, then board should be able to >>> reference headers located there, rather than having to do

Re: [U-Boot] [PATCH V3 08/13] spl: change return values of spl_*_load_image()

2015-11-05 Thread Simon Glass
On 3 November 2015 at 05:19, Nikita Kiryanov wrote: > Make spl_*_load_image() functions return a value instead of > hanging if a problem is encountered. This enables main spl code > to make the decision whether to hang or not, thus preparing > it to support alternative boot devices. > > Some boot

Re: [U-Boot] [PATCH 05/13] dra7xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

2015-11-05 Thread Simon Glass
Hi, On 31 October 2015 at 05:39, Mugunthan V N wrote: > On Thursday 29 October 2015 10:47 PM, Simon Glass wrote: >> Hi Mugunthan, >> >> On 27 October 2015 at 05:13, Mugunthan V N wrote: >>> > Since spl doesn't support DM currently, do not define DM_SPI and >>> > DM_SPI_FLASH for spl build. >> SP

Re: [U-Boot] [PATCH] fdt: fix address cell count checking in fdt_translate_address()

2015-11-05 Thread Simon Glass
Hi, On 3 November 2015 at 02:57, Przemyslaw Marczak wrote: > Hello All, > > > On 10/29/2015 06:15 PM, Simon Glass wrote: >> >> Hi Stefan, >> >> On 28 October 2015 at 08:37, Przemyslaw Marczak >> wrote: >>> >>> Commit: dm: core: Enable optional use of fdt_translate_address() >>> >>> Enables use o

Re: [U-Boot] [PATCH V2 10/13] spl: add support for alternative boot device

2015-11-05 Thread Simon Glass
Hi, On 3 November 2015 at 08:56, Tom Rini wrote: > On Sat, Oct 31, 2015 at 05:39:56PM +0200, Nikita Kiryanov wrote: >> On Thu, Oct 29, 2015 at 11:19:51AM -0600, Simon Glass wrote: >> > Hi Nikita, >> > >> > On 28 October 2015 at 03:23, Nikita Kiryanov wrote: >> > > Introduce spl_boot_list array,

Re: [U-Boot] [PATCH 2/3] MIPS: bootm: rework and fix broken bootm code

2015-11-05 Thread Simon Glass
On 2 November 2015 at 16:38, Tom Rini wrote: > On Sun, Nov 01, 2015 at 05:36:14PM +0100, Daniel Schwierzeck wrote: > >> The move to 'generic board' as well as changes in the generic >> bootm code broke the boot of FIT uImage's. Especially uImage's >> with additional initramfs images or FDT's do no

Re: [U-Boot] [PATCH 1/3] common/board_f: enable setup_board_part1() for MIPS

2015-11-05 Thread Simon Glass
On 2 November 2015 at 16:37, Tom Rini wrote: > On Sun, Nov 01, 2015 at 05:36:13PM +0100, Daniel Schwierzeck wrote: > >> The variables bd_t:bi_memstart and bd_t:bi_memsize have to be >> initialized also on MIPS. Otherwise LMB and cmd_bdinfo do not >> correctly work. This currently breaks the bootin

Re: [U-Boot] [PATCH v2 3/3] dm: sf: Add support for all targets which requires MANUAL_RELOC

2015-11-05 Thread Simon Glass
On 30 October 2015 at 08:56, Michal Simek wrote: > It is follow up patch based on > "dm: Add support for all targets which requires MANUAL_RELOC" > (sha1: 484fdf5ba058b07be5ca82763aa2b72063540ef3) > to update function pointers for DM. > > Using post_bind is not ideal but it is one on current optio

Re: [U-Boot] [PATCH v4 2/3] cfi_flash: convert to driver model

2015-11-05 Thread Simon Glass
Hi Thomas, On 3 November 2015 at 06:09, Thomas Chou wrote: > Convert cfi flash to driver model. > > Signed-off-by: Thomas Chou > --- > v2 > add dts binding. > add more help to Kconfig. > move struct platdata to top of file as Simon suggested. > v3 > change to MTD uclass. > v4 > fix fdt

Re: [U-Boot] [PATCH v2 1/2] common/board_f.c: move mark_bootstage after arch_cpu_init_dm

2015-11-05 Thread Simon Glass
On 30 October 2015 at 01:35, Thomas Chou wrote: > As mark_bootstage() uses timer, it should go after driver model > is initialized. > > Signed-off-by: Thomas Chou > Reviewed-by: Simon Glass > --- > common/board_f.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glas

Re: [U-Boot] [PATCH V3 10/14] Exynos54xx: dts: add ADC node

2015-11-05 Thread Simon Glass
Hi Przemyslaw, On 29 October 2015 at 07:58, Przemyslaw Marczak wrote: > Hi Simon, > > On 10/28/2015 07:50 PM, Simon Glass wrote: >> >> On 27 October 2015 at 06:08, Przemyslaw Marczak >> wrote: >>> >>> This commit adds common ADC node, which is disabled as default. >>> >>> Signed-off-by: Przemysl

Re: [U-Boot] [PATCH 4/8] dm-sf: use mtd_ops, drop dm_spi_flash_ops

2015-11-05 Thread Simon Glass
Hi Jagan, On 29 October 2015 at 07:11, Jagan Teki wrote: > Hi Heiko, > > On 29 October 2015 at 12:05, Heiko Schocher wrote: >> Hello Jagan, >> >> Am 12.10.2015 um 21:54 schrieb Jagan Teki: >>> >>> Since mtd_info ops got introduced, just drop the unneeded >>> dm_spi_flash operations. >>> >>> Sign

Re: [U-Boot] [PATCH 1/2] altera_jtag_uart: Adjust the declaration of debug_uart_init()

2015-11-05 Thread Simon Glass
Hi Thomas, On 5 November 2015 at 18:28, Thomas Chou wrote: > > > > On 2015年11月03日 14:19, Thomas Chou wrote: >> >> Follow commit 97b059730218 ("debug_uart: Adjust the declaration of >> debug_uart_init()") >> >> Signed-off-by: Thomas Chou >> --- >> drivers/serial/altera_jtag_uart.c | 2 +- >> 1

Re: [U-Boot] [PATCH v1 0/7] Enable high speed and heavy load for DDR4 for LSCH3

2015-11-05 Thread Yuantian Tang
> -Original Message- > From: York Sun [mailto:york...@freescale.com] > Sent: Friday, November 06, 2015 1:42 AM > To: Joakim Tjernlund ; Tang Yuantian- > B29983 ; u-boot@lists.denx.de > Cc: Kushwaha Prabhakar-B32579 ; Sharma > Bhupesh-B45370 ; tr...@konsulko.com; > Liu Shengzhou-B36685 ; >

Re: [U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

2015-11-05 Thread Tom Rini
On Thu, Nov 05, 2015 at 06:07:00PM -0200, Fabio Estevam wrote: > On Thu, Nov 5, 2015 at 5:10 PM, Tom Rini wrote: > > > I can fix this much locally. sandbox fails to build at the end: > > +(sandbox) ../arch/sandbox/include/asm/types.h:53:23: error: > > ‘CONFIG_SANDBOX_BITS_PER_LONG’ undeclared (f

Re: [U-Boot] [PATCH] nios2: nios2-generic: do not allocate rx buf in net.c

2015-11-05 Thread Marek Vasut
On Friday, November 06, 2015 at 12:47:13 AM, Thomas Chou wrote: > Hi Marek, Hi! > On 2015年11月06日 00:16, Marek Vasut wrote: > > On Thursday, November 05, 2015 at 09:42:43 AM, Thomas Chou wrote: > >> Do not allocate rx buf in net.c, because altera_tse allocates > >> its own rx buf in driver. This c

Re: [U-Boot] [PATCH v2 5/5] net: altera_tse: use BIT macro

2015-11-05 Thread Thomas Chou
On 2015年11月05日 20:54, Thomas Chou wrote: Replace numerical bit shift with BIT macro in altera_tse :%s/(1 << nr)/BIT(nr)/g where nr = 0, 1, 2 31 Signed-off-by: Thomas Chou Reviewed-by: Marek Vasut Reviewed-by: Chin Liang See Reviewed-by: Jagan Teki --- drivers/net/altera_tse.h | 30

Re: [U-Boot] [PATCH v2 4/5] net: altera_tse: remove the useless parenthesis

2015-11-05 Thread Thomas Chou
On 2015年11月05日 20:54, Thomas Chou wrote: Remove the useless parenthesis. Signed-off-by: Thomas Chou Reviewed-by: Marek Vasut Reviewed-by: Chin Liang See --- drivers/net/altera_tse.h | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) Applied to u-boo

Re: [U-Boot] [PATCH v2 3/5] net: altera_tse: fix packed and aligned attribute

2015-11-05 Thread Thomas Chou
On 2015年11月05日 20:54, Thomas Chou wrote: Fix packed and aligned attribute warnings. WARNING: __packed is preferred over __attribute__((packed)) #14: FILE: drivers/net/altera_tse.h:14: +#define __packed_1___attribute__ ((packed, aligned(1))) WARNING: __aligned(size) is preferred over __att

Re: [U-Boot] [PATCH v2 2/5] net: altera_tse: use data type u32 for regs and desc

2015-11-05 Thread Thomas Chou
On 2015年11月05日 20:54, Thomas Chou wrote: Use data type u32/u16/u8 for regs and desc, as it is more portable. Signed-off-by: Thomas Chou Reviewed-by: Marek Vasut Reviewed-by: Chin Liang See --- drivers/net/altera_tse.c | 16 drivers/net/altera_tse.h | 104 +++

Re: [U-Boot] [PATCH v2 1/5] net: altera_tse: remove unused macro and regs def

2015-11-05 Thread Thomas Chou
On 2015年11月05日 20:54, Thomas Chou wrote: Remove unused macro and regs def. Signed-off-by: Thomas Chou Reviewed-by: Marek Vasut Reviewed-by: Chin Liang See --- v2 remove unused mac regs def. drivers/net/altera_tse.h | 104 ++- 1 file changed

Re: [U-Boot] [PATCH 2/2] nios2: trim CONFIG_SYS_MEMTEST_END

2015-11-05 Thread Thomas Chou
On 2015年11月04日 13:30, Thomas Chou wrote: Trim CONFIG_SYS_MEMTEST_END location. CONFIG_SYS_MONITOR_LEN Reserving 256k for U-Boot at: d7fc CONFIG_ENV_SIZE CONFIG_SYS_MALLOC_LEN Reserving 256k for malloc() at: d7f8 0x1 for the rest Reserving 68 Bytes for Board Info at: d7f7ff

Re: [U-Boot] [PATCH 1/2] nios2: trim CONFIG_SYS_MALLOC_LEN

2015-11-05 Thread Thomas Chou
On 2015年11月04日 13:30, Thomas Chou wrote: Trim CONFIG_SYS_MALLOC_LEN size, because CONFIG_ENV_SIZE is included to total memory allocation in common.h, Signed-off-by: Thomas Chou --- include/configs/nios2-generic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-ni

Re: [U-Boot] [PATCH] net: altera_tse: get numbers of fdt address and size cells

2015-11-05 Thread Thomas Chou
On 2015年11月04日 20:28, Thomas Chou wrote: Get numbers of fdt address and size cells in altera_tse_probe(), thereby remove the assumption of one address cell and one size cell. Signed-off-by: Thomas Chou --- drivers/net/altera_tse.c | 14 -- 1 file changed, 8 insertions(+), 6 del

Re: [U-Boot] [PATCH 3/3] nios2: fix cached mode in clearing the BSS

2015-11-05 Thread Thomas Chou
On 2015年11月03日 14:20, Thomas Chou wrote: As the generic board runs in cached mode, it should not use "stwio" which bypass the cache. Signed-off-by: Thomas Chou --- arch/nios2/cpu/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-nios. diff --git a/arch/ni

Re: [U-Boot] [PATCH 2/3] nios2: remove CONFIG_SYS_INIT_SP macro

2015-11-05 Thread Thomas Chou
On 2015年11月03日 14:20, Thomas Chou wrote: Remove CONFIG_SYS_INIT_SP macro, as the initial stack is set to below the u-boot code. Signed-off-by: Thomas Chou --- arch/nios2/cpu/start.S | 3 +-- include/configs/nios2-generic.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-)

Re: [U-Boot] [PATCH 1/3] nios2: remove CONFIG_SYS_MALLOC_BASE macro

2015-11-05 Thread Thomas Chou
On 2015年11月03日 14:20, Thomas Chou wrote: Remove CONFIG_SYS_MALLOC_BASE macro, as it is not used by the generic board. Signed-off-by: Thomas Chou --- include/configs/nios2-generic.h | 2 -- 1 file changed, 2 deletions(-) Applied to u-boot-nios. diff --git a/include/configs/nios2-generi

Re: [U-Boot] [PATCH 2/2] altera_uart: Adjust the declaration of debug_uart_init()

2015-11-05 Thread Thomas Chou
On 2015年11月03日 14:19, Thomas Chou wrote: Follow commit 97b059730218 ("debug_uart: Adjust the declaration of debug_uart_init()") Signed-off-by: Thomas Chou --- drivers/serial/altera_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-nios. diff --git a/driver

Re: [U-Boot] [PATCH 1/2] altera_jtag_uart: Adjust the declaration of debug_uart_init()

2015-11-05 Thread Thomas Chou
On 2015年11月03日 14:19, Thomas Chou wrote: Follow commit 97b059730218 ("debug_uart: Adjust the declaration of debug_uart_init()") Signed-off-by: Thomas Chou --- drivers/serial/altera_jtag_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-nios. diff --git a/d

Re: [U-Boot] [PATCH v4 2/3] cfi_flash: convert to driver model

2015-11-05 Thread Thomas Chou
Hi Stefan, On 2015年11月03日 21:54, Stefan Roese wrote: On 03.11.2015 14:09, Thomas Chou wrote: Convert cfi flash to driver model. Signed-off-by: Thomas Chou --- v2 add dts binding. add more help to Kconfig. move struct platdata to top of file as Simon suggested. v3 change to MTD ucl

[U-Boot] [PATCH v4 6/7] ARM: OMAP4/5: Add generic board detection hook

2015-11-05 Thread Steve Kipisz
Many TI EVMs have capability to store relevant board information such as DDR description in EEPROM. Further many pad configuration variations can occur as part of revision changes in the platform. In-order to support these at runtime, we for a board detection hook which is available for override fr

[U-Boot] [PATCH v4 1/7] ARM: OMAP4/5: Centralize early clock initialization

2015-11-05 Thread Steve Kipisz
Early clock initialization is currently done in two stages for OMAP4/5 SoCs. The first stage is the initialization of console clocks and then we initialize basic clocks for functionality necessary for SoC initialization and basic board functionality. By splitting up prcm_init and centralizing this

[U-Boot] [PATCH v4 2/7] ARM: OMAP4/5: Centralize gpi2c_init

2015-11-05 Thread Steve Kipisz
Centralize gpi2c_init into omap_common from the sys_proto header so that the information can be reused across SoCs. Signed-off-by: Steve Kipisz Reviewed-by: Tom Rini Reviewed-by: Lokesh Vutla --- Changes in v4 (since v3): - Picked up Reviewed-by v3: https://patchwork.ozlabs.org/patch/540196

[U-Boot] [PATCH v4 3/7] ARM: omap-common: Add standard access for board description EEPROM

2015-11-05 Thread Steve Kipisz
From: Lokesh Vutla Several TI EVMs have EEPROM that can contain board description information such as revision, DDR definition, serial number, etc. In just about all cases, these EEPROM are on the I2C bus and provides us the opportunity to centralize the generic operations involved. The on-board

[U-Boot] [PATCH v4 4/7] ti: am335x: Use generic EEPROM detection logic

2015-11-05 Thread Steve Kipisz
From: Nishanth Menon Use the generic EEPROM detection logic instead of duplicating the AM eeprom logic. Signed-off-by: Nishanth Menon Signed-off-by: Steven Kipisz --- Changes in v4: - New Patch - Depends on https://patchwork.ozlabs.org/patch/540280/ board/ti/am335x/board.c | 99 +++

[U-Boot] [PATCH v4 5/7] ti: AM437x: Use generic EEPROM detection logic

2015-11-05 Thread Steve Kipisz
From: Nishanth Menon Now that we have a generic TI eeprom logic which can be reused accross platforms, reuse the same. Signed-off-by: Nishanth Menon Signed-off-by: Steven Kipisz --- Changes in v4: - New patch - depends on https://patchwork.ozlabs.org/patch/540280/ board/ti/am43xx/board.c |

[U-Boot] [PATCH v4 7/7] board: ti: AM57xx: Add detection logic for AM57xx-evm

2015-11-05 Thread Steve Kipisz
Current AM57xx evm supports both BeagleBoard-X15 (http://beagleboard.org/x15) and AM57xx EVM (http://www.ti.com/tool/tmdxevm5728). The AM572x EValuation Module(EVM) provides an affordable platform to quickly start evaluation of Sitara. ARM Cortex-A15 AM57x Processors (AM5728, AM5726, AM5718, AM571

Re: [U-Boot] [PATCH v2 2/2] mtd: add altera quadspi driver

2015-11-05 Thread Thomas Chou
Hi Jagan, On 2015年11月05日 22:57, Jagan Teki wrote: The altera quad spi core is very special that the hardware handle the spi-nor protocol. The core is designed to replace the CFI flash interface. So there is nothing to do with SPI from the parallel flash interface. It is memory mapped. There is

Re: [U-Boot] [Patch V2 1/4] pci/layerscape: add support for LS1043A PCIe LUT register access

2015-11-05 Thread Simon Glass
Hi, On 4 November 2015 at 22:00, Bin Meng wrote: > +Simon, > > Hi, > > On Thu, Nov 5, 2015 at 7:45 AM, Scott Wood wrote: >> On Mon, 2015-11-02 at 19:15 +0800, Gong Qianyu wrote: >>> diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c >>> index 4cee038..8471678 100644 >>> -

Re: [U-Boot] [PATCH] Makefile: Include vendor common library in include search path

2015-11-05 Thread Simon Glass
Hi, On 5 November 2015 at 00:32, Nishanth Menon wrote: > On 11/05/2015 01:28 AM, Nishanth Menon wrote: >> When the vendor common libraries exists, then board should be able to >> reference headers located there, rather than having to do weird logic >> such as '#include "../common/xyz.h"'. >> >> S

Re: [U-Boot] [PATCH V3 08/14] dm: adc: add Exynos54xx compatible ADC driver

2015-11-05 Thread Simon Glass
On 27 October 2015 at 06:08, Przemyslaw Marczak wrote: > This commit adds driver for Exynos54xx ADC subsystem. > > The driver is implemented using driver model, amd provides > ADC uclass's methods for ADC single channel operations: > - adc_start_channel() > - adc_channel_data() > - adc_stop() > >

Re: [U-Boot] [PATCH V3 13/14] sandbox: add ADC driver

2015-11-05 Thread Simon Glass
Hi Przemyslaw, On 27 October 2015 at 06:08, Przemyslaw Marczak wrote: > This commit adds implementation of Sandbox ADC device emulation. > The device provides: > - single and multi-channel conversion > - 4 channels with predefined conversion output data > - 16-bit resolution > > Signed-off-by: Pr

Re: [U-Boot] [PATCH V3 14/14] sandbox: add ADC unit tests

2015-11-05 Thread Simon Glass
Hi Przemyslaw, On 27 October 2015 at 06:08, Przemyslaw Marczak wrote: > This commit adds unit tests for ADC uclass's methods using sandbox ADC. > > Testing proper ADC binding: > - dm_test_adc_bind()- device binding > - dm_test_adc_wrong_channel_selection() - checking wrong cha

Re: [U-Boot] [PATCH] nios2: nios2-generic: do not allocate rx buf in net.c

2015-11-05 Thread Thomas Chou
Hi Marek, On 2015年11月06日 00:16, Marek Vasut wrote: On Thursday, November 05, 2015 at 09:42:43 AM, Thomas Chou wrote: Do not allocate rx buf in net.c, because altera_tse allocates its own rx buf in driver. This can save 6KB memory. Signed-off-by: Thomas Chou Shouldn't we instead fix the alte

Re: [U-Boot] [PATCH v2 5/5] net: altera_tse: use BIT macro

2015-11-05 Thread Joe Hershberger
On Thu, Nov 5, 2015 at 6:54 AM, Thomas Chou wrote: > Replace numerical bit shift with BIT macro > in altera_tse > > :%s/(1 << nr)/BIT(nr)/g > where nr = 0, 1, 2 31 > > Signed-off-by: Thomas Chou > Reviewed-by: Marek Vasut > Reviewed-by: Chin Liang See > Reviewed-by: Jagan Teki Acked-by:

Re: [U-Boot] [PATCH v2 4/5] net: altera_tse: remove the useless parenthesis

2015-11-05 Thread Joe Hershberger
On Thu, Nov 5, 2015 at 6:54 AM, Thomas Chou wrote: > Remove the useless parenthesis. > > Signed-off-by: Thomas Chou > Reviewed-by: Marek Vasut > Reviewed-by: Chin Liang See Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de http:

Re: [U-Boot] [PATCH v2 2/5] net: altera_tse: use data type u32 for regs and desc

2015-11-05 Thread Joe Hershberger
On Thu, Nov 5, 2015 at 6:54 AM, Thomas Chou wrote: > Use data type u32/u16/u8 for regs and desc, as it is more > portable. > > Signed-off-by: Thomas Chou > Reviewed-by: Marek Vasut > Reviewed-by: Chin Liang See Acked-by: Joe Hershberger http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 3/5] net: altera_tse: fix packed and aligned attribute

2015-11-05 Thread Joe Hershberger
On Thu, Nov 5, 2015 at 6:54 AM, Thomas Chou wrote: > Fix packed and aligned attribute warnings. > > WARNING: __packed is preferred over __attribute__((packed)) > #14: FILE: drivers/net/altera_tse.h:14: > +#define __packed_1___attribute__ ((packed, aligned(1))) > > WARNING: __aligned(size) is p

Re: [U-Boot] [PATCH v2 1/5] net: altera_tse: remove unused macro and regs def

2015-11-05 Thread Joe Hershberger
Hi Thomas, On Thu, Nov 5, 2015 at 6:54 AM, Thomas Chou wrote: > Remove unused macro and regs def. > > Signed-off-by: Thomas Chou > Reviewed-by: Marek Vasut > Reviewed-by: Chin Liang See Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists

Re: [U-Boot] [RFC PATCH 6/8] net: TFTP over IPv6

2015-11-05 Thread Joe Hershberger
Hi Chris, On Wed, Nov 4, 2015 at 2:42 AM, Chris Packham wrote: > On Wed, Nov 4, 2015 at 8:43 AM, Joe Hershberger > wrote: >> Hi Chris, >> >> On Tue, Nov 3, 2015 at 4:15 AM, Chris Packham >> wrote: >>> On Tue, Nov 3, 2015 at 9:43 AM, Joe Hershberger >>> wrote: Hi Chris, On Mon,

Re: [U-Boot] [PATCH v1 0/7] Enable high speed and heavy load for DDR4 for LSCH3

2015-11-05 Thread York Sun
On 11/05/2015 11:53 AM, Joakim Tjernlund wrote: > On Thu, 2015-11-05 at 10:29 -0800, York Sun wrote: >> >> On 11/05/2015 10:19 AM, Joakim Tjernlund wrote: >>> On Thu, 2015-11-05 at 09:42 -0800, York Sun wrote: On 11/05/2015 01:55 AM, Joakim Tjernlund wrote: > On Thu, 2015-11-05 at 0

Re: [U-Boot] [PATCH v2] mmc: atmel: Properly fix clock configuration

2015-11-05 Thread Marek Vasut
On Thursday, November 05, 2015 at 08:58:30 PM, Gregory CLEMENT wrote: > Timing issue occurs on eMMC not only when modifying the frequency but > also for all the switch command(CMD6). According to the MMC spec waiting > 8 clocks after a switch command would be the thing to do. > > This patch allows

Re: [U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

2015-11-05 Thread Fabio Estevam
On Thu, Nov 5, 2015 at 5:10 PM, Tom Rini wrote: > I can fix this much locally. sandbox fails to build at the end: > +(sandbox) ../arch/sandbox/include/asm/types.h:53:23: error: > ‘CONFIG_SANDBOX_BITS_PER_LONG’ undeclared (first use in this function) Ok, here is the fix on top of patch 18: ---

[U-Boot] [PATCH v2] mmc: atmel: Properly fix clock configuration

2015-11-05 Thread Gregory CLEMENT
Timing issue occurs on eMMC not only when modifying the frequency but also for all the switch command(CMD6). According to the MMC spec waiting 8 clocks after a switch command would be the thing to do. This patch allows fixing CPU hang observed when trying to changing the bus width on a eMMC on SAM

Re: [U-Boot] [PATCH] mmc: atmel: Properly fix clock configuration

2015-11-05 Thread Gregory CLEMENT
Hi Marek, On jeu., nov. 05 2015, Marek Vasut wrote: > On Thursday, November 05, 2015 at 03:53:16 PM, Gregory CLEMENT wrote: >> Timing issue occurs on eMMC not only when modifying the frequency but >> also for all the switch command(CMD6). According to the MMC spec waiting >> 8 clocks after a s

Re: [U-Boot] [PATCH v1 0/7] Enable high speed and heavy load for DDR4 for LSCH3

2015-11-05 Thread Joakim Tjernlund
On Thu, 2015-11-05 at 10:29 -0800, York Sun wrote: > > On 11/05/2015 10:19 AM, Joakim Tjernlund wrote: > > On Thu, 2015-11-05 at 09:42 -0800, York Sun wrote: > > > > > > On 11/05/2015 01:55 AM, Joakim Tjernlund wrote: > > > > On Thu, 2015-11-05 at 08:23 +, Yuantian Tang wrote: > > > > > Hi Jo

Re: [U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

2015-11-05 Thread Tom Rini
On Thu, Nov 05, 2015 at 03:53:30PM -0200, Fabio Estevam wrote: > Hi Tom, > > On Thu, Nov 5, 2015 at 2:35 PM, Tom Rini wrote: > > > For tqma6s_mba6_spi, at91sam9261ek_dataflash_cs0 this is not bisectable. > > I'm going to see how the things are at the end of the series only now. > > Ok, I have a

Re: [U-Boot] [PATCH v1 0/7] Enable high speed and heavy load for DDR4 for LSCH3

2015-11-05 Thread York Sun
On 11/05/2015 10:19 AM, Joakim Tjernlund wrote: > On Thu, 2015-11-05 at 09:42 -0800, York Sun wrote: >> >> On 11/05/2015 01:55 AM, Joakim Tjernlund wrote: >>> On Thu, 2015-11-05 at 08:23 +, Yuantian Tang wrote: Hi Jocke, we achieved deep sleep mode that did exactly what you ask

Re: [U-Boot] [PATCH V3 07/14] dm: adc: add simple ADC uclass implementation

2015-11-05 Thread Simon Glass
Hi Przemyslaw, On 27 October 2015 at 06:08, Przemyslaw Marczak wrote: > This commit adds: > - new uclass id: UCLASS_ADC > - new uclass driver: drivers/adc/adc-uclass.c > > The new uclass's API allows for ADC operation on: > * single-channel with channel selection by a number > * multti-channel wi

Re: [U-Boot] [PATCH v2 1/3] sf: Add dm_spi_flash_probe

2015-11-05 Thread Simon Glass
Hi Jagan, On 23 October 2015 at 21:54, Jagan Teki wrote: > Updated dm-spi-flash probe using dm_spi_flash_probe. > > Cc: Simon Glass > Signed-off-by: Jagan Teki > --- > Changes for v2: > - none > > common/cmd_sf.c | 23 --- > drivers/mtd/spi/sf-uclass.c |

Re: [U-Boot] [PATCH v2 3/3] sf: Remove spi_flash_remove

2015-11-05 Thread Simon Glass
On 23 October 2015 at 21:54, Jagan Teki wrote: > Use direct call to device_remove instead of exctra > spi_flash_remove defination. > > Cc: Simon Glass > Signed-off-by: Jagan Teki > --- > Changes for v2: > - none > > drivers/mtd/spi/sf-uclass.c | 7 +-- > include/spi_flash.h

Re: [U-Boot] [PATCH V3 06/14] dm: regulator: add function device_get_supply_regulator()

2015-11-05 Thread Simon Glass
Hi Przemyslaw, On 27 October 2015 at 06:07, Przemyslaw Marczak wrote: > > Some devices are supplied by configurable regulator's output. > But there was no function for getting it. This commit adds > function, that allows for getting the supply device by it's phandle. > > The returned regulator de

Re: [U-Boot] [PATCH v2 2/3] sf: spi_flash_probe for both dm/non-dm

2015-11-05 Thread Simon Glass
Hi Jagan, On 23 October 2015 at 21:54, Jagan Teki wrote: > Let's use spi_flash_probe for dm and no-dm spi-flash > and make respective function definations separately. > > Cc: Simon Glass > Signed-off-by: Jagan Teki > --- > Changes for v2: > - none > > common/cmd_sf.c | 19 +

Re: [U-Boot] [PATCH v1 0/7] Enable high speed and heavy load for DDR4 for LSCH3

2015-11-05 Thread Joakim Tjernlund
On Thu, 2015-11-05 at 09:42 -0800, York Sun wrote: > > On 11/05/2015 01:55 AM, Joakim Tjernlund wrote: > > On Thu, 2015-11-05 at 08:23 +, Yuantian Tang wrote: > > > Hi Jocke, > > > > > > we achieved deep sleep mode that did exactly what you asked for. > > > If waken up from deep sleep, soc wi

Re: [U-Boot] [PATCH v2 4/5] armv7/fsl-ls102xa: Workaround for DDR erratum A008514

2015-11-05 Thread York Sun
On 11/05/2015 02:26 AM, Yuan Yao wrote: > This is a workaround for hardware erratum. > Write the value of 63b2_0002h to EDDRTQCFG will optimal the > memory controller performance. > > The value: 63b2_0002h comes from the hardware team. > > Signed-off-by: Yuan Yao > --- > Changes in v2: > Rewri

Re: [U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

2015-11-05 Thread Fabio Estevam
Hi Tom, On Thu, Nov 5, 2015 at 2:35 PM, Tom Rini wrote: > For tqma6s_mba6_spi, at91sam9261ek_dataflash_cs0 this is not bisectable. > I'm going to see how the things are at the end of the series only now. Ok, I have a fix for this issue. We just need the following patch to be applied after the s

Re: [U-Boot] [PATCH v1 0/7] Enable high speed and heavy load for DDR4 for LSCH3

2015-11-05 Thread York Sun
On 11/05/2015 01:55 AM, Joakim Tjernlund wrote: > On Thu, 2015-11-05 at 08:23 +, Yuantian Tang wrote: >> Hi Jocke, >> >> we achieved deep sleep mode that did exactly what you asked for. >> If waken up from deep sleep, soc will resume from uboot and re-initialized >> DDR controller with conte

Re: [U-Boot] [PATCH] mmc: atmel: Properly fix clock configuration

2015-11-05 Thread Marek Vasut
On Thursday, November 05, 2015 at 03:53:16 PM, Gregory CLEMENT wrote: > Timing issue occurs on eMMC not only when modifying the frequency but > also for all the switch command(CMD6). According to the MMC spec waiting > 8 clocks after a switch command would be the thing to do. > > This patch allows

Re: [U-Boot] [PATCH] nios2: nios2-generic: do not allocate rx buf in net.c

2015-11-05 Thread Marek Vasut
On Thursday, November 05, 2015 at 09:42:43 AM, Thomas Chou wrote: > Do not allocate rx buf in net.c, because altera_tse allocates > its own rx buf in driver. This can save 6KB memory. > > Signed-off-by: Thomas Chou Shouldn't we instead fix the altera driver to use the pre-allocated buffer ? Bes

Re: [U-Boot] [PATCH v2 2/2] mtd: add altera quadspi driver

2015-11-05 Thread Marek Vasut
On Thursday, November 05, 2015 at 03:57:01 PM, Jagan Teki wrote: > Hi Thomas, > > On 5 November 2015 at 20:15, Thomas Chou wrote: > > Hi Jagan, > > > > On 2015年11月05日 22:25, Jagan Teki wrote: > >> On 5 November 2015 at 14:17, Thomas Chou wrote: > >>> Add Altera Generic Quad SPI Controller suppo

Re: [U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

2015-11-05 Thread Tom Rini
On Thu, Nov 05, 2015 at 01:51:52PM -0200, Fabio Estevam wrote: > On Thu, Nov 5, 2015 at 1:51 PM, Tom Rini wrote: > > On Thu, Nov 05, 2015 at 12:43:22PM -0200, Fabio Estevam wrote: > > > >> Use the log2 header files from the kernel. > >> > >> Imported from kernel 4.2.3. > >> > >> Signed-off-by: Fa

[U-Boot] [PATCH] ARM64: zynqmp: Sync zynq_sdhci_init() declaration

2015-11-05 Thread Michal Simek
This patch fix compilation error: drivers/mmc/zynq_sdhci.c:16:5: error: conflicting types for ‘zynq_sdhci_init’ int zynq_sdhci_init(phys_addr_t regbase) ^ In file included from drivers/mmc/zynq_sdhci.c:14:0: ./arch/arm/include/asm/arch/sys_proto.h:16:5: note: previous declaration of ‘zynq_sdh

Re: [U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

2015-11-05 Thread Fabio Estevam
On Thu, Nov 5, 2015 at 1:51 PM, Tom Rini wrote: > On Thu, Nov 05, 2015 at 12:43:22PM -0200, Fabio Estevam wrote: > >> Use the log2 header files from the kernel. >> >> Imported from kernel 4.2.3. >> >> Signed-off-by: Fabio Estevam >> Reviewed-by: Tom Rini >> Reviewed-by: Heiko Schocher >> Review

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

2015-11-05 Thread Tom Rini
On Thu, Nov 05, 2015 at 09:02:06AM +0100, Anatolij Gustschin wrote: > Hello Tom, > > The following changes since commit 8168ee38c26be586012743ded262145081d49d05: > > Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx (2015-11-04 > 18:30:51 -0500) > > are available in the git repositor

Re: [U-Boot] [PATCH v7 01/21] include: Add log2 header from the kernel

2015-11-05 Thread Tom Rini
On Thu, Nov 05, 2015 at 12:43:22PM -0200, Fabio Estevam wrote: > Use the log2 header files from the kernel. > > Imported from kernel 4.2.3. > > Signed-off-by: Fabio Estevam > Reviewed-by: Tom Rini > Reviewed-by: Heiko Schocher > Reviewed-by: Jagan Teki I'm giving this and the rest of the se

Re: [U-Boot] [PULL] u-boot-usb/master

2015-11-05 Thread Tom Rini
On Thu, Nov 05, 2015 at 03:50:04AM +0100, Marek Vasut wrote: > The following changes since commit 96d59e9d6aa74e35c63dc74da10e41f8ba0f6de4: > > mpc85xx/t2081: enable parsing DDR ratio for T2081 rev1.1 (2015-11-02 > 08:51:50 > -0800) > > are available in the git repository at: > > git://gi

Re: [U-Boot] [PULL] u-boot-socfpga/master

2015-11-05 Thread Tom Rini
On Thu, Nov 05, 2015 at 03:50:01AM +0100, Marek Vasut wrote: > The following changes since commit 96d59e9d6aa74e35c63dc74da10e41f8ba0f6de4: > > mpc85xx/t2081: enable parsing DDR ratio for T2081 rev1.1 (2015-11-02 > 08:51:50 > -0800) > > are available in the git repository at: > > git://gi

Re: [U-Boot] [v2] please pull u-boot-samsung master

2015-11-05 Thread Tom Rini
On Thu, Nov 05, 2015 at 03:36:04PM +0900, Minkyu Kang wrote: > Dear Tom, > > The following changes since commit 0e067a65f57189703668826d9841fea477026bf6: > > x86: Select the ns16550 debug UART for minnowmax, chromebook_link > (2015-10-30 18:04:14 -0400) > > are available in the git repositor

Re: [U-Boot] u-boot device model SPI + SPI Flash

2015-11-05 Thread Michal Simek
Hi, On 11/05/2015 03:40 PM, Hoefle Marco wrote: > Hello Michal, > I have already adapted microblaze-generic.h accordingly (I think): > #define CONFIG_DM > #define CONFIG_DM_SPI 1 > # define CONFIG_DM_SPI_FLASH 1 > > Only with these settings u-boot xilinx_spi.c will compile. > Without DM driver wo

[U-Boot] [PATCH] Fixing timing issue with eMMC on atmel MCI

2015-11-05 Thread Gregory CLEMENT
Hi, I got similar issues that Marek had: http://lists.denx.de/pipermail/u-boot/2015-October/231420.html. When trying to initialize an eMMC on a SAMA5D4 based board the CPU stuck. However, the fix sent by Marek was not enough for me and after digging in the sources and trying many combinations I f

[U-Boot] [PATCH] mmc: atmel: Properly fix clock configuration

2015-11-05 Thread Gregory CLEMENT
Timing issue occurs on eMMC not only when modifying the frequency but also for all the switch command(CMD6). According to the MMC spec waiting 8 clocks after a switch command would be the thing to do. This patch allows fixing CPU hang observed when trying to changing the bus width on a eMMC on SAM

[U-Boot] [PATCH v7 21/21] sf: Add SPI NOR protection mechanism

2015-11-05 Thread Fabio Estevam
Many SPI flashes have protection bits (BP2, BP1 and BP0) in the status register that can protect selected regions of the SPI NOR. Take these bits into account when performing erase operations, making sure that the protected areas are skipped. Tested on a mx6qsabresd: => sf probe SF: Detected M25

Re: [U-Boot] [PATCH v2 2/2] mtd: add altera quadspi driver

2015-11-05 Thread Jagan Teki
Hi Thomas, On 5 November 2015 at 20:15, Thomas Chou wrote: > Hi Jagan, > > On 2015年11月05日 22:25, Jagan Teki wrote: >> >> On 5 November 2015 at 14:17, Thomas Chou wrote: >>> >>> Add Altera Generic Quad SPI Controller support. The controller >>> converts SPI NOR flash to parallel flash interface.

  1   2   >