[U-Boot] [PATCH v4 08/16] drivers: spi: ti_qspi: convert driver to adopt device driver model

2015-12-14 Thread Mugunthan V N
adopt ti_qspi driver to device driver model Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes from v3->v4: * Use op_mode_{t/r}x for flash tx/rx operation modes. This has been tested on am437x-sk evm logs [1] and pushed a branch for others to test [2] [1]

[U-Boot] [PATCH v4 05/16] spi: Add support for dual and quad mode

2015-12-14 Thread Mugunthan V N
spi bus can support dual and quad wire data transfers for tx and rx. So defining dual and quad modes for both tx and rx. Also add support to parse bus width used for spi tx and rx transfers. Signed-off-by: Mugunthan V N Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes from v3->v4 * u

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

2015-12-14 Thread Jagan Teki
On 5 November 2015 at 23:55, Simon Glass wrote: > 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/mt

Re: [U-Boot] [PATCH 2/2] sf: Rename bank_end to bar_end in read_bar

2015-12-14 Thread Jagan Teki
On 13 December 2015 at 23:17, Jagan Teki wrote: > bar_end gives more meaningfull compared to bank_end and > spi_flash_write_bar uses bar_end so replaced bank_end with > bar_end in spi_flash_read_bar > > Signed-off-by: Jagan Teki > --- Applied to u-boot-spi/master thanks! -- Jagan.

Re: [U-Boot] [PATCH 1/2] sf: Rename spi_flash_set_* functions

2015-12-14 Thread Jagan Teki
On 13 December 2015 at 23:17, Jagan Teki wrote: > Since quad_mode functions are local to spi flash core, > rename them to a meaningful and readable names. > > Signed-off-by: Jagan Teki > --- Applied to u-boot-spi/master thanks! -- Jagan. ___ U-Boot m

Re: [U-Boot] [PATCH v3 5/5] sf: Move spi_read_cmds_array locally

2015-12-14 Thread Jagan Teki
On 14 December 2015 at 15:21, Jagan Teki wrote: > Since spi_read_cmds_array is used locally in > spi_flash_scan, so move array to locally used > function instead of defining global array. > > Reviewed-by: Bin Meng > Signed-off-by: Jagan Teki Tested-by: Jagan Teki Applied to u-boot-spi/master

Re: [U-Boot] [PATCH v3 4/5] spi: Rename SPI_TX_BP|QPP to SPI_TX_BYTE|QUAD

2015-12-14 Thread Jagan Teki
On 15 December 2015 at 10:36, Bin Meng wrote: > On Mon, Dec 14, 2015 at 5:51 PM, Jagan Teki wrote: >> Since SPI_TX_* are spi_slave{} members so use spi protocol >> notation instead spi flash programming, like >> >> SPI_TX_BP => SPI_TX_BYTE >> SPI_TX_QPP => SPI_TX_QUAD >> >> Cc: Bin Meng >> Cc:

Re: [U-Boot] [PATCH v3 3/5] spi: Use mode instead of op_mode_tx

2015-12-14 Thread Jagan Teki
On 15 December 2015 at 10:36, Bin Meng wrote: > On Mon, Dec 14, 2015 at 5:51 PM, Jagan Teki wrote: >> Used mode member from spi_slave{} instead of op_mode_tx. >> >> Cc: Bin Meng >> Cc: Simon Glass >> Signed-off-by: Jagan Teki >> --- >> Changes for v3: >> - none >> Changes for v2: >> - none >>

Re: [U-Boot] [PATCH v3 2/5] spi: make mode visible to both dm and non-dm

2015-12-14 Thread Jagan Teki
On 15 December 2015 at 10:36, Bin Meng wrote: > On Mon, Dec 14, 2015 at 5:51 PM, Jagan Teki wrote: >> Couldn't find the exact reason to define 'mode' for dm, >> probably it is not using in non-dm drivers but it need >> to visible both dm and non-dm as mode data is getting >> dereferred in spi fla

Re: [U-Boot] [PATCH v3 1/5] sf: Get spi locally from spi_flash

2015-12-14 Thread Jagan Teki
On 15 December 2015 at 10:36, Bin Meng wrote: > On Mon, Dec 14, 2015 at 5:51 PM, Jagan Teki wrote: >> For better code readabilty, get the spi pointer from >> spi_flash{} locally and use it instead of direct >> dereferring spi pinter as flash->spi->* >> >> Signed-off-by: Jagan Teki >> --- >> Chan

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-14 Thread Jagan Teki
On 15 December 2015 at 11:48, Bin Meng wrote: > Hi Jagan, > > On Tue, Dec 15, 2015 at 2:15 PM, Jagan Teki wrote: >> Hi Bin, >> >> >> On Tuesday 15 December 2015 11:37 AM, Bin Meng wrote: >>> >>> Hi Jagan, >>> >>> On Tue, Dec 15, 2015 at 1:51 PM, Jagan Teki wrote: Hi Bin, On 1

Re: [U-Boot] [PATCH 1/3] sf: Minor cleanup

2015-12-14 Thread Jagan Teki
On 15 December 2015 at 09:48, Bin Meng wrote: > On Tue, Dec 15, 2015 at 1:03 AM, Jagan Teki wrote: >> - Tab space >> - Place all read commands at one place. >> - Re-arrange write commands. >> >> Cc: Bin Meng >> Signed-off-by: Jagan Teki >> --- > > Reviewed-by: Bin Meng Applied to u-boot-spi/m

Re: [U-Boot] [PATCH 2/3] sf: Use BIT macro

