[U-Boot] [PATCH v3 2/2] armv7m: Fix larger builds

2017-06-01 Thread Phil Edworthy
The branch instruction only has an 11-bit relative target address, which is sometimes not enough. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v3: - Move CONFIG_ARM_ASM_UNIFIED and CONFIG_THUMB2_KERNEL to Kconfig v2: - Use W(b) instead of ldr+mov. Using this macro re

[U-Boot] [PATCH 1/2] arm: Add Kconfig symbols used for Linux asm compatibility

2017-06-01 Thread Phil Edworthy
Rather than change asm files that come from Linux, add the symbols to Kconfig. Since one of the symbols is for thumb2 builds, make CPU_V7M always select them. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- arch/arm/Kconfig | 10 ++ arch/arm/lib/Makefile | 2

Re: [U-Boot] [PATCH v2] armv7m: Fix larger builds

2017-05-31 Thread Phil Edworthy
Hi Tom, On 31 May 2017 14:10 Tom Rini wrote: > On Wed, May 31, 2017 at 08:27:05AM +0100, Phil Edworthy wrote: > > > The branch instruction only has an 11-bit relative target address, > > which is sometimes not enough. > > > > Signed-off-by: Phil Edwor

[U-Boot] [PATCH v2] armv7m: Fix larger builds

2017-05-31 Thread Phil Edworthy
The branch instruction only has an 11-bit relative target address, which is sometimes not enough. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v2: - Use W(b) instead of ldr+mov. Using this macro requires CONFIG_ARM_ASM_UNIFIED and CONFIG_THUMB2_KERNEL to be defined. ---

Re: [U-Boot] [PATCH] armv7m: Fix larger builds

2017-05-31 Thread Phil Edworthy
Hi Vikas, On 27 May 2017 00:55 Vikas MANOCHA wrote: > On Friday, May 26, 2017 1:27 AM Phil Edworthy wrote: > > On 26 May 2017 00:58 Vikas MANOCHA wrote: > > > On Thursday, May 25, 2017 6:58 AM Phil Edworthy wrote: > > > > On 25 May 2017 10:16 Phil Edworthy wrote: &g

Re: [U-Boot] [PATCH] armv7m: Fix larger builds

2017-05-26 Thread Phil Edworthy
Hi Vikas, On 26 May 2017 00:58 Vikas MANOCHA wrote: > On Thursday, May 25, 2017 6:58 AM Phil Edworthy wrote: > > On 25 May 2017 10:16 Phil Edworthy wrote: > > > > On 24 May 2017 18:32 Vikas MANOCHA wrote: > > > > Hi Phil, > > > > > > > >

Re: [U-Boot] [PATCH] mmc: Set the initial clock speed to 400KHz

2017-05-26 Thread Phil Edworthy
Hi Jaehoon Chung, On 26 May 2017 04:38 Jaehoon Chung wrote: > On 05/25/2017 11:14 PM, Phil Edworthy wrote: > > On 25 May 2017 15:10 Jaehoon Chung wrote: > >> On 05/25/2017 11:02 PM, Phil Edworthy wrote: > >>> On 25 May 2017 14:50 Jaehoon Chung wrote: > >>&

Re: [U-Boot] [PATCH] mmc: Set the initial clock speed to 400KHz

2017-05-25 Thread Phil Edworthy
Hi Jaehoon Chung, On 25 May 2017 15:10 Jaehoon Chung wrote: > On 05/25/2017 11:02 PM, Phil Edworthy wrote: > > On 25 May 2017 14:50 Jaehoon Chung wrote: > >> On 05/24/2017 10:54 PM, Phil Edworthy wrote: > >>> The code currently defaults to the slowest clock speed tha

Re: [U-Boot] [PATCH] mmc: Set the initial clock speed to 400KHz

2017-05-25 Thread Phil Edworthy
Hi Jaehoon Chung, On 25 May 2017 14:50 Jaehoon Chung wrote: > Hi, > > On 05/24/2017 10:54 PM, Phil Edworthy wrote: > > The code currently defaults to the slowest clock speed that can be > > achieved, which can be significantly lower than the SD spec. > > Is t

Re: [U-Boot] [PATCH] armv7m: Fix larger builds

2017-05-25 Thread Phil Edworthy
Hi Vikas, On 25 May 2017 10:16 Phil Edworthy wrote: > > On 24 May 2017 18:32 Vikas MANOCHA wrote: > > Hi Phil, > > > > > On Wednesday, May 24, 2017 7:34 AM Phil Edworthy wrote: > > > The branch instruction only has an 11-bit relative target address, whic

Re: [U-Boot] [PATCH] armv7m: Fix larger builds

2017-05-25 Thread Phil Edworthy
Hi Vikas, > On 24 May 2017 18:32 Vikas MANOCHA wrote: > Hi Phil, > > > On Wednesday, May 24, 2017 7:34 AM Phil Edworthy wrote: > > The branch instruction only has an 11-bit relative target address, which is > sometimes not enough. > > > > Signed-off-by: Phil

