Re: [U-Boot] [PATCH v2 1/2] lib: net_utils: make string_to_ip stricter

2017-01-04 Thread Chris Packham
Hi Wolfgang, On Wed, Jan 4, 2017 at 11:04 PM, Wolfgang Denk wrote: > Dear Chris, > > In message <20170104003626.4211-1-judge.pack...@gmail.com> you wrote: >> >> With the input "1234192.168.1.1" the old behaviour would truncate the >> address to 192.168.1.1. New behaviour rejects

[U-Boot] [PATCH v2 1/2] lib: net_utils: make string_to_ip stricter

2017-01-03 Thread Chris Packham
.0.0.0, which for the purposes of IP addresses can be considered an error. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- This was part of my long running IPv6 patchset (which I promise I'll get back to someday). But I feel this stands on it's own merits. Changes in v2: - split i

[U-Boot] [PATCH v2 2/2] lib: net_utils: enforce '.' as octet separator in string_to_ip

2017-01-03 Thread Chris Packham
Ensure '.' is used to separate octets. If another character is seen reject the string outright and return 0.0.0.0. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v2: - new END lib/net_utils.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/net_utils.c

Re: [U-Boot] [PATCH v2 2/2] lib: net_utils: enforce '.' as octet separator in string_to_ip

2017-01-09 Thread Chris Packham
On Mon, Jan 9, 2017 at 7:45 AM, Wolfgang Denk wrote: > Dear Chris, > > In message > you > wrote: >> >> > The old code was forgiving and would accept 192,168,1,2 as well. >> >> Technically you can't enter that.

[U-Boot] [RESEND PATCH v2] powerpc: Retain compatible property for L2 cache

2016-12-18 Thread Chris Packham
When setting the compatible property for the L2 cache ensure that we follow the documented binding by setting both "-l2-cache-controller" and "cache" as values. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v2: - extract a helper function to s

Re: [U-Boot] [PATCH] lib: net_utils: make string_to_ip stricter

2016-12-26 Thread Chris Packham
On Mon, Dec 26, 2016 at 6:23 PM, Simon Glass <s...@chromium.org> wrote: > Hi Chris, > > On 20 December 2016 at 11:01, Chris Packham <judge.pack...@gmail.com> wrote: >> Previously values greater than 255 were implicitly truncated. Add some >> stricter checking to

[U-Boot] [PATCH] lib: net_utils: make string_to_ip stricter

2016-12-19 Thread Chris Packham
.0.0.0, which for the purposes of IP addresses can be considered an error. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- This was part of my long running IPv6 patchset (which I promise I'll get back to someday). But I feel this stands on it's own merits. lib/net_utils.c | 11

Re: [U-Boot] [RESEND PATCH v2] powerpc: Retain compatible property for L2 cache

2016-12-19 Thread Chris Packham
Hi York, On Tue, Dec 20, 2016 at 6:14 AM, york sun <york@nxp.com> wrote: > On 12/18/2016 11:26 PM, Chris Packham wrote: >> When setting the compatible property for the L2 cache ensure that we >> follow the documented binding by setting both >> "-l2-cache-c

[U-Boot] [PATCH v1 0/2] DS1307 RTC update

2017-04-21 Thread Chris Packham
to see. As it allows me to switch a board I'm working on over to the driver model. I've tried to replicate the non-DM version of the driver faithfully but I've only got access to a ds1340 device so I can't be sure that the mcp7941x specific code is correct. Chris Packham (2): cmd: add Kconfig

[U-Boot] [PATCH v1 1/2] cmd: add Kconfig option for 'date' command

2017-04-21 Thread Chris Packham
Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- cmd/Kconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 13dc46a..1aaf8c5 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -676,6 +676,12 @@ config CMD_LED with led on/off/togle

[U-Boot] [PATCH v1 2/2] rtc: Add DM support to ds1307

2017-04-21 Thread Chris Packham
Add an implementation of the ds1307 driver that uses the driver model i2c APIs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- drivers/rtc/Kconfig | 7 ++ drivers/rtc/ds1307.c | 196 ++- 2 files changed, 184 insertions(

[U-Boot] ethact not set after usb start

2017-03-07 Thread Chris Packham
Hi, I'm working with a new board using u-boot v2016.11. The board is using a SoC (Marvell integrated switch using armada-xp "compatible" core). While the SoC does have some built-in Ethernet interfaces the board I have only has USB available. Based on doc/README.usb I expect that running "usb

Re: [U-Boot] [PATCH] spi: add "jedec,spi-nor" to spi_flash_std_ids

2017-08-14 Thread Chris Packham
+Jagan@gmail not sure what your primary u-boot address is On Wed, Aug 9, 2017 at 1:33 AM, Vignesh R <vigne...@ti.com> wrote: > > > On Tuesday 08 August 2017 10:27 AM, Chris Packham wrote: >> "jedec,spi-nor" is used by Linux for many boards with spi flash. In f

[U-Boot] [PATCH] ARM: mvebu: set correct mem_size for db-88f6820-amc

2017-08-17 Thread Chris Packham
The db-88f6820-amc has four chips with 2Gb density giving a total of 1GB DRAM. Update the board_topology_map to reflect the correct configuration. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- When I setup this board I misinterpreted 2 Gigabits as 2 Gigabytes. It happened to w

[U-Boot] [PATCH v2 2/2] rtc: Add DM support to ds1307

2017-04-25 Thread Chris Packham
Add an implementation of the ds1307 driver that uses the driver model i2c APIs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v2: None drivers/rtc/Kconfig | 7 ++ drivers/rtc/ds1307.c | 196 ++- 2 files change

[U-Boot] [PATCH v2 0/2] DS1307 RTC update

2017-04-26 Thread Chris Packham
to a ds1340 device so I can't be sure that the mcp7941x specific code is correct. Changes in v2: - run moveconfig.py Chris Packham (2): cmd: add Kconfig option for 'date' command rtc: Add DM support to ds1307 cmd/Kconfig| 6 + configs

Re: [U-Boot] [PATCH v2 1/2] cmd: add Kconfig option for 'date' command

2017-04-26 Thread Chris Packham
(drop long Cc list to stop mailman complaining) On Thu, Apr 27, 2017 at 5:22 AM, Simon Glass <s...@chromium.org> wrote: > On 25 April 2017 at 23:19, Chris Packham <judge.pack...@gmail.com> wrote: >> >> Signed-off-by: Chris Packham <judge.pack...@gmail.com> &

[U-Boot] [PATCH v3 1/3] configs: sync P101x, P102x, P202x defconfgs

2017-04-26 Thread Chris Packham
In preparation for the next change that adds a new option. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- This isn't strictly needed. I did this so the next patch only touched CONFIG_CMD_DATE and I figured I may as well send this out so it can be applied if desired. Changes

[U-Boot] [PATCH v3 3/3] rtc: Add DM support to ds1307

2017-04-26 Thread Chris Packham
Add an implementation of the ds1307 driver that uses the driver model i2c APIs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v3: None Changes in v2: None drivers/rtc/Kconfig | 7 ++ drivers/rtc/ds1307.c | 196 ++--

[U-Boot] [PATCH v3 0/3] DS1307 RTC update

2017-04-26 Thread Chris Packham
whitelist Changes in v2: - run moveconfig.py Chris Packham (3): configs: sync P101x, P102x, P202x defconfgs cmd: add Kconfig option for 'date' command rtc: Add DM support to ds1307 cmd/Kconfig| 6 + configs/B4420QDS_NAND_defconfig| 1

Re: [U-Boot] [PATCH v2 1/2] cmd: add Kconfig option for 'date' command

2017-04-26 Thread Chris Packham
On Thu, Apr 27, 2017 at 8:24 AM, Tom Rini <tr...@konsulko.com> wrote: > On Thu, Apr 27, 2017 at 05:55:18AM +1200, Chris Packham wrote: >> (drop long Cc list to stop mailman complaining) >> >> On Thu, Apr 27, 2017 at 5:22 AM, Simon Glass <s...@chromium.org> wrot

Re: [U-Boot] [PATCH 06/28] Convert CONFIG_CMD_AES et al to Kconfig

2017-04-27 Thread Chris Packham
Hi Simon, On Thu, Apr 27, 2017 at 4:27 PM, Simon Glass wrote: > This converts the following to Kconfig: >CONFIG_CMD_AES >CONFIG_AES > > Signed-off-by: Simon Glass > --- > > cmd/Kconfig | 9 + > configs/seaboard_defconfig

[U-Boot] [PATCH v2] tools: moveconfig: cleanup whitelist entries

2017-04-28 Thread Chris Packham
After moving to KConfig and removing from all headers options should be removed from config_whitelist.txt so the build starts complaining if someone adds them back. Acked-by: Masahiro Yamada <yamada.masah...@socionext.com> Signed-off-by: Chris Packham <judge.pack...@gmail.com> ---

[U-Boot] [PATCH v4 3/3] rtc: Add DM support to ds1307

2017-04-28 Thread Chris Packham
Add an implementation of the ds1307 driver that uses the driver model i2c APIs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v4: - move #ifdef CONFIG_CMD_DATE inside the legacy block - use driver data to identify specific chip - terminate the #ifndef with a

[U-Boot] [PATCH v4 1/3] configs: sync P101x, P102x, P202x defconfgs

2017-04-28 Thread Chris Packham
In preparation for the next change that adds a new option. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- This isn't strictly needed. I did this so the next patch only touched CONFIG_CMD_DATE and I figured I may as well send this out so it can be applied if desired. Changes

Re: [U-Boot] [PATCH v2 2/2] rtc: Add DM support to ds1307

2017-04-28 Thread Chris Packham
On Sat, Apr 29, 2017 at 12:27 PM, Simon Glass <s...@chromium.org> wrote: > Hi Chris, > > On 25 April 2017 at 23:19, Chris Packham <judge.pack...@gmail.com> wrote: >> Add an implementation of the ds1307 driver that uses the driver model >> i2c APIs. >> >

[U-Boot] [PATCH v4 0/3] DS1307 RTC update

2017-04-29 Thread Chris Packham
moveconfig.py Chris Packham (3): configs: sync P101x, P102x, P202x defconfgs cmd: add Kconfig option for 'date' command rtc: Add DM support to ds1307 cmd/Kconfig| 6 + configs/B4420QDS_NAND_defconfig| 1 + configs

Re: [U-Boot] spi flash env and driver model

2017-08-07 Thread Chris Packham
On Mon, Aug 7, 2017 at 10:31 PM, Chris Packham <judge.pack...@gmail.com> wrote: > Hi, > > I'm looking at a problem on the db-88f6820-amc board (which has it's > env on spi flash). Somewhere in the init sequence we get a crash. > > git bisect leads me to commit 8f

[U-Boot] [PATCH] spi: add "jedec,spi-nor" to spi_flash_std_ids

2017-08-07 Thread Chris Packham
"jedec,spi-nor" in addition to the U-Boot specific "spi-flash". Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- This fixes my issues with the spi speed selection on db-88f6820-amc. I didn't find anything in the commit message from the initial implementation say

[U-Boot] [RFC PATCH v1 1/2] ARM: mvebu: Add SoC IDs for Marvell's integrated CPUs

2017-08-09 Thread Chris Packham
These SoCs are network packet processors (switch chips) with integrated ARMv7 cores. They share a great deal of commonality with the Armada-XP CPUs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- There are actually a number of IDs for these chips, probably a dozen in total. I h

[U-Boot] [RFC PATCH v1 2/2] ARM: mvebu: add additional information to board_add_ram_info()

2017-08-09 Thread Chris Packham
joshua.sc...@alliedtelesis.co.nz> Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- One of the hardware designers at $dayjob expressed a desire to keep track of various tweaks to the DDR setup during hardware debugging sessions. This is the result. I've based this on what is ava

[U-Boot] [PATCH] cmd/bdinfo: correct comment in board_detail

2017-08-06 Thread Chris Packham
This appears to be a simple typo that dates back to the original implementation of board_detail in commit e79394643b26 ("common: Update cmd_bdinfo for PPC"). Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- cmd/bdinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[U-Boot] spi flash env and driver model

2017-08-07 Thread Chris Packham
Hi, I'm looking at a problem on the db-88f6820-amc board (which has it's env on spi flash). Somewhere in the init sequence we get a crash. git bisect leads me to commit 8fee8845e7 ("enf_sf: reuse setup_flash_device instead of open coding it") but I don't think that's actually the problem. The

[U-Boot] [RFC PATCH 4/4] usb: net: migrate USB Ethernet adapters to Kconfig

2017-08-20 Thread Chris Packham
This migrates ASIX, ASIX88179, MCS7830, RTL8152 and SMSC95XX to Kconfig. Update defconfigs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- configs/arndale_defconfig | 4 +++ configs/bayleybay_defconfig| 2 ++ c

[U-Boot] [RFC PATCH 3/4] usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig

2017-08-20 Thread Chris Packham
CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on USB_HOST_ETHER. Use this as a menu and move the existing LAN75XX and LAN78XX options under new menu. Finally update the defconfigs that need CONFIG_USB_HOST_ETHER. Signed-off-by: Chris Packham <judge.pack...@gmail.

[U-Boot] [RFC PATCH 0/4] usb: net: Migrate USB Ethernet to Kconfig

2017-08-20 Thread Chris Packham
this probably isn't ready for 2017.09 but hopefully I can polish it enough for the next release. Chris Packham (4): Kconfig: drop CONFIG_USB_ETHER_DM9601 Kconfig: drop CONFIG_USB_ETHER_RNDIS usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig usb: net: migrate USB Ethernet adapters to Kconfig configs

Re: [U-Boot] [PATCH 14/17] net: phy: mv88e61xx: Fix uninitialized variable warning

2017-05-09 Thread Chris Packham
Joe Hershberger <joe.hershber...@ni.com> Cc: Chris Packham <judge.pack...@gmail.com> Cc: Kevin Smith <kevin.sm...@elecsyscorp.com> Cc: Prafulla Wadaskar <prafu...@marvell.com> Signed-off-by: Tom Rini <tr...@konsulko.com> --- drivers/net/phy/mv88e61xx.c | 4 +++- 1 file change

Re: [U-Boot] Machine ID

2017-05-13 Thread Chris Packham
On Fri, May 12, 2017 at 9:53 PM, Vic wrote: > Hi All. > > I'm having difficulty with getting a board booting Linux from U-boot. This > is an existing unit, so I don't get much choice over changing versions of > kernel of U-boot. > > bdinfo gives me the machine ID I expect, but

Re: [U-Boot] [PATCH 5/6] moveconfig: Support building a simple config database

2017-05-16 Thread Chris Packham
On 15/05/2017 11:47 PM, "Simon Glass" wrote: Add a -b option which scans all the defconfigs and builds a database of all the CONFIG options used by each. This is useful for querying later. At present this only works with the separate -b option, which does not move any

[U-Boot] [PATCH] rtc: ds1337: drop "SYS" from config variables

2017-05-29 Thread Chris Packham
There is some inconsistency between uses of CONFIG_RTC_DS13xx and CONFIG_SYS_RTC_DS13xx. Address this by dropping the "SYS" from these variables. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- README | 2 +- drivers/rtc/ds133

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2017-05-30 Thread Chris Packham
On Sat, Mar 12, 2016 at 9:18 AM, Scott Wood wrote: > On Fri, 2016-03-11 at 12:13 -0800, Steve Rae wrote: >> On Fri, Mar 11, 2016 at 11:55 AM, Scott Wood wrote: >> > On Fri, 2016-03-11 at 11:47 -0800, Steve Rae wrote: >> > > On Fri, Mar 11, 2016 at 11:29 AM,

Re: [U-Boot] [PATCH 1/4] arm: iproc: add NAND driver

2017-05-30 Thread Chris Packham
(trying newer address for Steve, sorry for the spam) > On Sat, Mar 12, 2016 at 9:18 AM, Scott Wood wrote: >> On Fri, 2016-03-11 at 12:13 -0800, Steve Rae wrote: >>> On Fri, Mar 11, 2016 at 11:55 AM, Scott Wood wrote: >>> > On Fri, 2016-03-11 at 11:47 -0800,

Re: [U-Boot] DNS Lookup in UBoot

2017-06-06 Thread Chris Packham
Hi Duncan, On Tue, Jun 6, 2017 at 1:01 PM, Duncan Hare wrote: > U-boot support DHCP, however beyond the initial set of results returned, many > are optional, and even misused. > > Microsoft's DHCP server appears to have a limited mechanism to set DHCP > responses. > > Because

Re: [U-Boot] [PATCH v4 1/3] configs: sync P101x, P102x, P202x defconfgs

2017-05-02 Thread Chris Packham
On Tue, May 2, 2017 at 3:15 AM, York Sun <york@nxp.com> wrote: > On 04/28/2017 08:20 PM, Chris Packham wrote: >> >> In preparation for the next change that adds a new option. >> >> Signed-off-by: Chris Packham <judge.pack...@gmail.com> >> >&g

[U-Boot] [PATCH v3 4/4] README: remove CONFIG_CMD_DATE

2017-05-02 Thread Chris Packham
CONFIG_CMD_DATE was recently moved to Kconfig. Remove the now duplicate description of the option. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v3: None Changes in v2: None README | 1 - 1 file changed, 1 deletion(-) diff --git a/README b/README index 0ac0136..7

[U-Boot] [PATCH v3 2/4] tools: moveconfig: cleanup whitelist entries

2017-05-02 Thread Chris Packham
After moving to KConfig and removing from all headers options should be removed from config_whitelist.txt so the build starts complaining if someone adds them back. Acked-by: Masahiro Yamada <yamada.masah...@socionext.com> Signed-off-by: Chris Packham <judge.pack...@gmail.com> ---

[U-Boot] [PATCH v3 1/4] tools: moveconfig: extract helper function for user confirmation

2017-05-02 Thread Chris Packham
Avoid repetitive code dealing with asking the user for confirmation. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v3: None Changes in v2: None tools/moveconfig.py | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff

[U-Boot] [PATCH] ARM: mvebu: switch db-88f6820-amc to DM for i2c

2017-05-02 Thread Chris Packham
Move existing configuration from header file to defconfig or dts as appropriate. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- arch/arm/dts/armada-385-amc.dts | 3 +++ configs/db-88f6820-amc_defconfig | 2 ++ include/configs/db-88f6820-amc.h | 7 --- 3 files chan

[U-Boot] [PATCH v3 3/4] tools: moveconfig: cleanup README entires

2017-05-02 Thread Chris Packham
The Kconfig description replaces the description in the README file so as options are migrated they can be removed from the README. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v3: None Changes in v2: None tools/moveconfig.p

Re: [U-Boot] Marvell Kirkwood Guruplug Server Standard upgrade uboot and standalone app issue

2017-05-06 Thread Chris Packham
Hi On 6/05/2017 3:57 PM, "Kernel Hacker" wrote: On 04/25/2017 09:04 PM, Kernel Hacker wrote: > I have a Guruplug server standard that I would like to upgrade with a > newer version of u-boot. Serial output during boot currently shows the > following: > >

Re: [U-Boot] [PATCH v4 3/3] rtc: Add DM support to ds1307

2017-04-30 Thread Chris Packham
On Sun, Apr 30, 2017 at 3:49 PM, Simon Glass <s...@chromium.org> wrote: > On 28 April 2017 at 21:20, Chris Packham <judge.pack...@gmail.com> wrote: >> Add an implementation of the ds1307 driver that uses the driver model >> i2c APIs. >> >> Signed-off-by:

Re: [U-Boot] tftp reliability

2017-09-18 Thread Chris Packham
On Tue, Sep 19, 2017 at 8:26 AM, Ran Shalit wrote: > Hello, > > Does tftp checks the integrity of the file with checksum or any other > similar method ? If not - how can it assure the reliability of the > file that was transferred ? In short it doesn't. Beyond a simple block

Re: [U-Boot] DDR training code for Armada 38x

2017-09-20 Thread Chris Packham
On Wed, Sep 20, 2017 at 5:31 PM, Stefan Roese <s...@denx.de> wrote: > Hi Chris, > > On 19.09.2017 20:58, Chris Packham wrote: >> >> When you did the port from Marvell's source did you script any of the >> tidy-up that you did along the way? > > > Not rea

[U-Boot] [PATCH] ARM: mvebu: handle unused DRAM banks with ECC enabled

2017-09-22 Thread Chris Packham
. Put the -1 where it is needed for scrubbing via the xor engine. Reported-by: Joshua Scott <joshua.sc...@alliedtelesis.co.nz> Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- arch/arm/mach-mvebu/dram.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/a

[U-Boot] DDR training code for Armada 38x

2017-09-19 Thread Chris Packham
Hi Stefan, When you did the port from Marvell's source did you script any of the tidy-up that you did along the way? I'm running up a new board and with the upstream u-boot DDR training occasionally fails. But with the Marvell bootloader it doesn't fail. The initial port was done from TIP-1.29

[U-Boot] Silencing SPL output

2017-10-15 Thread Chris Packham
This is probably something of a foot-gun but here we go... I was wondering if it's worth providing the ability to silence the output from the SPL. CONFIG_SILENT_CONSOLE exist for u-boot proper but the SPL preloader_console_init bypasses anything that would set GD_FLG_SILENT. Even if it didn't the

[U-Boot] [PATCH v2] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-16 Thread Chris Packham
. Implement the workaround by setting the TMISO_SAMPLE value to 0x2 in the timing1 register. Signed-off-by: Chris Packham <judge.pack...@gmail.com> Reviewed-by: Stefan Roese <s...@denx.de> --- I've based this as much as I can on the equivalent implementation in the Li

Re: [U-Boot] [PATCH] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-12 Thread Chris Packham
On Fri, Oct 13, 2017 at 2:05 PM, Chris Packham <judge.pack...@gmail.com> wrote: > Erratum NO. FE-9144572: The device SPI interface supports frequencies of > up to 50 MHz. However, due to this erratum, when the device core clock > is 250 MHz and the SPI interfaces is configured for

[U-Boot] [PATCH] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-12 Thread Chris Packham
. Implement the workaround by setting the TMISO_SAMPLE value to 0x2 in the timing1 register. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- arch/arm/include/asm/arch-mvebu/spi.h | 6 drivers/spi/kirkwood_spi.c| 62 +-- 2 files chang

Re: [U-Boot] [PATCH v2] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-16 Thread Chris Packham
On Tue, Oct 17, 2017 at 10:46 AM, Jagan Teki <jagannadh.t...@gmail.com> wrote: > On Tue, Oct 17, 2017 at 3:07 AM, Chris Packham <judge.pack...@gmail.com> > wrote: >> Erratum NO. FE-9144572: The device SPI interface supports frequencies of >> up to 50 MHz. Howe

Re: [U-Boot] [PATCH] spi: kirkwood_spi: implement workaround for FE-9144572

2017-10-16 Thread Chris Packham
On Tue, Oct 17, 2017 at 6:04 AM, Jagan Teki <jagannadh.t...@gmail.com> wrote: > On Fri, Oct 13, 2017 at 6:35 AM, Chris Packham <judge.pack...@gmail.com> > wrote: >> Erratum NO. FE-9144572: The device SPI interface supports frequencies of >> up to 50 MHz. Howe

Re: [U-Boot] Silencing SPL output

2017-10-16 Thread Chris Packham
Hi Heiko, On Mon, Oct 16, 2017 at 5:24 PM, Heiko Schocher <h...@denx.de> wrote: > Hello Chris, > > Am 16.10.2017 um 02:38 schrieb Chris Packham: >> >> This is probably something of a foot-gun but here we go... >> >> I was wondering if it's worth providing th

[U-Boot] [PATCH v2] patman: add support for omitting bouncing addresses

2017-08-29 Thread Chris Packham
Add support for reading a list of bouncing addresses from a in-tree file (doc/bounces) and from the ~/.patman config file. These addresses are stripped from the Cc list. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- This version supports an in-tree doc/bounces file a

Re: [U-Boot] mv88e61xx autoneg doesn't work with new driver

2017-09-11 Thread Chris Packham
(re formatting to avoid top posting) Hi Clement, On Sat, Sep 9, 2017 at 1:07 AM, Clément Péron wrote: >> 2017-08-31 11:12 GMT+02:00 Clément Péron : >> Hi, >> >> I try to update my u-boot with the latest version 2017.07. >> >> My board is an Altera

[U-Boot] [PATCH] ARM: mvebu: add SAR frequency values for 1.8/2.0GHz

2017-09-04 Thread Chris Packham
The Armada-38x has 1.8GHz and 2.0GHz variants. Add entries for these variants to the sar_freq_tab. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- arch/arm/mach-mvebu/cpu.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-mvebu

Re: [U-Boot] [PATCH] patman: Fix error when the email blacklist is missing

2017-09-12 Thread Chris Packham
ixes: e11aa602 (patman: add support for omitting bouncing addresses) > > Signed-off-by: Simon Glass <s...@chromium.org> > --- > Reviewed-by: Chris Packham <judge.pck...@gmail.com> > tools/patman/settings.py | 28 +--- > 1 file changed, 25 in

Re: [U-Boot] DDR training code for Armada 38x

2017-09-25 Thread Chris Packham
For the internet historians, On Thu, Sep 21, 2017 at 4:25 PM, Chris Packham <judge.pack...@gmail.com> wrote: > On Wed, Sep 20, 2017 at 5:31 PM, Stefan Roese <s...@denx.de> wrote: >> Hi Chris, >> >> On 19.09.2017 20:58, Chris Packham wrote: >>> >>&

[U-Boot] [PATCH] i2c: muxes: pca954x: look up width from chip_desc

2017-09-28 Thread Chris Packham
Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- drivers/i2c/muxes/pca954x.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index 01ca1ff48db9..2b70ff82bdd0 100644 --- a/drivers/i2c/muxes/pca954x.c +

Re: [U-Boot] [PATCH v4 4/7] drivers/i2c/muxes/pca954x: Add pca9547 I2C mux support

2017-09-28 Thread Chris Packham
Hi All, On Sat, Jun 10, 2017 at 5:28 AM, Marek Behún wrote: > This I2C mux is found, for example, on the Turris Omnia board. > > Signed-off-by: Marek Behun > Reviewed-by: Heiko Schocher > > diff --git a/drivers/i2c/muxes/pca954x.c

Re: [U-Boot] Patman - Submitting to mailing list

2017-09-29 Thread Chris Packham
Hi Duncan, On Fri, Sep 29, 2017 at 10:05 AM, Duncan Hare wrote: > Get the following message from running tools/patman/pathan.py > git: 'send-email' is not a git command. See 'git --help'. > > What do I need to do? Duncan Hare (I'm assuming your using some variant of GNU/Linux)

Re: [U-Boot] [PATCH] i2c: muxes: pca954x: look up width from chip_desc

2017-09-29 Thread Chris Packham
On 30/09/2017 2:43 AM, "Marek Behún" <marek.be...@nic.cz> wrote: On Fri, 29 Sep 2017 10:53:36 +1300 Chris Packham <judge.pack...@gmail.com> wrote: > struct pca954x_priv { > @@ -39,14 +40,17 @@ static const struct chip_desc chips[] = { > [PCA9544] =

[U-Boot] [PATCH] ARM: mvebu: Convert CONFIG_MVNETA to Kconfig

2017-08-21 Thread Chris Packham
This converts the following to Kconfig: CONFIG_MVNETA Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- arch/arm/mach-mvebu/include/mach/config.h | 3 --- configs/clearfog_defconfig| 2 +- configs/controlcenterdc_defconfig | 2 +- configs/db-8

Re: [U-Boot] [RFC PATCH 3/4] usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig

2017-08-26 Thread Chris Packham
On 27/08/2017 11:13 AM, "Simon Glass" <s...@chromium.org> wrote: On 20 August 2017 at 04:20, Chris Packham <judge.pack...@gmail.com> wrote: > CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on > USB_HOST_ETHER. Use this as a menu and move the ex

[U-Boot] Patman avoiding bounces

2017-08-26 Thread Chris Packham
Hi, I recently sent a few patches using patman and ran into two problems. The first is a set of undeliverable addresses. This isn't a big problem, more of an annoyance but it also means that anyone replying to my patches also gets the same set of bounces. Would adding a blacklist feature be a

[U-Boot] [PATCH v2 4/4] usb: net: migrate USB Ethernet adapters to Kconfig

2017-08-27 Thread Chris Packham
This migrates ASIX, ASIX88179, MCS7830, RTL8152 and SMSC95XX to Kconfig. Update defconfigs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - add imply for TARGET_NITROGEN6X, ARCH_EXYNOS5 and X86

[U-Boot] [PATCH v2 3/4] usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig

2017-08-27 Thread Chris Packham
CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on USB_HOST_ETHER. Use this as a menu and move the existing LAN75XX and LAN78XX options under new menu. Finally update the defconfigs that need CONFIG_USB_HOST_ETHER. Signed-off-by: Chris Packham <judge.pack...@gmail.com>

[U-Boot] [PATCH v2 0/4] usb: net: Migrate USB Ethernet to Kconfig

2017-08-27 Thread Chris Packham
I think the addition of the implies caught more of the -common.h cases so I'm happier with this version. Changes in v2: - collect review from Simon - add imply USB_HOST_ETHER for X86 and TARGET_NITROGEN6X - add imply for TARGET_NITROGEN6X, ARCH_EXYNOS5 and X86 Chris Packham (4): Kconfig: drop

[U-Boot] [PATCH] moveconfig: fix error message in do_autoconf()

2017-08-27 Thread Chris Packham
Move the % arch outside the double quote so that the missing toolchain message is displayed correctly. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- tools/moveconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/moveconfig.py b/tools/movecon

[U-Boot] [PATCH v2 2/4] Kconfig: drop CONFIG_USB_ETHER_RNDIS

2017-08-27 Thread Chris Packham
This is not a valid option. Drop it. Signed-off-by: Chris Packham <judge.pack...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - collect review from Simon include/configs/cl-som-am57x.h | 1 - include/configs/cm_t54.h | 1 - include/configs/om

[U-Boot] [PATCH v2 1/4] Kconfig: drop CONFIG_USB_ETHER_DM9601

2017-08-27 Thread Chris Packham
This is not a valid option. Drop it. Signed-off-by: Chris Packham <judge.pack...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v2: - collect review from Simon include/configs/dragonboard410c.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed,

[U-Boot] [PATCH v3 5/5] usb: doc: update README.usb for new config options

2017-08-28 Thread Chris Packham
A number of the config options for USB networking have been migrated to Kconfig. Update README.usb to reflect this. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v3: None Changes in v2: None doc/README.usb | 22 +- 1 file changed, 13 insertions

[U-Boot] [PATCH v3 2/5] Kconfig: drop CONFIG_USB_ETHER_RNDIS

2017-08-28 Thread Chris Packham
This is not a valid option. Drop it. Signed-off-by: Chris Packham <judge.pack...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: None include/configs/cl-som-am57x.h | 1 - include/configs/cm_t54.h | 1 - include/configs/omap3_

[U-Boot] [PATCH v3 1/5] Kconfig: drop CONFIG_USB_ETHER_DM9601

2017-08-28 Thread Chris Packham
This is not a valid option. Drop it. Signed-off-by: Chris Packham <judge.pack...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- Changes in v3: None Changes in v2: None include/configs/dragonboard410c.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed,

[U-Boot] [PATCH v3 3/5] usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig

2017-08-28 Thread Chris Packham
CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on USB_HOST_ETHER. Use this as a menu and move the existing LAN75XX and LAN78XX options under new menu. Finally update the defconfigs that need CONFIG_USB_HOST_ETHER. Signed-off-by: Chris Packham <judge.pack...@gmail.

[U-Boot] [PATCH] patman: add support for omitting bouncing addresses

2017-08-28 Thread Chris Packham
Add a --bounce-file option which can be used to omit addresses that are known to bounce. The option specifies a file which lists addresses (one per line) that are stripped from the Cc list. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Here's a quick proof of concept. Rig

[U-Boot] [PATCH v3 0/5] usb: net: Migrate USB Ethernet to Kconfig

2017-08-28 Thread Chris Packham
and TARGET_NITROGEN6X - add imply for TARGET_NITROGEN6X, ARCH_EXYNOS5 and X86 - add review from Simon Chris Packham (5): Kconfig: drop CONFIG_USB_ETHER_DM9601 Kconfig: drop CONFIG_USB_ETHER_RNDIS usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig usb: net: migrate USB Ethernet adapters to Kconfig

[U-Boot] [PATCH v3 4/5] usb: net: migrate USB Ethernet adapters to Kconfig

2017-08-28 Thread Chris Packham
This migrates ASIX, ASIX88179, MCS7830, RTL8152 and SMSC95XX to Kconfig. Update defconfigs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- Changes in v3: None Changes in v2: - add imply for TARGET_NITROGEN6X, ARCH_EXYNOS5 and X86 arch/K

Re: [U-Boot] [PATCH 0/8] Clean up CONFIG_SYS_{CBSIZE, PBSIZE, MAXARGS, BARGSIZE} definitions

2017-08-24 Thread Chris Packham
Hi Thomas, On Thu, Aug 24, 2017 at 8:58 AM, Thomas Petazzoni wrote: > Hello, > > While adding support for new platforms, I found out that many, many > platforms define pretty much the same values for: > > CONFIG_SYS_CBSIZE > CONFIG_SYS_PBSIZE >

[U-Boot] [RFC PATCH 1/4] Kconfig: drop CONFIG_USB_ETHER_DM9601

2017-08-20 Thread Chris Packham
This is not a valid option. Drop it. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- include/configs/dragonboard410c.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard

[U-Boot] [RFC PATCH 2/4] Kconfig: drop CONFIG_USB_ETHER_RNDIS

2017-08-20 Thread Chris Packham
This is not a valid option. Drop it. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- include/configs/cl-som-am57x.h | 1 - include/configs/cm_t54.h | 1 - include/configs/omap3_beagle.h | 1 - include/configs/omap3_evm.h| 1 - include/configs/omap3_logic.h | 1 - i

[U-Boot] [PATCH] ARM: mvebu: add "spi-flash" compatible string

2017-08-29 Thread Chris Packham
U-boots spi-nor support is currently considered a work in progress. For now to avoid issues it is necessary to add a "spi-flash" compatible string. Eventually the "jedec,spi-nor" will be sufficient when the core U-boot code is updated to support it. Signed-off-by: Chris

Re: [U-Boot] patman: add support for omitting bouncing addresses

2017-08-29 Thread Chris Packham
On Tue, Aug 29, 2017 at 6:37 AM, Philipp Tomsich <philipp.toms...@theobroma-systems.com> wrote: > > > On Mon, 28 Aug 2017, Chris Packham wrote: > >> Add a --bounce-file option which can be used to omit addresses that are >> known to bounce. The option specifies a f

[U-Boot] [next PATCH v2 2/2] ARM: mvebu: add additional information to board_add_ram_info()

2017-09-03 Thread Chris Packham
joshua.sc...@alliedtelesis.co.nz> Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- One of the hardware designers at $dayjob expressed a desire to keep track of various tweaks to the DDR setup during hardware debugging sessions. This is the result. I've based this on what is ava

[U-Boot] [next PATCH v2 1/2] ARM: mvebu: Add SoC IDs for Marvell's integrated CPUs

2017-09-03 Thread Chris Packham
These SoCs are network packet processors (switch chips) with integrated ARMv7 cores. They share a great deal of commonality with the Armada-XP CPUs. Signed-off-by: Chris Packham <judge.pack...@gmail.com> --- There are actually a number of IDs for these chips, probably a dozen in total. I h

Re: [U-Boot] [PATCH 1/2] configs: Migrate all of the existing USB symbols, except fastboot

2017-09-02 Thread Chris Packham
On 26/08/2017 9:55 AM, "Tom Rini" wrote: This syncs all of the currently Kconfig'd symbols out of the headers and into the defconfig files. This has two exceptions, first am335x_evm needs to be converted to DM in SPL and then it can stop undef'ing CONFIG_DM_USB. Leaving

[U-Boot] [PATCH v3] patman: add support for omitting bouncing addresses

2017-09-01 Thread Chris Packham
Add support for reading a list of bouncing addresses from a in-tree file (doc/bounces) and from the ~/.patman config file. These addresses are stripped from the Cc list. Signed-off-by: Chris Packham <judge.pack...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- This vers

[U-Boot] [PATCH v3] spi: kirkwood_spi: implement workaround for FE-9144572

2017-11-28 Thread Chris Packham
. Implement the workaround by setting the TMISO_SAMPLE value to 0x2 in the timing1 register. Signed-off-by: Chris Packham <judge.pack...@gmail.com> Reviewed-by: Stefan Roese <s...@denx.de> --- I've based this as much as I can on the equivalent implementation in the Li

[U-Boot] [PATCH] arm: mvebu: correct comments around cas_wl/cas_l

2017-11-28 Thread Chris Packham
) but if there were ever a board that did need to set these explicitly they would run into unexpected issued. Update the comments to reflect the correct order of structure members. Reported-by: Tobi Wulff <tobi.wu...@alliedtelesis.co.nz> Signed-off-by: Chris Packham <judge.pack...@gmail.com>

Re: [U-Boot] U-Boot proper(not SPL) relocate option

2017-11-21 Thread Chris Packham
On Wed, Nov 22, 2017 at 2:59 PM, Kever Yang wrote: > Hi Lukasz, > > > Thanks for your quick comments on this topic. > On 11/21/2017 06:29 PM, Lukasz Majewski wrote: >> >> Hi Kever, >> >>> Hi Guys, >>> >>> I try to understand why we need to do the relocate in

Re: [U-Boot] Anyone using recentish u-boot on a GuruPlug?

2017-12-18 Thread Chris Packham
Hi Martin, On Mon, Dec 18, 2017 at 8:35 AM, Martin Husemann wrote: > I tested the RAM version now and indeed it does not work either. > > With my old u-boot I get: > > U-Boot 2013.10 (Oct 21 2013 - 20:54:41) > Marvell-GuruPlug > > SoC: Kirkwood 88F6281_A1 > DRAM: 512 MiB >

<    1   2   3   4   5   6   7   8   9   10   >