2015-12-14 Thread Jagan Teki
On 15 December 2015 at 09:48, Bin Meng wrote: > On Tue, Dec 15, 2015 at 1:03 AM, Jagan Teki wrote: >> Used BIT macro like 1 << nr as BIT(nr) where nr is 0...n >> >> Cc: Bin Meng >> Signed-off-by: Jagan Teki >> --- > > Reviewed-by: Bin Meng Applied to u-boot-spi/master thanks! -- Jagan.

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-14 Thread Bin Meng
Hi Jagan, On Tue, Dec 15, 2015 at 2:15 PM, Jagan Teki wrote: > Hi Bin, > > > On Tuesday 15 December 2015 11:37 AM, Bin Meng wrote: >> >> Hi Jagan, >> >> On Tue, Dec 15, 2015 at 1:51 PM, Jagan Teki wrote: >>> >>> Hi Bin, >>> >>> On 15 December 2015 at 10:48, Bin Meng wrote: Hi Jagan, S

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-14 Thread Jagan Teki
Hi Bin, On Tuesday 15 December 2015 11:37 AM, Bin Meng wrote: Hi Jagan, On Tue, Dec 15, 2015 at 1:51 PM, Jagan Teki wrote: Hi Bin, On 15 December 2015 at 10:48, Bin Meng wrote: Hi Jagan, Simon, On Tue, Dec 8, 2015 at 11:44 PM, Jagan Teki wrote: On 8 December 2015 at 17:27, Bin Meng wro

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-14 Thread Bin Meng
Hi Jagan, On Tue, Dec 15, 2015 at 1:51 PM, Jagan Teki wrote: > Hi Bin, > > On 15 December 2015 at 10:48, Bin Meng wrote: >> Hi Jagan, Simon, >> >> On Tue, Dec 8, 2015 at 11:44 PM, Jagan Teki wrote: >>> On 8 December 2015 at 17:27, Bin Meng wrote: Hi Jagan, On Fri, Dec 4, 2015 at

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-14 Thread Jagan Teki
Hi Bin, On 15 December 2015 at 10:48, Bin Meng wrote: > Hi Jagan, Simon, > > On Tue, Dec 8, 2015 at 11:44 PM, Jagan Teki wrote: >> On 8 December 2015 at 17:27, Bin Meng wrote: >>> Hi Jagan, >>> >>> On Fri, Dec 4, 2015 at 2:57 AM, Simon Glass wrote: Hi, On 3 December 2015 at 06:2

Re: [U-Boot] [PATCH 1/6] dm: x86: Create a driver for x86 interrupts

2015-12-14 Thread Bin Meng
Hi Simon, On Tue, Dec 15, 2015 at 10:04 AM, Bin Meng wrote: > Hi Simon, > > On Tue, Dec 15, 2015 at 6:14 AM, Simon Glass wrote: >> Hi Bin, >> >> On 13 December 2015 at 23:05, Bin Meng wrote: >>> Hi Simon, >>> >>> On Tue, Dec 1, 2015 at 12:46 PM, Simon Glass wrote: It seems likely that at

Re: [U-Boot] [PATCH 3/6] dm: x86: Add a common PIRQ init function

2015-12-14 Thread Bin Meng
On Mon, Dec 14, 2015 at 2:05 PM, Bin Meng wrote: > On Tue, Dec 1, 2015 at 12:47 PM, Simon Glass wrote: >> Most x86 interrupt drivers will want to use the standard PIRQ routing and >> table setup. Put this code in a common function so it can be used by those >> drivers that want it. >> >> Signed-o

Re: [U-Boot] [PATCH 2/6] dm: x86: Set up interrupt routing from interrupt_init()

2015-12-14 Thread Bin Meng
On Mon, Dec 14, 2015 at 2:05 PM, Bin Meng wrote: > On Tue, Dec 1, 2015 at 12:47 PM, Simon Glass wrote: >> At present interrupt routing is set up from arch_misc_init(). We can do it >> a little later instead, in interrupt_init(). >> >> This removes the manual pirq_init() call. Where the platform d

Re: [U-Boot] [PATCH 1/6] dm: x86: Create a driver for x86 interrupts

2015-12-14 Thread Bin Meng
On Mon, Dec 14, 2015 at 2:05 PM, Bin Meng wrote: > Hi Simon, > > On Tue, Dec 1, 2015 at 12:46 PM, Simon Glass wrote: >> It seems likely that at some point we will want a generic interrupt uclass. >> But this is a big undertaking as it involves unifying code across multiple >> architectures. >> >>

Re: [U-Boot] [PATCH 5/5] nios2: Soup up the shell experience

2015-12-14 Thread Thomas Chou
Hi Marek, On 2015年12月15日 10:09, Marek Vasut wrote: Enable command auto completion and enable $version variable. This makes working with U-Boot far more enjoyable. Signed-off-by: Marek Vasut Cc: Thomas Chou --- include/configs/10m50_devboard.h | 3 +++ include/configs/3c120_devboard.h | 3 +

Re: [U-Boot] [PATCH 4/5] nios2: Enable support for fitImage

2015-12-14 Thread Thomas Chou
Hi Marek, On 2015年12月15日 10:09, Marek Vasut wrote: The uImage format is legacy for years now, enable support for the fitImage format, which allows combining multiple files (kernel and dtb) into a single file, offers better protection of the payload and so on. Signed-off-by: Marek Vasut Cc: Tho

Re: [U-Boot] [PATCH 3/5] nios2: Preconfigure $loadaddr variable