[U-Boot] [PATCH] armv7m: Fix larger builds

2017-05-24 Thread Phil Edworthy
The branch instruction only has an 11-bit relative target address, which is sometimes not enough. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- arch/arm/cpu/armv7m/start.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7m/start.S b/ar

[U-Boot] [RESEND PATCH] dfu: dfu_sf: Fix read offset

2017-05-24 Thread Phil Edworthy
The offset was applied to write, but not read, now its applied to both. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- This was previously reviewed and Acked, but vanished somewhere... See https://patchwork.ozlabs.org/patch/694574 --- drivers/dfu/dfu_sf.c | 3 ++- 1 file chan

[U-Boot] [PATCH] mmc: Set the initial clock speed to 400KHz

2017-05-24 Thread Phil Edworthy
The code currently defaults to the slowest clock speed that can be achieved, which can be significantly lower than the SD spec. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/m

[U-Boot] [PATCH v3] armv7m: Add SysTick timer driver

2017-02-17 Thread Phil Edworthy
this is wrong, so this driver allows the clock rate to be defined using CONFIG_SYS_HZ_CLOCK. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v3: - Add comments about where we get the ref clock rate from. v2: - Variables & constant renamed. - Use the calibration reg to determine

Re: [U-Boot] [PATCH v2] armv7m: Add SysTick timer driver

2017-02-15 Thread Phil Edworthy
Hi Vikas, On 15 February 2017 23:50, Vikas MANOCHA wrote: > Hi Phil, > > > -Original Message- > > From: Phil Edworthy [mailto:phil.edwor...@renesas.com] > > Sent: Monday, February 13, 2017 11:48 PM > > To: Albert Aribaud <albert.u.b...@aribaud.net>

[U-Boot] [PATCH v2] armv7m: Add SysTick timer driver

2017-02-13 Thread Phil Edworthy
The SysTick is a 24-bit down counter that is found on all ARM Cortex M3, M4, M7 devices and is always located at a fixed address. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v2: - Variables & constant renamed. - Use the calibration reg to determine if we use the cpu

