[U-Boot] [PATCH] serial: nulldev: Implement "pending" function to fix tstc return "true"

2017-11-03 Thread Wilson Lee
ead a character from nulldev serial will result in continuous getting -EAGAIN return which might lead system to hang. This commit is to fix a bug in nulldev serial which implement "pending" function in nulldev serial to always indicate there is no character in console that pending for read.

[U-Boot] [PATCH v2] mtd: nand: zynq: Add a config option to use 1st stage bootloader timing

2017-11-06 Thread Wilson Lee
CONFIG_NAND_ZYNQ_USE_BOOTLOADER1_TIMINGS that allow NAND driver use timing values set by the 1st stage bootloader, instead of the hard-coded values in the Zynq NAND driver. Signed-off-by: Jeff Westfahl Signed-off-by: Wilson Lee Cc: Joe Hershberger Cc: Keng Soon Cheah Cc: Chen Yee Chew Cc: Siva Durga

[U-Boot] [PATCH] cmd: console: Add serial devices probe command

2017-11-06 Thread Wilson Lee
user to probe others possible serial console and register them to stdio list for stdio switching. Signed-off-by: Wilson Lee Cc: Joe Hershberger Cc: Keng Soon Cheah Cc: Chen Yee Chew --- cmd/console.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/cmd/console.c b

[U-Boot] [RESEND PATCH] net: macb: Add support for Xilinx Zynq SoC

2017-11-06 Thread Wilson Lee
linkspeed for case of using Xilinx Zynq Programmable Logic as GMII to RGMII convertor. This patch convert the return value to use error codes. Signed-off-by: Wilson Lee Cc: Chen Yee Chew Cc: Keng Soon Cheah Cc: Joe Hershberger Cc: Wenyou Yang --- drivers/net/Kconfig | 7 + drivers/net

[U-Boot] [RESEND PATCH] mtd: nand: zynq: Add support for the NAND lock/unlock operation

2017-11-06 Thread Wilson Lee
From: Joe Hershberger Zynq NAND driver is not support for NAND lock or unlock operation. Hence, accidentally write into the critical NAND region might cause data corruption to occur. This commit is to add NAND lock/unlock command into NAND SMC register set for NAND lock/unlock operaion. Signed-

[U-Boot] [PATCH] net: dhcp: Allow "MAY_FAIL" to still try each adapter

2017-11-07 Thread Wilson Lee
From: Joe Hershberger This change allows the "MAY_FAIL" DHCP option to still attempt to contact a DHCP server on each adapter and only give up once each adapter has failed once. To get the existing behavior, set the already-existing ethrotate=no variable. Signed-off-by: Joe Hershberger Cc: Ken

[U-Boot] [PATCH] lib: sha1: Change uint8_t to unsigned char for sha1_der_prefix array.

2017-11-07 Thread Wilson Lee
array instead. This commit is to remove and change the uint8_t to unsigned char for sha1_der_perfix[] array. Signed-off-by: Wilson Lee Cc: Joe Hershberger Cc: Keng Soon Cheah Cc: Chen Yee Chew Cc: Andrew Duda Cc: Simon Glass --- include/u-boot/sha1.h | 2 +- lib/sha1.c| 2 +-

[U-Boot] [PATCH] mtd: zynq: nand: Move board_nand_init() function to board.c

2017-11-07 Thread Wilson Lee
allow customization of board_nand_init() function. Signed-off-by: Wilson Lee Cc: Joe Hershberger Cc: Keng Soon Cheah Cc: Chen Yee Chew Cc: Albert Aribaud Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Cc: Scott Wood --- arch/arm/mach-zynq/include/mach/nand.h | 9 + board/xilinx

[U-Boot] [PATCH] ni: Add NIZYNQ platform

2017-11-07 Thread Wilson Lee
Initial platform creation for NIZYNQ. Signed-off-by: Joe Hershberger Signed-off-by: Keng Soon Cheah Signed-off-by: Wilson Lee Cc: Chen Yee Chew Cc: Albert Aribaud --- arch/arm/Kconfig | 15 +++ arch/arm/Makefile | 4 +++- board/ni/Kconfig | 13 + 3 files changed

Re: [U-Boot] [PATCH] mtd: zynq: nand: Move board_nand_init() function to board.c

2017-11-08 Thread Wilson Lee
Hi Michal, On Wed, 2017-11-08 at 08:54 +0100, Michal Simek wrote: > On 8.11.2017 03:44, Wilson Lee wrote: > > > > Putting board_nand_init() function inside NAND driver was not > > appropriate > > due to it doesn't allow board vendor to customise their NAND > &

[U-Boot] [PATCH v2] mtd: zynq: nand: Move board_nand_init() function to board.c

2017-11-15 Thread Wilson Lee
allow customization of board_nand_init() function. Signed-off-by: Wilson Lee Cc: Joe Hershberger Cc: Keng Soon Cheah Cc: Chen Yee Chew Cc: Albert Aribaud Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Cc: Scott Wood --- arch/arm/mach-zynq/include/mach/nand.h | 9 + drivers/mtd