2015-12-14 Thread Thomas Chou
Hi Marek, On 2015年12月15日 10:09, Marek Vasut wrote: Preset the $loadaddr environment variable to some sane default, let's say half of the RAM. This variable is where the kernel is loaded using all sorts of .*load commands, so it's convenient to have it set. Signed-off-by: Marek Vasut Cc: Thomas

Re: [U-Boot] [PATCH 1/5] nios2: Calculate the env position from monitor size

2015-12-14 Thread Thomas Chou
Hi Marek, On 2015年12月15日 10:09, Marek Vasut wrote: Reorder the 10m50 and 3c120 config files such, that the environment position can be calculated from the monitor size. The environment is placed right after the monitor. This removes one more ad-hoc variable. Signed-off-by: Marek Vasut Cc: Thom

Re: [U-Boot] [PATCH 2/5] nios2: Up the monitor size to 512kiB

2015-12-14 Thread Thomas Chou
Hi Marek, On 2015年12月15日 10:09, Marek Vasut wrote: The monitor is growing much larger with various additions, like fitImage, command line completion, UBI etc. Make the monitor area larger so these features can be safely added. Signed-off-by: Marek Vasut Cc: Thomas Chou --- include/configs/1

Re: [U-Boot] [PATCH] x86: Clean up SPI flash drivers in defconfig

2015-12-14 Thread Bin Meng
Hi Jagan, Simon, On Tue, Dec 8, 2015 at 11:44 PM, Jagan Teki wrote: > On 8 December 2015 at 17:27, Bin Meng wrote: >> Hi Jagan, >> >> On Fri, Dec 4, 2015 at 2:57 AM, Simon Glass wrote: >>> Hi, >>> >>> On 3 December 2015 at 06:27, Bin Meng wrote: Hi Jagan, On Thu, Dec 3, 2015 at

Re: [U-Boot] [PATCH v3 4/5] spi: Rename SPI_TX_BP|QPP to SPI_TX_BYTE|QUAD

2015-12-14 Thread Bin Meng
On Mon, Dec 14, 2015 at 5:51 PM, Jagan Teki wrote: > Since SPI_TX_* are spi_slave{} members so use spi protocol > notation instead spi flash programming, like > > SPI_TX_BP => SPI_TX_BYTE > SPI_TX_QPP => SPI_TX_QUAD > > Cc: Bin Meng > Cc: Simon Glass > Signed-off-by: Jagan Teki > --- > Changes

Re: [U-Boot] [PATCH v3 1/5] sf: Get spi locally from spi_flash

2015-12-14 Thread Bin Meng
On Mon, Dec 14, 2015 at 5:51 PM, Jagan Teki wrote: > For better code readabilty, get the spi pointer from > spi_flash{} locally and use it instead of direct > dereferring spi pinter as flash->spi->* > > Signed-off-by: Jagan Teki > --- > Changes for v3: > - none > Changes for v2: > - Fixed missing

Re: [U-Boot] [PATCH v3 3/5] spi: Use mode instead of op_mode_tx

2015-12-14 Thread Bin Meng
On Mon, Dec 14, 2015 at 5:51 PM, Jagan Teki wrote: > Used mode member from spi_slave{} instead of op_mode_tx. > > Cc: Bin Meng > Cc: Simon Glass > Signed-off-by: Jagan Teki > --- > Changes for v3: > - none > Changes for v2: > - none > Reviewed-by: Bin Meng Tested-by: Bin Meng ___

Re: [U-Boot] [PATCH v3 2/5] spi: make mode visible to both dm and non-dm

2015-12-14 Thread Bin Meng
On Mon, Dec 14, 2015 at 5:51 PM, Jagan Teki wrote: > Couldn't find the exact reason to define 'mode' for dm, > probably it is not using in non-dm drivers but it need > to visible both dm and non-dm as mode data is getting > dereferred in spi flash core ie common to both. > > Cc: Bin Meng > Cc: Si

Re: [U-Boot] [PATCH] serial: Use static inline for _debug_uart_init()

2015-12-14 Thread Bin Meng
Hi Michal, On Mon, Dec 14, 2015 at 11:53 PM, Michal Simek wrote: > Reported-by: Thomas Chou > Signed-off-by: Michal Simek > --- Could you always include a simple sentence in the commit message? > > drivers/serial/serial_xuartlite.c | 2 +- > drivers/serial/serial_zynq.c | 2 +- > 2 file

Re: [U-Boot] [PATCH 2/3] sf: Use BIT macro

2015-12-14 Thread Bin Meng
On Tue, Dec 15, 2015 at 1:03 AM, Jagan Teki wrote: > Used BIT macro like 1 << nr as BIT(nr) where nr is 0...n > > Cc: Bin Meng > Signed-off-by: Jagan Teki > --- Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/m

Re: [U-Boot] [PATCH 1/3] sf: Minor cleanup

2015-12-14 Thread Bin Meng
On Tue, Dec 15, 2015 at 1:03 AM, Jagan Teki wrote: > - Tab space > - Place all read commands at one place. > - Re-arrange write commands. > > Cc: Bin Meng > Signed-off-by: Jagan Teki > --- Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.de

Re: [U-Boot] [PATCH 3/3] serial: uartlite: Add uartlite to Kconfig

2015-12-14 Thread Thomas Chou
Hi Michal, On 2015年12月14日 23:42, Michal Simek wrote: On 14.12.2015 15:35, Thomas Chou wrote: Hi Michal, On 2015年12月11日 19:54, Michal Simek wrote: - Move config option out of board file. - Remove uartlite address from config file Signed-off-by: Michal Simek --- board/xilinx/microblaze-ge