Re: [U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-13 Thread Phil Edworthy
Hi Vikas, On 12 February 2017 21:10, Vikas MANOCHA wrote: > Hi Phil, > > > -Original Message- > > From: Phil Edworthy [mailto:phil.edwor...@renesas.com] > > Sent: Tuesday, February 07, 2017 6:34 AM > > To: Tom Rini <tr...@konsulko.com> > > Cc:

Re: [U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-13 Thread Phil Edworthy
Hi Vikas, On 12 February 2017 20:53, Vikas MANOCHA wrote: > > On Fri, Feb 03, 2017 at 02:48:40PM +, Phil Edworthy wrote: > > > > > The SysTick is a 24-bit down counter that is found on all ARM Cortex > > > M3, M4, M7 devices and is always located at a fixed a

Re: [U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-07 Thread Phil Edworthy
Hi Tom, On 07 February 2017 14:23, Tom Rini wrote: > On Tue, Feb 07, 2017 at 02:19:39PM +0000, Phil Edworthy wrote: > > Hi Kamil, > > > > On 07 February 2017 14:12, Kamil Lulko wrote: > > > On Mon, Feb 6, 2017 at 12:16 AM, Tom Rini <tr...@konsulko.com> wrote: &

Re: [U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-07 Thread Phil Edworthy
Hi Kamil, On 07 February 2017 14:12, Kamil Lulko wrote: > On Mon, Feb 6, 2017 at 12:16 AM, Tom Rini <tr...@konsulko.com> wrote: > > On Fri, Feb 03, 2017 at 02:48:40PM +, Phil Edworthy wrote: > > > > > The SysTick is a 24-bit down counter that is found on a

[U-Boot] [PATCH] armv7m: Make reset_cpu() weak

2017-02-07 Thread Phil Edworthy
Some devices/boards have their own way to reset the cpu. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- arch/arm/cpu/armv7m/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7m/cpu.c b/arch/arm/cpu/armv7m/cpu.c index 58cde93..c3e4734

[U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-03 Thread Phil Edworthy
The SysTick is a 24-bit down counter that is found on all ARM Cortex M3, M4, M7 devices and is always located at a fixed address. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- Resend with Albert's new email address - get_maintainer.pl gave the old one. --- arch/arm/cpu/

[U-Boot] [PATCH] armv7m: Add SysTick timer driver

2017-02-03 Thread Phil Edworthy
The SysTick is a 24-bit down counter that is found on all ARM Cortex M3, M4, M7 devices and is always located at a fixed address. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- arch/arm/cpu/armv7m/Makefile| 2 + arch/arm/cpu/armv7m/systick-timer.

[U-Boot] [PATCH] keystone2: Rename local CONFIG_ symbol

2017-02-03 Thread Phil Edworthy
CONFIG_SPL_STACK_SIZE is not a config option, so rename it. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- Not tested at all since I don't have the HW --- include/configs/ti_armv7_keystone2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/c

[U-Boot] [PATCH] microblaze: Rename local CONFIG_ symbol

2017-02-03 Thread Phil Edworthy
CONFIG_SPL_STACK_SIZE is not a config option, so rename it. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- include/configs/microblaze-generic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/microblaze-generic.h b/include/configs/micr

Re: [U-Boot] [PATCH] sf: ids: Correct Micron n25q128 flags

2016-12-21 Thread Phil Edworthy
Hi Jagan, On 21 December 2016 11:21, Jagan Teki wrote: > On Wed, Dec 21, 2016 at 12:15 PM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > On 21 December 2016 11:10, Jagan Teki wrote: > >> On Fri, Dec 16, 2016 at 11:38 AM, Phil Edworthy > >&g

Re: [U-Boot] [PATCH] sf: ids: Correct Micron n25q128 flags

2016-12-21 Thread Phil Edworthy
Hi Jagan, On 21 December 2016 11:10, Jagan Teki wrote: > On Fri, Dec 16, 2016 at 11:38 AM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > The n25q128 devices support 4K erase. > > It's OK, but go with 64K erase. Sorry, I don’t understand your comment. Do you mean

[U-Boot] [PATCH] sf: ids: Correct Micron n25q128 flags

2016-12-16 Thread Phil Edworthy
The n25q128 devices support 4K erase. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/mtd/spi/spi_flash_ids.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c index edca94e..e

Re: [U-Boot] Problem with qspi when using micron devices

2016-12-15 Thread Phil Edworthy
Hi Jagan, On 07 December 2016 08:03, Phil Edworthy wrote: > Hi Jagan, > > When using Micron devices, SPI flash with quad mode does not work since > commit > c56ae7519f141523ba1248b22b5b5169b21772fe "sf: Fix quad bit set for micron > devices". > > This has been

[U-Boot] [PATCH] net: phy: vitesse: Fix cis8204 RGMII_ID code

2016-12-12 Thread Phil Edworthy
uture, use the phy_interface_is_rgmii helper function. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- This has _not_ been tested in any way, shape or form! It was picked up when converting PHY code to use the phy_interface_is_rgmii helper function. --- drivers/net/phy/vitesse.c

[U-Boot] [PATCH v3 3/3] net: phy: Marvell: Use phy_interface_is_rgmii helper function

2016-12-12 Thread Phil Edworthy
Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Reviewed-by: Stefan Roese <s...@denx.de> Acked-by: Joe Hershberger <joe.hershber...@ni.com> --- v3: No changes v2: No changes --- drivers/net/phy/marvell.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) di

[U-Boot] [PATCH v3 2/3] net: phy: Add support for Marvell M88E1512

2016-12-12 Thread Phil Edworthy
This device also works with the 88E1518 code, so we just adjust the UID mask accordingly. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v3: Correct the mask. v2: Don't add a new entry, just adjust the UID mask. --- drivers/net/phy/marvell.c | 9 +++-- 1 file chan

[U-Boot] [PATCH v3 0/3] net: phy: Add Marvell M88E1512

2016-12-12 Thread Phil Edworthy
These patches add support for the Marvell M88E1512 PHY. It turns out that it behaves exactly the same as 88E1518, so it's just a matter of fixing up the uid/mask. Phil Edworthy (3): net: phy: Fix mask so that we can identify Marvell 88E1518 net: phy: Add support for Marvell M88E1512 net

[U-Boot] [PATCH v3 1/3] net: phy: Fix mask so that we can identify Marvell 88E1518

2016-12-12 Thread Phil Edworthy
The mask for the 88E1510 meant that the 88E1518 code would never be used. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Reviewed-by: Stefan Roese <s...@denx.de> Acked-by: Joe Hershberger <joe.hershber...@ni.com> --- Note: This has only been tested on a board that uses

Re: [U-Boot] [PATCH v2 3/5] net: phy: Marvell 88E151x: Add support for RGMII

2016-12-12 Thread Phil Edworthy
Hi Joe On 12 December 2016 10:15, Phil Edworthy wrote: > On 12 December 2016 09:25, Phil Edworthy wrote: > > On 09 December 2016 18:59, Joe Hershberger wrote: > > > On Fri, Dec 9, 2016 at 7:38 AM, Phil Edworthy <phil.edwor...@renesas.com> > > > wrote: > >

Re: [U-Boot] [PATCH v2 3/5] net: phy: Marvell 88E151x: Add support for RGMII

2016-12-12 Thread Phil Edworthy
Hi Joe, On 12 December 2016 09:25, Phil Edworthy wrote: > On 09 December 2016 18:59, Joe Hershberger wrote: > > On Fri, Dec 9, 2016 at 7:38 AM, Phil Edworthy <phil.edwor...@renesas.com> > > wrote: > > > This has been tested with a Marvell 88E1512 PHY. > >

Re: [U-Boot] [PATCH v2 3/5] net: phy: Marvell 88E151x: Add support for RGMII

2016-12-12 Thread Phil Edworthy
Hi Joe, On 09 December 2016 18:59, Joe Hershberger wrote: > On Fri, Dec 9, 2016 at 7:38 AM, Phil Edworthy <phil.edwor...@renesas.com> > wrote: > > This has been tested with a Marvell 88E1512 PHY. > > > > Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com&

[U-Boot] [PATCH] sf: Do not force the DT memory map size to exactly match the device

2016-12-09 Thread Phil Edworthy
As long as the memory mapped size specifeid in the DT is the same or bigger than the device size, it will work. So do not force the sizes to be identical. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/mtd/spi/spi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[U-Boot] [PATCH v2 5/5] net: phy: Marvell: Use phy_interface_is_rgmii helper function

2016-12-09 Thread Phil Edworthy
Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Reviewed-by: Stefan Roese <s...@denx.de> --- v2: No changes --- drivers/net/phy/marvell.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index b6c0

[U-Boot] [PATCH v2 3/5] net: phy: Marvell 88E151x: Add support for RGMII

2016-12-09 Thread Phil Edworthy
This has been tested with a Marvell 88E1512 PHY. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Reviewed-by: Stefan Roese <s...@denx.de> --- v2: Rebased on top of Joe's code to use macros --- drivers/net/phy/marvell.c | 17 + 1 file changed, 13 inse

[U-Boot] [PATCH v2 4/5] net: phy: Marvell 88E151x: Increase delay after init

2016-12-09 Thread Phil Edworthy
On Marvell 88E1512, the delay is not enough when connected to some external switches (e.g. Netgear GS108E). Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Reviewed-by: Stefan Roese <s...@denx.de> --- v2: No changes --- drivers/net/phy/marvell.c | 2 +- 1 file changed,

[U-Boot] [PATCH v2 2/5] net: phy: Add support for Marvell M88E1512

2016-12-09 Thread Phil Edworthy
This device also works with the 88E1518 code, so we just adjust the UID mask accordingly. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v2: Don't add a new entry, just adjust the UID mask. --- drivers/net/phy/marvell.c | 6 +- 1 file changed, 5 insertions(+), 1 de

[U-Boot] [PATCH v2 1/5] net: phy: Fix mask so that we can identify Marvell 88E1518

2016-12-09 Thread Phil Edworthy
The mask for the 88E1510 meant that the 88E1518 code would never be used. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Reviewed-by: Stefan Roese <s...@denx.de> --- Note: This has only been tested on a board that uses a Marvell 88E1512 PHY, see subsequent patches. v2:

[U-Boot] [PATCH v2 0/5] net: phy: Add Marvell M88E1512

2016-12-09 Thread Phil Edworthy
These patches add support for the Marvell M88E1512 PHY. Phil Edworthy (5): net: phy: Fix mask so that we can identify Marvell 88E1518 net: phy: Add support for Marvell M88E1512 net: phy: Marvell 88E151x: Add support for RGMII net: phy: Marvell 88E151x: Increase delay after init net: phy

Re: [U-Boot] [PATCH] net: phy: Improve the Marvell 151x constants

2016-12-09 Thread Phil Edworthy
Hi Joe, On 02 December 2016 05:50, Joe Hershberger wrote: > On 01.12.2016 18:08, Joe Hershberger wrote: > > Use some constants for the phy configuration instead of so many magic > > numbers. > > > > Signed-off-by: Joe Hershberger > > --- > > > > drivers/net/phy/marvell.c

Re: [U-Boot] [PATCH 3/5] net: phy: Marvell 88E151x: Add support for RGMII

2016-12-09 Thread Phil Edworthy
Hi Stefan, On 09 December 2016 12:19, Stefan Roese wrote: > On 09.12.2016 11:41, Phil Edworthy wrote: > > This has been tested with a Marvell 88E1512 PHY. > > > > Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> > > --- > > drivers/net/phy/ma

Re: [U-Boot] [PATCH 2/5] net: phy: Add support for Marvell M88E1512

2016-12-09 Thread Phil Edworthy
Hi Stefan, On 09 December 2016 12:16, Stefan Roese wrote: > On 09.12.2016 11:40, Phil Edworthy wrote: > > Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> > > --- > > drivers/net/phy/marvell.c | 11 +++ > > 1 file changed, 11 insertions(+) >

[U-Boot] [PATCH] net: phy: ti: Fix dp83867 RGMII_TXID interface path

2016-12-09 Thread Phil Edworthy
. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- This has _not_ been tested in any way, shape or form! It was picked up when converting PHY code to use the phy_interface_is_rgmii helper function. --- drivers/net/phy/ti.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[U-Boot] [PATCH 4/5] net: phy: Marvell 88E151x: Increase delay after init

2016-12-09 Thread Phil Edworthy
On Marvell 88E1512, the delay is not enough when connected to some external switches (e.g. Netgear GS108E). Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/net/phy/marvell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/marve

[U-Boot] [PATCH 3/5] net: phy: Marvell 88E151x: Add support for RGMII

2016-12-09 Thread Phil Edworthy
This has been tested with a Marvell 88E1512 PHY. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/net/phy/marvell.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index a7ea435..8

[U-Boot] [PATCH 5/5] net: phy: Marvell: Use phy_interface_is_rgmii helper function

2016-12-09 Thread Phil Edworthy
Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/net/phy/marvell.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 48ebb50..dc1d25f 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/n

[U-Boot] [PATCH 2/5] net: phy: Add support for Marvell M88E1512

2016-12-09 Thread Phil Edworthy
Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/net/phy/marvell.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 06029c0..a7ea435 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/n

[U-Boot] [PATCH 1/5] net: phy: Fix mask so that we can identify Marvell 88E1518

2016-12-09 Thread Phil Edworthy
The mask for the 88E1510 meant that the 88E1518 code would never be used. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- Note: This has only been tested on a board that uses a Marvell 88E1512 PHY, see subsequent patches. --- drivers/net/phy/marvell.c | 4 ++-- 1 file chan

[U-Boot] [PATCH 0/5] net: phy: Add Marvell M88E1512

2016-12-09 Thread Phil Edworthy
These patches add support for the Marvell M88E1512 PHY. Phil Edworthy (5): net: phy: Fix mask so that we can identify Marvell 88E1518 net: phy: Add support for Marvell M88E1512 net: phy: Marvell 88E151x: Add support for RGMII net: phy: Marvell 88E151x: Increase delay after init net: phy

[U-Boot] Problem with qspi when using micron devices

2016-12-07 Thread Phil Edworthy
Hi Jagan, When using Micron devices, SPI flash with quad mode does not work since commit c56ae7519f141523ba1248b22b5b5169b21772fe "sf: Fix quad bit set for micron devices". This has been pointed out before, details about why the patch does work are here:

Re: [U-Boot] [PATCH v3 11/11] spi: cadence_qspi: Support specifying the sample edge used

2016-12-06 Thread Phil Edworthy
Hi Jagan, On 06 December 2016 17:24 Jagan Teki wrote: > On Tue, Dec 6, 2016 at 6:00 PM, Phil Edworthy <phil.edwor...@renesas.com> > wrote: > > Hi Jagan, Marek, > > > > On 06 December 2016 12:39 Marek Vasut wrote: > >> On 12/06/2016 11:25 AM, Phil Edworthy

Re: [U-Boot] [PATCH v3 11/11] spi: cadence_qspi: Support specifying the sample edge used

2016-12-06 Thread Phil Edworthy
Hi Jagan, Marek, On 06 December 2016 12:39 Marek Vasut wrote: > On 12/06/2016 11:25 AM, Phil Edworthy wrote: > > On 05 December 2016 13:31, Marek Vasut wrote: > >> On 12/05/2016 11:46 AM, Phil Edworthy wrote: > >>> On 05 December 2016 10:42, Jagan Teki wrote: >

Re: [U-Boot] [PATCH v3 11/11] spi: cadence_qspi: Support specifying the sample edge used

2016-12-06 Thread Phil Edworthy
Hi Marek, On 05 December 2016 13:31, Marek Vasut wrote: > On 12/05/2016 11:46 AM, Phil Edworthy wrote: > > On 05 December 2016 10:42, Jagan Teki wrote: > >> On Mon, Dec 5, 2016 at 11:31 AM, Phil Edworthy > >> <phil.edwor...@renesas.com> wrote: > >>>

Re: [U-Boot] [PATCH v3 11/11] spi: cadence_qspi: Support specifying the sample edge used

2016-12-05 Thread Phil Edworthy
Hi Jagan, On 05 December 2016 10:42, Jagan Teki wrote: > On Mon, Dec 5, 2016 at 11:31 AM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > HI Jagan, > > > > On 05 December 2016 10:26, Jagan Teki wrote: > >> On Mon, Dec 5, 2016 at 11:09 AM, Phil E

Re: [U-Boot] [PATCH v3 10/11] spi: cadence_qspi: Change readdata_capture() arg to bool

2016-12-05 Thread Phil Edworthy
Hi Jagan, On 05 December 2016 10:29, Jagan Teki wrote: > On Mon, Dec 5, 2016 at 11:07 AM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > Hi Jagan, > > > > On 02 December 2016 14:20, Jagan Teki wrote: > >> On Tue, Nov 29, 2016 at 6:28 PM, Phil E

Re: [U-Boot] [PATCH v3 11/11] spi: cadence_qspi: Support specifying the sample edge used

2016-12-05 Thread Phil Edworthy
HI Jagan, On 05 December 2016 10:26, Jagan Teki wrote: > On Mon, Dec 5, 2016 at 11:09 AM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > Hi Jagan, > > > > On 02 December 2016 14:23, Jagan Teki wrote: > >> On Tue, Nov 29, 2016 at 6:28 PM, Phil E

Re: [U-Boot] [PATCH v3 11/11] spi: cadence_qspi: Support specifying the sample edge used

2016-12-05 Thread Phil Edworthy
Hi Jagan, On 02 December 2016 14:23, Jagan Teki wrote: > On Tue, Nov 29, 2016 at 6:28 PM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > Introduce a new DT property to specify whether the QSPI Controller > > samples the data on a rising edge. The default is falling

Re: [U-Boot] [PATCH v3 10/11] spi: cadence_qspi: Change readdata_capture() arg to bool

2016-12-05 Thread Phil Edworthy
Hi Jagan, On 02 December 2016 14:20, Jagan Teki wrote: > On Tue, Nov 29, 2016 at 6:28 PM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > This is in preparation for adding another arg. > > ?? proper reason for changing arg to bool. Purely because the p

Re: [U-Boot] [PATCH v3 04/11] spi: cadence_qspi: Use #define for bits instead of bit shifts

2016-11-29 Thread Phil Edworthy
Hi Jagan, On 30 November 2016 04:59, Jagan Teki wrote: > On Tue, Nov 29, 2016 at 6:28 PM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > Most of the code already uses #defines for the bit value, rather > > than the shift required to get the value. This changes the

[U-Boot] [PATCH v3 11/11] spi: cadence_qspi: Support specifying the sample edge used

2016-11-29 Thread Phil Edworthy
Introduce a new DT property to specify whether the QSPI Controller samples the data on a rising edge. The default is falling edge. Some versions of the QSPI Controller do not implement this bit, in which case the property should be omitted. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.

[U-Boot] [PATCH v3 10/11] spi: cadence_qspi: Change readdata_capture() arg to bool

2016-11-29 Thread Phil Edworthy
This is in preparation for adding another arg. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v3: - New patch to split changes. --- drivers/spi/cadence_qspi.c | 7 --- drivers/spi/cadence_qspi.h | 2 +- drivers/spi/cadence_qspi_apb.c | 2 +- 3 files chan

[U-Boot] [PATCH v3 08/11] spi: cadence_qspi: Fix CS timings

2016-11-29 Thread Phil Edworthy
. This change accurately calculates the additional delays in Ref clocks. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v3: - No change. v2: Was "spi: cadence_qspi: Fix CQSPI_CAL_DELAY calculation" Note only did the existing code not cope with the delay less than

[U-Boot] [PATCH v3 09/11] spi: cadence_qspi: Move DT prop code to match layout

2016-11-29 Thread Phil Edworthy
Move the code to read the "sram-size" property into the other code that reads properties from the node, rather than the SF subnode. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v3: - New patch to split changes. --- drivers/spi/cadence_qspi.c | 2 +- 1 file chan

[U-Boot] [PATCH v3 07/11] spi: cadence_qspi: Remove returns from end of void functions

2016-11-29 Thread Phil Edworthy
Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Acked-by: Marek Vasut <marek.va...@gmail.com> --- v3: - No change. v2: - No change. --- drivers/spi/cadence_qspi_apb.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/spi/cadence_qspi_apb.c b

[U-Boot] [PATCH v3 06/11] spi: cadence_qspi: Use spi mode at the point it is needed

2016-11-29 Thread Phil Edworthy
Instead of extracting mode settings and passing them as separate args to another function, just pass the SPI mode as an arg. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v3: - New patch introduced to address comments. --- drivers/spi/cadence_qspi.c | 4 +--- drive

[U-Boot] [PATCH v3 05/11] spi: cadence_qspi: Clean up the #define names

2016-11-29 Thread Phil Edworthy
A lot of the #defines are for single bits in a register, where the name has _MASK on the end. Since this can be used for both a mask and the value, remove _MASK from them. Whilst doing so, also remove the unnecessary brackets around the constants. Signed-off-by: Phil Edworthy <phil.ed

[U-Boot] [PATCH v3 03/11] spi: cadence_qspi: Better debug information on the SPI clock rate

2016-11-29 Thread Phil Edworthy
Show what the output clock rate actually is. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Acked-by: Marek Vasut <marek.va...@gmail.com> --- v3: - No change. v2: - No change. --- drivers/spi/cadence_qspi_apb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

[U-Boot] [PATCH v3 04/11] spi: cadence_qspi: Use #define for bits instead of bit shifts

2016-11-29 Thread Phil Edworthy
Most of the code already uses #defines for the bit value, rather than the shift required to get the value. This changes the remaining code over. Whislt at it, fix the names of the "Rd Data Capture" register defs. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Acked

[U-Boot] [PATCH v3 02/11] spi: cadence_qspi: Fix baud rate calculation

2016-11-29 Thread Phil Edworthy
the divider to generate 25MHz. This change fixes the calculation. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v3: - Use single line DIV_ROUND_UP instead of two v2: - Use the DIV_ROUND_UP macro --- drivers/spi/cadence_qspi_apb.c | 22 ++ 1 file chan

[U-Boot] [PATCH v3 00/11] SF: Cadence QSPI driver fixes and clean up

2016-11-29 Thread Phil Edworthy
ying the sample edge used" has been split into 3 separate patches. Phil Edworthy (11): spi: cadence_qspi: Fix clearing of pol/pha bits spi: cadence_qspi: Fix baud rate calculation spi: cadence_qspi: Better debug information on the SPI clock rate spi: cadence_qspi: Use #define for

[U-Boot] [PATCH v3 01/11] spi: cadence_qspi: Fix clearing of pol/pha bits

2016-11-29 Thread Phil Edworthy
Or'ing together bit positions is clearly wrong. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> Acked-by: Marek Vasut <marek.va...@gmail.com> --- v3: - No change. v2: - No change. --- drivers/spi/cadence_qspi_apb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

Re: [U-Boot] [PATCH v2 7/8] spi: cadence_qspi: Fix CS timings

2016-11-29 Thread Phil Edworthy
Hi Chin Liang, On 28 November 2016 12:49 See, Chin Liang wrote: > On Jum, 2016-11-25 at 14:38 +0000, Phil Edworthy wrote: > > > > The Cadence QSPI controller has specified overheads for the various > > CS > > times that are in addition to those programmed in to th

Re: [U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Phil Edworthy
Hi Jagan, On 25 November 2016 15:42 Jagan Teki wrote: > On Fri, Nov 25, 2016 at 8:08 PM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > With the existing code, when the requested SPI clock rate is near > > to the lowest that can be achieved by the hardware (ma

Re: [U-Boot] [PATCH v2 1/8] spi: cadence_qspi: Fix clearing of pol/pha bits

2016-11-25 Thread Phil Edworthy
Hi Jagan, On 25 November 2016 15:29 Jagan Teki wrote: > On Fri, Nov 25, 2016 at 8:08 PM, Phil Edworthy > <phil.edwor...@renesas.com> wrote: > > Or'ing together bit positions is clearly wrong. > > > > Signed-off-by: Phil Edworthy <phil.edwor...@rene

Re: [U-Boot] [PATCH v2 8/8] spi: cadence_qspi: Support specifying the sample edge used

2016-11-25 Thread Phil Edworthy
Hi Marek, On 25 November 2016 15:06 Marek Vasut wrote: > On 11/25/2016 03:38 PM, Phil Edworthy wrote: > > Whilst at it, move the code to read the "sram-size" property > > into the other code that reads properties from the node, rather > > than the SF subnod

Re: [U-Boot] [PATCH v2 4/8] spi: cadence_qspi: Use #define for bits instead of bit shifts

2016-11-25 Thread Phil Edworthy
Hi Marek, On 25 November 2016 15:00 Marek Vasut wrote: > On 11/25/2016 03:38 PM, Phil Edworthy wrote: > > Most of the code already uses #defines for the bit value, rather > > than the shift required to get the value. This changes the remaining > > code over. > > >

Re: [U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Phil Edworthy
Hi Marek, On 25 November 2016 14:58 Marek Vasut wrote: > On 11/25/2016 03:38 PM, Phil Edworthy wrote: > > With the existing code, when the requested SPI clock rate is near > > to the lowest that can be achieved by the hardware (max divider > > of the ref clock is 32), the

[U-Boot] [PATCH v2 8/8] spi: cadence_qspi: Support specifying the sample edge used

2016-11-25 Thread Phil Edworthy
Whilst at it, move the code to read the "sram-size" property into the other code that reads properties from the node, rather than the SF subnode. Also change the code to use a bool for the bypass arg. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v2: Change

[U-Boot] [PATCH v2 7/8] spi: cadence_qspi: Fix CS timings

2016-11-25 Thread Phil Edworthy
. This change accurately calculates the additional delays in Ref clocks. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v2: Was "spi: cadence_qspi: Fix CQSPI_CAL_DELAY calculation" Note only did the existing code not cope with the delay less than an SCLK period, but

[U-Boot] [PATCH v2 5/8] spi: cadence_qspi: Clean up the #define names

2016-11-25 Thread Phil Edworthy
A lot of the #defines are for single bits in a register, where the name has _MASK on the end. Since this can be used for both a mask and the value, remove _MASK from them. Whilst doing so, also remove the unnecessary brackets around the constants. Signed-off-by: Phil Edworthy <phil.ed

[U-Boot] [PATCH v2 6/8] spi: cadence_qspi: Remove returns from end of void functions

2016-11-25 Thread Phil Edworthy
Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/spi/cadence_qspi_apb.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index e7d8320..1cd636a 100644 --- a/drivers/spi/cadence_qspi_apb.c +++ b/d

[U-Boot] [PATCH v2 2/8] spi: cadence_qspi: Fix baud rate calculation

2016-11-25 Thread Phil Edworthy
the divider to generate 25MHz. This change fixes the calculation. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v2: - Use the DIV_ROUND_UP macro --- drivers/spi/cadence_qspi_apb.c | 23 +++ 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/d

[U-Boot] [PATCH v2 3/8] spi: cadence_qspi: Better debug information on the SPI clock rate

2016-11-25 Thread Phil Edworthy
Show what the output clock rate actually is. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/spi/cadence_qspi_apb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index b

[U-Boot] [PATCH v2 4/8] spi: cadence_qspi: Use #define for bits instead of bit shifts

2016-11-25 Thread Phil Edworthy
Most of the code already uses #defines for the bit value, rather than the shift required to get the value. This changes the remaining code over. Whislt at it, fix the names of the "Rd Data Capture" register defs. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com>

[U-Boot] [PATCH v2 1/8] spi: cadence_qspi: Fix clearing of pol/pha bits

2016-11-25 Thread Phil Edworthy
Or'ing together bit positions is clearly wrong. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/spi/cadence_qspi_apb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index e

[U-Boot] [PATCH v2 0/8] SF: Cadence QSPI driver fixes and clean up

2016-11-25 Thread Phil Edworthy
ample edge used Added in v2: spi: cadence_qspi: Better debug information on the SPI clock rate Phil Edworthy (8): spi: cadence_qspi: Fix clearing of pol/pha bits spi: cadence_qspi: Fix baud rate calculation spi: cadence_qspi: Better debug information on the SPI clock rate spi: cadence

Re: [U-Boot] [PATCH 0/7] SF: Cadence QSPI driver fixes and clean up

2016-11-25 Thread Phil Edworthy
Hi Jagan, On 02 November 2016 15:16, Phil wrote: > This series has fixes, patches to clean the code up, and add support for > specifying the sampling edge. > > Phil Edworthy (7): > spi: cadence_qspi: Fix clearing of pol/pha bits > spi: cadence_qspi: Fix baud rate c

[U-Boot] [PATCH v2 6/7] spi: cadence_qspi: Fix CS timings

2016-11-17 Thread Phil Edworthy
. This change accurately calculates the additional delays in Ref clocks. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v2: Was "spi: cadence_qspi: Fix CQSPI_CAL_DELAY calculation" Note only did the existing code not cope with the delay less than an SCLK period, but

[U-Boot] [PATCH] dfu: dfu_sf: Fix read offset

2016-11-14 Thread Phil Edworthy
The offset was applied to write, but not read, now its applied to both. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- drivers/dfu/dfu_sf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c index 9702eee..b

[U-Boot] [PATCH v2 ] spi: cadence_qspi: Support specifying the sample edge used

2016-11-04 Thread Phil Edworthy
Whilst at it, move the code to read the "sram-size" property into the other code that reads properties from the node, rather than the SF subnode. Also change the code to use a bool for the bypass arg. Signed-off-by: Phil Edworthy <phil.edwor...@renesas.com> --- v2: Change

Re: [U-Boot] [PATCH 7/7] spi: cadence_qspi: Support specifying the sample edge used

2016-11-04 Thread Phil Edworthy
Hi Vignesh, On 04 November 2016 05:57, Vignesh R wrote: > On Wednesday 02 November 2016 08:45 PM, Phil Edworthy wrote: > > The HW manual does not give details about what the register > > value for this bit actually does, other than "Choose edge on > > which data

Re: [U-Boot] [PATCH] gpio: dwapb: Add support for port B

2016-11-04 Thread Phil Edworthy
Hi Marek, On 03 November 2016 17:49, Marek Vasut wrote: > On 11/03/2016 02:56 PM, Simon Glass wrote: > > On 2 November 2016 at 13:38, Marek Vasut <ma...@denx.de > > <mailto:ma...@denx.de>> wrote: > >> On 11/02/2016 04:24 PM, Phil Edworthy wrote: > Ple

Re: [U-Boot] [PATCH] gpio: dwapb: Add support for port B

2016-11-03 Thread Phil Edworthy
Hi Simon, On 03 November 2016 15:49, Simon Glass wrote: > On 3 November 2016 at 08:02, Phil Edworthy <phil.edwor...@renesas.com> > wrote: > > >On 2 November 2016 at 13:38, Marek Vasut <ma...@denx.de> wrote: > > >> On 11/02/2016 04:24 PM, Phil Edworthy w

Re: [U-Boot] [PATCH] gpio: dwapb: Add support for port B

2016-11-03 Thread Phil Edworthy
Hi Simon, >On 2 November 2016 at 13:38, Marek Vasut <ma...@denx.de> wrote: >> On 11/02/2016 04:24 PM, Phil Edworthy wrote: >>> The IP supports two ports, A and B, each providing up to 32 gpios. >>> The driver already creates a 2nd gpio bank by reading the 2nd n

  1   2   >