Re: [U-Boot] [PATCH] ni: Add NIZYNQ platform

2017-11-21 Thread Wilson Lee
Hi Michal, On Wed, 2017-11-08 at 07:27 +0100, Michal Simek wrote: > On 8.11.2017 03:54, Wilson Lee wrote: > > > > Initial platform creation for NIZYNQ. > > > > Signed-off-by: Joe Hershberger > > Signed-off-by: Keng Soon Cheah > > Signed-off-by: Wi

Re: [U-Boot] [PATCH] ni: Add NIZYNQ platform

2017-11-21 Thread Wilson Lee
Hi Michal, On Wed, 2017-11-08 at 07:27 +0100, Michal Simek wrote: > On 8.11.2017 03:54, Wilson Lee wrote: > > > > Initial platform creation for NIZYNQ. > > > > Signed-off-by: Joe Hershberger > > Signed-off-by: Keng Soon Cheah > > Signed-off-by: Wi

Re: [U-Boot] [PATCH] ni: Add NIZYNQ platform

2017-11-22 Thread Wilson Lee
Hi Michal, On Wed, 2017-11-22 at 08:11 +0100, Michal Simek wrote: > Hi, > > On 22.11.2017 04:06, Wilson Lee wrote: > > > > Hi Michal, > > > > On Wed, 2017-11-08 at 07:27 +0100, Michal Simek wrote: > > > > > > On 8.11.2017 03:54, Wilson Le

Re: [U-Boot] [PATCH] lib: sha1: Change uint8_t to unsigned char for sha1_der_prefix array.

2017-11-23 Thread Wilson Lee
Hi Simon, On Mon, 2017-11-20 at 08:38 -0700, Simon Glass wrote: > Hi Wilson, > > On 7 November 2017 at 19:30, Wilson Lee wrote: > > > > uint8_t used in sha1_der_prefix array was not able to recognize by > > compiler when try to build the tools using 'HOSTCC&#x

[U-Boot] [PATCH] net: macb: Add support for Xilinx Zynq SoC

2017-08-23 Thread Wilson Lee
linkspeed for case of using Xilinx Zynq Programmable Logic as GMII to RGMII convertor. This patch convert the return value to use error codes. Signed-off-by: Wilson Lee Cc: Chen Yee Chew Cc: Keng Soon Cheah Cc: Joe Hershberger Cc: Wenyou Yang --- drivers/net/Kconfig | 7 + drivers/net

[U-Boot] [PATCH] serial: nulldev: Add nulldev serial driver

2017-08-23 Thread Wilson Lee
igned-off-by: Joe Hershberger Signed-off-by: Keng Soon Cheah Cc: Chen Yee Chew Signed-off-by: Wilson Lee --- drivers/serial/Kconfig | 7 +++ drivers/serial/Makefile | 1 + drivers/serial/serial.c | 2 + drivers/serial/serial_nulldev.c

[U-Boot] [PATCH v2] serial: nulldev: Add nulldev serial driver

2017-08-25 Thread Wilson Lee
From: Keng Soon Cheah Some device the serial console's initialization cannot run early during the boot process. Hence, nulldev serial device is helpful on that situation. For example, if the serial module was implemented in FPGA. Serial initialization is prohibited to run until the FPGA was prog

[U-Boot] [PATCH] common: console: Fix duplicated CONFIG in silent env callback

2017-08-25 Thread Wilson Lee
duplicated CONFIG keywork in silent environment callback function. Signed-off-by: Wilson Lee Cc: Keng Soon Cheah Cc: Chen Yee Chew Cc: Joe Hershberger --- common/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/console.c b/common/console.c index 3167921

[U-Boot] [PATCH] mtd: nand: zynq: Add support for the NAND lock/unlock operation

2017-08-25 Thread Wilson Lee
-off-by: Joe Hershberger Signed-off-by: Keng Soon Cheah Cc: Chen Yee Chew Cc: Siva Durga Prasad Paladugu Cc: Michal Simek Cc: Scott Wood Signed-off-by: Wilson Lee --- drivers/mtd/nand/zynq_nand.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/mtd/nand/zynq_nand.c

[U-Boot] [PATCH] mtd: nand: zynq: Add a config option to use timing values set by FSBL

2017-08-25 Thread Wilson Lee
allow NAND driver use timing values set by the FSBL, instead of the hard-coded values in the Zynq NAND driver. Signed-off-by: Jeff Westfahl Signed-off-by: Wilson Lee Cc: Joe Hershberger Cc: Keng Soon Cheah Cc: Chen Yee Chew Cc: Siva Durga Prasad Paladugu Cc: Michal Simek Cc: Scott Wood

Re: [U-Boot] [PATCH v2] serial: nulldev: Add nulldev serial driver

2017-08-29 Thread Wilson Lee
Hi Bin Meng, On Tue, 2017-08-29 at 09:41 +0800, Bin Meng wrote: > Hi Wilson, > > On Fri, Aug 25, 2017 at 11:29 AM, Wilson Lee > wrote: > > > > From: Keng Soon Cheah > > > > Some device the serial console's initialization cannot run early > > dur