Re: [U-Boot] [PATCH 2/3] serial: uartlite: Add support for debug console

2015-12-14 Thread Thomas Chou
Hi Michal, On 2015年12月14日 23:50, Michal Simek wrote: Hi, On 14.12.2015 14:14, Thomas Chou wrote: Hi Michal, On 2015年12月11日 19:54, Michal Simek wrote: Signed-off-by: Michal Simek --- drivers/serial/Kconfig| 7 +++ drivers/serial/serial_xuartlite.c | 23

Re: [U-Boot] [PATCH] powerpc: mpc85xx: Move set_liodns, setup_portals to common boot seq

2015-12-14 Thread York Sun
On 11/06/2015 04:44 PM, Prabhakar Kushwaha wrote: > Users migrating Freescale's PowerPC SoC U-Boot code to their custom > board, often overlook the need to execute set_liodns() and > setup_portals() being called by platform files. > > So Move set_liodns() and setup_portals() to common u-boot boo

Re: [U-Boot] [PATCH 3/5] ls102xa: Enable snoop and DVM message requests.

2015-12-14 Thread Yao Yuan
Hi York, Thanks for your review and modified. Best Regards, Yuan Yao > -Original Message- > From: Sun York-R58495 > Sent: Tuesday, December 15, 2015 9:00 AM > To: Yuan Yao-B46683 > Cc: Wang Huan-B18965 ; u-boot@lists.denx.de > Subject: Re: [PATCH 3/5] ls102xa: Enable snoop and DVM messa

[U-Boot] [PATCH 5/5] nios2: Soup up the shell experience

2015-12-14 Thread Marek Vasut
Enable command auto completion and enable $version variable. This makes working with U-Boot far more enjoyable. Signed-off-by: Marek Vasut Cc: Thomas Chou --- include/configs/10m50_devboard.h | 3 +++ include/configs/3c120_devboard.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/inclu

[U-Boot] [PATCH 1/5] nios2: Calculate the env position from monitor size

2015-12-14 Thread Marek Vasut
Reorder the 10m50 and 3c120 config files such, that the environment position can be calculated from the monitor size. The environment is placed right after the monitor. This removes one more ad-hoc variable. Signed-off-by: Marek Vasut Cc: Thomas Chou --- include/configs/10m50_devboard.h | 26 ++

[U-Boot] [PATCH 4/5] nios2: Enable support for fitImage

2015-12-14 Thread Marek Vasut
The uImage format is legacy for years now, enable support for the fitImage format, which allows combining multiple files (kernel and dtb) into a single file, offers better protection of the payload and so on. Signed-off-by: Marek Vasut Cc: Thomas Chou --- include/configs/10m50_devboard.h | 2 ++

[U-Boot] [PATCH 3/5] nios2: Preconfigure $loadaddr variable

2015-12-14 Thread Marek Vasut
Preset the $loadaddr environment variable to some sane default, let's say half of the RAM. This variable is where the kernel is loaded using all sorts of .*load commands, so it's convenient to have it set. Signed-off-by: Marek Vasut Cc: Thomas Chou --- include/configs/10m50_devboard.h | 3 ++-

[U-Boot] [PATCH 2/5] nios2: Up the monitor size to 512kiB

2015-12-14 Thread Marek Vasut
The monitor is growing much larger with various additions, like fitImage, command line completion, UBI etc. Make the monitor area larger so these features can be safely added. Signed-off-by: Marek Vasut Cc: Thomas Chou --- include/configs/10m50_devboard.h | 2 +- include/configs/3c120_devboard.

Re: [U-Boot] [PATCH 1/6] dm: x86: Create a driver for x86 interrupts

2015-12-14 Thread Bin Meng
Hi Simon, On Tue, Dec 15, 2015 at 6:14 AM, Simon Glass wrote: > Hi Bin, > > On 13 December 2015 at 23:05, Bin Meng wrote: >> Hi Simon, >> >> On Tue, Dec 1, 2015 at 12:46 PM, Simon Glass wrote: >>> It seems likely that at some point we will want a generic interrupt uclass. >>> But this is a big

[U-Boot] Please pull u-boot-fsl-qoriq master

2015-12-14 Thread York Sun
Tom, The following changes since commit 5076c64a08d2083af5a7761b12a30116ef0da967: Merge branch 'master' of git://git.denx.de/u-boot-spi (2015-12-11 15:07:44 -0500) are available in the git repository at: git://git.denx.de/u-boot-fsl-qoriq.git master for you to fetch changes up to 989c5f0

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Marek Vasut
On Tuesday, December 15, 2015 at 02:09:42 AM, Chin Liang See wrote: > On Tue, 2015-12-15 at 01:32 +0100, Marek Vasut wrote: > > On Monday, December 14, 2015 at 04:22:57 PM, Chin Liang See wrote: > > > On Mon, 2015-12-14 at 02:25 +0100, Marek Vasut wrote: > > > > On Monday, December 14, 2015 at 02:2

Re: [U-Boot] [PATCH v6] arm: Add sata support on Layerscape ARMv8 board

2015-12-14 Thread York Sun
On 12/09/2015 03:32 PM, yuantian.t...@freescale.com wrote: > From: Tang Yuantian > > Freescale ARM-based Layerscape contains a SATA controller > which comply with the serial ATA 3.0 specification and the > AHCI 1.3 specification. > This patch adds SATA feature on ls2080aqds, ls2080ardb and > ls

Re: [U-Boot] [PATCH 5/5][v5] drivers/crypto/fsl: fix endianness issue in RNG

2015-12-14 Thread York Sun
On 12/08/2015 04:24 PM, Aneesh Bansal wrote: > For Setting and clearing the bits in SEC Block registers > sec_clrbits32() and sec_setbits32() are used which work as > per endianness of CAAM block. > So these must be used with SEC register address as argument. > If the value is read in a local var

Re: [U-Boot] [PATCH 4/5][v5] armv8/ls1043ardb: add SECURE BOOT target for NOR

2015-12-14 Thread York Sun
On 12/08/2015 04:24 PM, Aneesh Bansal wrote: > LS1043ARDB Secure Boot Target from NOR has been added. > - Configs defined to enable esbc_validate. > - ESBC Address in header is made 64 bit. > - SMMU is re-configured in Bypass mode. > > Signed-off-by: Aneesh Bansal > --- > Changes in v5: > - Com

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Chin Liang See
On Tue, 2015-12-15 at 01:32 +0100, Marek Vasut wrote: > On Monday, December 14, 2015 at 04:22:57 PM, Chin Liang See wrote: > > On Mon, 2015-12-14 at 02:25 +0100, Marek Vasut wrote: > > > On Monday, December 14, 2015 at 02:22:32 AM, Chin Liang See > > > wrote: [...] > > > > Yeah, I can successfu

Re: [U-Boot] [PATCH 1/5][v5] armv8: define usec2ticks function

2015-12-14 Thread York Sun
On 12/08/2015 04:24 PM, Aneesh Bansal wrote: > usec2ticks() function has been defined for ARMv8 which will > be used by SEC Driver. > > Signed-off-by: Aneesh Bansal > --- > Changes in v5: > - Commit Subject modified > > Changes in v4: None > > Changes in v3: None > > Changes in v2: None (New

Re: [U-Boot] [PATCH 3/5][v5] include/linux: move typdef for uintptr_t

2015-12-14 Thread York Sun
On 12/08/2015 04:24 PM, Aneesh Bansal wrote: > uintptr_t which is a typdef for unsigned long is needed for creating > pointers (32 or 64 bit depending on Core) from 32 bit variables > storing the address. > If a 32 bit variable (u32) is typecasted to a pointer (void *), > compiler gives a warning

Re: [U-Boot] [PATCH 2/5][v5] armv8: Make SEC read/write as snoopable for LS1043

2015-12-14 Thread York Sun
On 12/08/2015 04:24 PM, Aneesh Bansal wrote: > For LS1043, SEC read/writes are made snoopable by setting > the corresponding bits in SCFG to avoid coherency issues. > > Signed-off-by: Aneesh Bansal > --- > Changes in v5: None > > Changes in v4: None > > Changes in v3: None > > Changes in v2:

Re: [U-Boot] [PATCH 1/1] fsl_qspi: Pet the watchdog while reading/writing

2015-12-14 Thread York Sun
On 11/04/2015 04:19 PM, Alexander Stein wrote: > When reading a large blob. e.g. a linux kernel (several MiBs) a watchdog > timeout might occur meanwhile. So pet the watchdog while operating on > the flash. > > Signed-off-by: Alexander Stein > --- Applied to fsl-qoriq master. Awaiting upstream

Re: [U-Boot] [PATCH v5 2/2] armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server

2015-12-14 Thread York Sun
On 12/08/2015 05:37 AM, York Sun wrote: > MC and debug server are not board-specific. Move reserving memory to SoC > file, using the new board_reserve_ram_top function. Reduce debug server > memory by 2MB to make room for secure memory. > > In the system with MC and debug server, the top of u-bo

Re: [U-Boot] [PATCH v7 2/2] armv8: fsl-layerscape: Make DDR non secure in MMU tables

2015-12-14 Thread York Sun
On 12/05/2015 03:57 AM, York Sun wrote: > DDR has been set as secure in MMU tables. Non-secure master such > as SDHC DMA cannot access data correctly. Mixing secure and non- > secure MMU entries requirs the MMU tables themselves in secure > memory. This patch moves MMU tables into a secure DDR ar

Re: [U-Boot] [PATCH v5 1/2] common: Rewrite hiding the end of memory

2015-12-14 Thread York Sun
On 12/08/2015 05:37 AM, York Sun wrote: > As the name may be confusing, the CONFIG_SYS_MEM_TOP_HIDE reserves > some memory from the end of ram, tracked by gd->ram_size. It is not > always the top of u-boot visible memory. Rewrite the macro with a > weak function to provide flexibility for complex

Re: [U-Boot] [PATCH v7 1/2] Reserve secure memory

2015-12-14 Thread York Sun
On 12/05/2015 03:57 AM, York Sun wrote: > Secure memory is at the end of memory, separated and reserved > from OS, tracked by gd->secure_ram. Secure memory can host > MMU tables, security monitor, etc. This is different from PRAM > used to reserve private memory. PRAM offers memory at the top > o

Re: [U-Boot] [PATCH v3 5/5] move erratum a008336 and a008514 to soc specific file

2015-12-14 Thread York Sun
On 12/05/2015 02:59 PM, Yuan Yao wrote: > As the errata A008336 and A008514 do not apply to all LS series SoCs > (such as LS1021A, LS1043A) we move them to an soc specific file > > Signed-off-by: Yuan Yao > --- > Changed in v3: > Fix a typo issue. > In function "erratum_a008514" >

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

2015-12-14 Thread York Sun
On 12/05/2015 02:59 PM, Yuan Yao wrote: > This is a workaround for hardware erratum. > Write the value of 63b2_0042h to EDDRTQCFG will optimal the > memory controller performance. > > The value: 63b2_0042h comes from the hardware team. > > Signed-off-by: Yuan Yao > --- > Changed in v2: >

Re: [U-Boot] [PATCH 3/5] ls102xa: Enable snoop and DVM message requests.

2015-12-14 Thread York Sun
On 12/05/2015 02:59 PM, Yuan Yao wrote: > Signed-off-by: Yuan Yao > --- > > arch/arm/cpu/armv7/ls102xa/soc.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > Modified subject, added commit message. Applied to fsl-qoriq master. Awaiting upstream. York

Re: [U-Boot] [PATCH 2/5] arm: ls102xa: enable all the snoop signal for masters.

2015-12-14 Thread York Sun
On 12/05/2015 02:59 PM, Yuan Yao wrote: > Enable the IP feature's snoop signal to support > hardware snoop for cache coherence. > > SNPCNFGCR contains the bits to drive snoop signal > for various masters. > > Signed-off-by: Yuan Yao > --- Applied to fsl-qoriq master. Awaiting upstream. York

Re: [U-Boot] [PATCH 1/5] arm: ls1021a: merge SoC specific code in a separate file

2015-12-14 Thread York Sun
On 12/05/2015 02:59 PM, Yuan Yao wrote: > Create a soc.c file to put the code for soc special settings. > > Signed-off-by: Yuan Yao > --- Applied to fsl-qoriq master. Awaiting upstream. York ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.

Re: [U-Boot] [PATCH 3/4] qbman_portal.c: Update BUG_ON() call in qbman_swp_mc_submit

2015-12-14 Thread York Sun
On 11/28/2015 09:04 PM, Tom Rini wrote: > With gcc-5.x we get a warning about the ambiguity of BUG_ON(!a != b) and > becomes BUG_ON((!a) != b). In this case reading of the function leads to > us wanting to rewrite this as BUG_ON(a != b). > > Cc: Prabhakar Kushwaha > Cc: Geoff Thorpe > Cc: Hai

Re: [U-Boot] [PATCH 2/4] fsl_*_serdes.c: Modify memset call in serdes_init

2015-12-14 Thread York Sun
On 11/28/2015 09:04 PM, Tom Rini wrote: > GCC 5.x does not like sizeof(array_variable) and errors out. Change these > calls to be instead sizeof(u8) (as that's what serdes_prtcl_map is) * > SERDES_PRCTL_COUNT (the number of array elements). > > Cc: York Sun > Signed-off-by: Tom Rini > --- Ap

Re: [U-Boot] [PATCH] Enable console log from earlyconsole in Linux bootargs

2015-12-14 Thread York Sun
On 10/31/2015 06:20 PM, Pratiyush Mohan Srivastava wrote: > Remove 115200 from "earlycon" to avoid loss of initial > log messages during linux kernel 4.1 bootup > > Signed-off-by: Pratiyush Mohan Srivastava > --- Applied to fsl-qoriq master. Awaiting upstream. York _

Re: [U-Boot] [PATCH] armv8/ls1043ardb: Add support for >2GB memory

2015-12-14 Thread York Sun
On 11/23/2015 03:23 PM, Mingkai Hu wrote: > From: Shaohui Xie > > This patch also expose the complete DDR region(s) to Linux. > > Signed-off-by: Shaohui Xie > Signed-off-by: Mingkai Hu > --- Applied to fsl-qoriq master. Awaiting upstream. York _

Re: [U-Boot] [PATCH 1/3] arm: ls102x: add get_svr and IS_SVR_REV helper

2015-12-14 Thread York Sun
On 11/20/2015 03:52 PM, Shengzhou Liu wrote: > Signed-off-by: Shengzhou Liu > --- Applied to fsl-qoriq master. Awaiting upstream. York ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 2/3] fsl/errata: move fsl_errata.h to common directory

2015-12-14 Thread York Sun
On 11/20/2015 03:52 PM, Shengzhou Liu wrote: > move arch/powerpc/include/asm/fsl_errata.h to include/fsl_errata.h > to make it public for both ARM and POWER SoCs. > > Signed-off-by: Shengzhou Liu > --- Applied to fsl-qoriq master. Awaiting upstream. York _

Re: [U-Boot] [PATCH 3/3] fsl/ddr: updated ddr errata-A008378 for arm and power SoCs

2015-12-14 Thread York Sun
On 11/20/2015 03:52 PM, Shengzhou Liu wrote: > DDR errata-A008378 applies to LS1021-20-22A-R1.0, T1023-R1.0, > T1024-R1.0, T1040-42-20-22-R1.0/R1.1, it has been fixed on > LS102x Rev2. > > Signed-off-by: Shengzhou Liu > --- Applied to fsl-qoriq master. Awaiting upstream. York ___

Re: [U-Boot] [PATCH] freescale: fman: make sure phy-handle property is big endian

2015-12-14 Thread York Sun
On 11/10/2015 07:20 PM, shh@gmail.com wrote: > From: Shaohui Xie > > When creating phy-handle property, an unsigned int value is created by > fdt_create_phandle, and memcpy is used to get the value, since DTS is > big endian, the value cannot be used directly on little endian SoCs, > it sho

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

2015-12-14 Thread York Sun
On 11/05/2015 02:03 AM, York Sun wrote: > This patch set revises the DDR driver to support higher speed for DDR4 > under heavy load (two dual-rank DIMMs) for four-chipselect interleaving. > Single quad-rank DIMM is not supported yet. > > > York Sun (7): > driver/ddr/fsl: Update DDR4 RTT value

Re: [U-Boot] [PATCH 1/6] arm: socfpga: cyclone5-socdk: Enabling mtd partitioning layout

2015-12-14 Thread Marek Vasut
On Monday, December 14, 2015 at 04:22:57 PM, Chin Liang See wrote: > On Mon, 2015-12-14 at 02:25 +0100, Marek Vasut wrote: > > On Monday, December 14, 2015 at 02:22:32 AM, Chin Liang See wrote: > [...] > > > > > > and rethinking, we can have 2 MTD_PARTITION > > > > > where one for backward compati

Re: [U-Boot] [PATCH] eeprom: fix eeprom write procedure

2015-12-14 Thread Marek Vasut
On Monday, December 14, 2015 at 04:45:34 PM, Alexey Brodkin wrote: > This fixes commit 1a37889b0ad084a740b4f785031d7ae9955d947b: > --->8 > eeprom: Pull out the RW loop > > Unify the code for doing read/write into single function, since the > code for both th

Re: [U-Boot] [PATCH 2/5] usb: dwc2: Use shared wait_for_bit

2015-12-14 Thread Marek Vasut
On Tuesday, December 15, 2015 at 01:09:24 AM, Mateusz Kulikowski wrote: > Use existing library function to poll bit(s). > Update configs using dwc2. > > Signed-off-by: Mateusz Kulikowski > --- [...] > diff --git a/include/configs/hikey.h b/include/configs/hikey.h > index 796861e..4e3bfec 100644

Re: [U-Boot] [PATCH 1/5] lib: Add wait_for_bit

2015-12-14 Thread Marek Vasut
On Tuesday, December 15, 2015 at 01:09:23 AM, Mateusz Kulikowski wrote: > Add function to poll register waiting for specific bit(s). > Similar functions are implemented in few drivers - they are almost > identical and can be generalized. > Signed-off-by: Mateusz Kulikowski > --- Excellent ! > i

[U-Boot] [PATCH 4/5] usb: ehci-mx6: Use shared wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Update configs using ehci-mx6. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ehci-mx6.c | 37 +-- include/configs/aristainetos-common.h | 1 + include/configs/cgtqmx6eval.h | 1 + include/

[U-Boot] [PATCH 5/5] net: zynq_gem: Use shared wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/net/Kconfig| 1 + drivers/net/zynq_gem.c | 35 ++- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 6905

[U-Boot] [PATCH 3/5] usb: ohci-lpc32xx: Use shared wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). No config files are updated, as there is no board using this driver. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ohci-lpc32xx.c | 36 ++-- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/dri

[U-Boot] [PATCH 1/5] lib: Add wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Add function to poll register waiting for specific bit(s). Similar functions are implemented in few drivers - they are almost identical and can be generalized. Signed-off-by: Mateusz Kulikowski --- include/wait_bit.h | 34 ++ lib/Kconfig| 4 lib/Make

[U-Boot] [PATCH 2/5] usb: dwc2: Use shared wait_for_bit

2015-12-14 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Update configs using dwc2. Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/dwc2.c | 43 +++- include/configs/hikey.h | 1 + include/configs/rpi-common.h | 1 + include/configs/socfpg

[U-Boot] [PATCH 0/5] Add wait_for_bit()

2015-12-14 Thread Mateusz Kulikowski
This series add generic function to poll register waiting for one or more bits to change. Very similar function was used in several drivers: - dwc2 - ohci-lp32xx - ehci-mx6 - zynq_gem First patch adds function, following patches update drivers and board config files / defconfigs. This series wa

Re: [U-Boot] [PATCH v2 1/2] ns16550: replace with binding files from Linux kernel

2015-12-14 Thread Thomas Chou
On 2015年12月15日 01:03, Stephen Warren wrote: On 12/14/2015 05:45 AM, Thomas Chou wrote: Replace ns16550.txt with binding files from Linux kernel. As suggested by Stephen Warren, we should keep the directory structure, filenames, and file content identical to the bindings in the Linux kernel.

Re: [U-Boot] [PATCH v2 1/2] ns16550: replace with binding files from Linux kernel

2015-12-14 Thread Simon Glass
On 14 December 2015 at 05:45, Thomas Chou wrote: > Replace ns16550.txt with binding files from Linux kernel. As suggested > by Stephen Warren, we should keep the directory structure, filenames, > and file content identical to the bindings in the Linux kernel. > > Signed-off-by: Thomas Chou > ---

Re: [U-Boot] dm: Introduce SPI-NOR framework

2015-12-14 Thread Simon Glass
Hi Jagan, On 11 December 2015 at 09:57, Jagan Teki wrote: > Hi Simon, > > On 11 December 2015 at 07:35, Simon Glass wrote: >> Hi Jagan, >> >> On 8 December 2015 at 08:36, Jagan Teki wrote: >>> Hi Simon, >>> >>> On 8 December 2015 at 08:22, Simon Glass wrote: Hi Jagan, On 3 Decem

Re: [U-Boot] [PATCH v2 1/2] ns16550: replace with binding files from Linux kernel

2015-12-14 Thread Simon Glass
Hi, On 14 December 2015 at 10:03, Stephen Warren wrote: > > On 12/14/2015 05:45 AM, Thomas Chou wrote: >> >> Replace ns16550.txt with binding files from Linux kernel. As suggested >> by Stephen Warren, we should keep the directory structure, filenames, >> and file content identical to the binding

Re: [U-Boot] [PATCH] serial: Use static inline for _debug_uart_init()

2015-12-14 Thread Simon Glass
On 14 December 2015 at 08:53, Michal Simek wrote: > Reported-by: Thomas Chou > Signed-off-by: Michal Simek > --- > > drivers/serial/serial_xuartlite.c | 2 +- > drivers/serial/serial_zynq.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass __

Re: [U-Boot] [PATCH v2 2/2] ns16550: zap the rockchip serial compatible string

2015-12-14 Thread Simon Glass
On 14 December 2015 at 05:45, Thomas Chou wrote: > Zap the rockchip serial compatible string, because rockchip > serial has "snps,dw-apb-uart" compatible string in the dts. > > Signed-off-by: Thomas Chou > --- > drivers/serial/ns16550.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-

Re: [U-Boot] [PATCH 1/2] microblaze: spl: Do not call mem_malloc_init and use early alloc

2015-12-14 Thread Simon Glass
On 14 December 2015 at 00:33, Michal Simek wrote: > On 14.12.2015 04:47, Simon Glass wrote: >> Hi Michal, >> >> On 3 February 2015 at 08:39, Michal Simek wrote: >>> >>> This patch has some parts connected together: >>> - Use _gd in bss section which is automatically cleared >>> Location at SPL_

Re: [U-Boot] [PATCH v2] mmc: implement mmc power on write protect function

2015-12-14 Thread Simon Glass
+Pantelis On 13 December 2015 at 23:05, Lin Huang wrote: > set the mmc specific addresss and range as power on > write protection, you can't earse and write this range > of data if you enable it after mmc power on. > > Signed-off-by: Lin Huang > --- > Changes in v2: > - Adviced by Simon: > - use

Re: [U-Boot] [PATCH 0/3] rockchip: Use the standard debug UART on rockchip

2015-12-14 Thread Simon Glass
HI Lin, On 13 December 2015 at 23:26, hl wrote: > Hi Simon. > > Thank you for updating this series patch, i have verified it in > evb-rk3036 board, > it worked. > Great, thanks! > > > On 14/12/15 12:36, Simon Glass wrote: >> >> The RK3036 has only 8KB of RAM available for SPL. At present it

Re: [U-Boot] [PATCH 2/8] microblaze: Use malloc setting via Kconfig

2015-12-14 Thread Simon Glass
On 11 December 2015 at 04:48, Michal Simek wrote: > Clean board specific file. > > Signed-off-by: Michal Simek > --- > > configs/microblaze-generic_defconfig | 2 ++ > include/configs/microblaze-generic.h | 6 -- > 2 files changed, 2 insertions(+), 6 deletions(-) Reviewed-by: Simon Glass _

Re: [U-Boot] [PATCH 1/6] dm: x86: Create a driver for x86 interrupts

2015-12-14 Thread Simon Glass
Hi Bin, On 13 December 2015 at 23:05, Bin Meng wrote: > Hi Simon, > > On Tue, Dec 1, 2015 at 12:46 PM, Simon Glass wrote: >> It seems likely that at some point we will want a generic interrupt uclass. >> But this is a big undertaking as it involves unifying code across multiple >> architectures.

Re: [U-Boot] [PATCH] serial: lpc32xx hsuart: port driver to driver model

2015-12-14 Thread Simon Glass
On 12 December 2015 at 10:04, Vladimir Zapolskiy wrote: > The change ports NXP LPC32xx 14-clock UART device driver to driver > model. > > Signed-off-by: Vladimir Zapolskiy > --- > drivers/serial/lpc32xx_hsuart.c | 103 > +++--- > include/dm/platform_data/lpc32x

Re: [U-Boot] [PATCH 2/2] rockchip: Add basic support for kylin board

2015-12-14 Thread Simon Glass
Applied to u-boot-rockchip, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/2] rockchip: rk3036 sdram setting cs1_row when rank larger than 1

2015-12-14 Thread Simon Glass
I'm going to take this now since it is a new board and should not affect others. Applied to u-boot-rockchip, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] test/fs: error case fixes/enhancements

2015-12-14 Thread Stephen Warren
From: Stephen Warren - Use "mkdir -p" to avoid errors when intermediate directories are missing. - Fall back to "dd" when "fallocate" fails. For example, fallocate isn't supported on ext4. - Add error checking for test image generation. Without this, the test simply plows on spewing all kin

Re: [U-Boot] [U-Boot, 1/2] am33xx, ddr3: fix ddr3 sdram configuration

2015-12-14 Thread Tom Rini
On Wed, Dec 02, 2015 at 03:27:56PM +0100, Egli, Samuel wrote: > This patch fixes the DDR3 initialization procedure in > order to comply with DDR3 standard. A 500 us delay is specified > between the DDR3 reset and clock enable signal. Until now, > this delay was not respected. Some DDR3 chips don't

Re: [U-Boot] [U-Boot, 2/2] siemens, am33x: remove ddr3 delay workaround

2015-12-14 Thread Tom Rini
On Wed, Dec 02, 2015 at 03:27:57PM +0100, Egli, Samuel wrote: > Signed-off-by: Samuel Egli > Cc: Roger Meier > Cc: Heiko Schocher Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot

Re: [U-Boot] VxWorks: fixup MAC address for VxWorks

2015-12-14 Thread Tom Rini
On Tue, Dec 01, 2015 at 11:39:01PM -0800, Miao Yan wrote: > VxWorks 7 kernels retrieve 'local-mac-addr' from dtb and use > that for NIC MAC address. As a result, when booting the same > kernel image on multiple boards, there will be address > conflicts. > > So fixup MAC address when booting VxWor

  1   2   >