Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Wills Wang
On 12/27/2015 03:38 PM, Marek Vasut wrote: On Sunday, December 27, 2015 at 08:33:26 AM, Wills Wang wrote: On 12/27/2015 02:37 AM, Marek Vasut wrote: On Saturday, December 26, 2015 at 07:29:51 PM, Wills Wang wrote: WASP is ar9341. Please do not top post. Did you try if the memory is accessi

Re: [U-Boot] [PATCH v4 4/8] mips: ath79: add serial driver for ar933x SOC

2015-12-27 Thread Thomas Chou
Hi Wills, On 2015年12月27日 14:28, Wills Wang wrote: +static int ar933x_serial_putc(struct udevice *dev, const char c) +{ +u32 data; + +if (c == '\n') +ar933x_serial_putc(dev, '\r'); remove this, the serial core driver takes care of it + +do { +data = ar933x_serial_re

Re: [U-Boot] [PATCH v4 4/8] mips: ath79: add serial driver for ar933x SOC

2015-12-27 Thread Thomas Chou
Hi Wills, On 2015年12月26日 21:20, Daniel Schwierzeck wrote: +static int ar933x_serial_probe(struct udevice *dev) +{ + struct ar933x_serial_priv *priv = dev_get_priv(dev); + struct ar933x_serial_platdata *plat = dev_get_platdata(dev); + u32 val; + + priv->regs = plat->regs;

Re: [U-Boot] [PATCH v4 3/8] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Wills Wang
On 12/27/2015 01:01 AM, Daniel Schwierzeck wrote: +u32 id, major, minor; +u32 rev = 0; +u32 ver = 1; + +id = readl(KSEG1ADDR(AR71XX_RESET_BASE + AR71XX_RESET_REG_REV_ID)); +major = id & REV_ID_MAJOR_MASK; + +switch (major) { +case REV_ID_MAJOR_AR71XX: +minor

Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Marek Vasut
On Sunday, December 27, 2015 at 09:07:36 AM, Wills Wang wrote: > On 12/27/2015 03:38 PM, Marek Vasut wrote: > > On Sunday, December 27, 2015 at 08:33:26 AM, Wills Wang wrote: > >> On 12/27/2015 02:37 AM, Marek Vasut wrote: > >>> On Saturday, December 26, 2015 at 07:29:51 PM, Wills Wang wrote: > >>>

Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Wills Wang
On 12/27/2015 06:09 PM, Marek Vasut wrote: On Sunday, December 27, 2015 at 09:07:36 AM, Wills Wang wrote: On 12/27/2015 03:38 PM, Marek Vasut wrote: On Sunday, December 27, 2015 at 08:33:26 AM, Wills Wang wrote: On 12/27/2015 02:37 AM, Marek Vasut wrote: On Saturday, December 26, 2015 at 07

Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Marek Vasut
On Sunday, December 27, 2015 at 11:18:25 AM, Wills Wang wrote: > On 12/27/2015 06:09 PM, Marek Vasut wrote: > > On Sunday, December 27, 2015 at 09:07:36 AM, Wills Wang wrote: > >> On 12/27/2015 03:38 PM, Marek Vasut wrote: > >>> On Sunday, December 27, 2015 at 08:33:26 AM, Wills Wang wrote: >

[U-Boot] Please pull u-boot-sunxi master (v2016.01 bugfix)

2015-12-27 Thread Hans de Goede
Hi Tom, Here is a sunxi pull-req with a small bugfix for v2016.01: The following changes since commit f84c2b665b87fc6713a756d0fddf5c45e02255e5: Prepare v2016.01-rc3 (2015-12-21 21:07:04 -0500) are available in the git repository at: http://git.denx.de/u-boot-sunxi.git master for you to f

Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Wills Wang
On 12/27/2015 07:04 PM, Marek Vasut wrote: On Sunday, December 27, 2015 at 11:18:25 AM, Wills Wang wrote: On 12/27/2015 06:09 PM, Marek Vasut wrote: On Sunday, December 27, 2015 at 09:07:36 AM, Wills Wang wrote: On 12/27/2015 03:38 PM, Marek Vasut wrote: On Sunday, December 27, 2015 at 08:3

Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Daniel Schwierzeck
Am 27.12.2015 um 12:04 schrieb Marek Vasut: > On Sunday, December 27, 2015 at 11:18:25 AM, Wills Wang wrote: >> On 12/27/2015 06:09 PM, Marek Vasut wrote: >>> On Sunday, December 27, 2015 at 09:07:36 AM, Wills Wang wrote: On 12/27/2015 03:38 PM, Marek Vasut wrote: > On Sunday, December 2

Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Marek Vasut
On Sunday, December 27, 2015 at 12:37:37 PM, Daniel Schwierzeck wrote: > Am 27.12.2015 um 12:04 schrieb Marek Vasut: > > On Sunday, December 27, 2015 at 11:18:25 AM, Wills Wang wrote: > >> On 12/27/2015 06:09 PM, Marek Vasut wrote: > >>> On Sunday, December 27, 2015 at 09:07:36 AM, Wills Wang wrote

Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Marek Vasut
On Sunday, December 27, 2015 at 12:37:16 PM, Wills Wang wrote: > On 12/27/2015 07:04 PM, Marek Vasut wrote: > > On Sunday, December 27, 2015 at 11:18:25 AM, Wills Wang wrote: > >> On 12/27/2015 06:09 PM, Marek Vasut wrote: > >>> On Sunday, December 27, 2015 at 09:07:36 AM, Wills Wang wrote: >

Re: [U-Boot] [PATCH v4 4/8] mips: ath79: add serial driver for ar933x SOC

2015-12-27 Thread Thomas Chou
Hi Wills, Please note the following, 1. add this uart to drivers/serial/Kconfig . 2. add debug uart support. see include/debug_uart.h . also add it to Kconfig 3. cp linux/Documentation/devicetree/bindings/serial/qca,ar9330-uart.txt u-boot/doc/device-tree-bindings/serial/ 4. to save chan

Re: [U-Boot] [PATCH v3 1/4] mips: add base support for atheros ath79 based SOCs

2015-12-27 Thread Wills Wang
On 12/27/2015 07:37 PM, Daniel Schwierzeck wrote: Am 27.12.2015 um 12:04 schrieb Marek Vasut: On Sunday, December 27, 2015 at 11:18:25 AM, Wills Wang wrote: On 12/27/2015 06:09 PM, Marek Vasut wrote: On Sunday, December 27, 2015 at 09:07:36 AM, Wills Wang wrote: On 12/27/2015 03:38 PM, Mar

[U-Boot] [PATCH 1/7] devicetree: use wildcard to clean arch subdir

2015-12-27 Thread Thomas Chou
Use wildcard to clean arch subdirectories, as it is cleaner than listing all the arch which builds dtb. Signed-off-by: Thomas Chou --- dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dts/Makefile b/dts/Makefile index d3122aa..dbde703 100644 --- a/dts/Makefile +++

[U-Boot] [PATCH 3/7] arm: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Thomas Chou
Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that there is no need to list all the dtb for different targets/boards. Signed-off-by: Thomas Chou Cc: Albert Aribaud --- arch/arm/dts/Makefile | 192 +- 1 file changed, 1 insertion(+), 191

[U-Boot] [PATCH 4/7] microblaze: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Thomas Chou
Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that there is no need to list all the dtb for different targets/boards. Signed-off-by: Thomas Chou Cc: Michal Simek --- arch/microblaze/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/dts/M

[U-Boot] [PATCH 5/7] powerpc: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Thomas Chou
Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that there is no need to list all the dtb for different targets/boards. Signed-off-by: Thomas Chou Cc: Wolfgang Denk --- arch/powerpc/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/dts/Makefi

[U-Boot] [PATCH 7/7] x86: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Thomas Chou
Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that there is no need to list all the dtb for different targets/boards. Signed-off-by: Thomas Chou Cc: Bin Meng --- arch/x86/dts/Makefile | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/x86/dts/Makefil

[U-Boot] [PATCH 6/7] sandbox: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Thomas Chou
Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that there is no need to list all the dtb for different targets/boards. Signed-off-by: Thomas Chou --- arch/sandbox/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/dts/Makefile b/arch/sandbox/d

[U-Boot] [PATCH 2/7] arc: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Thomas Chou
Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that there is no need to list all the dtb for different targets/boards. Signed-off-by: Thomas Chou Cc: Alexey Brodkin --- arch/arc/dts/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arc/dts/Makefile b

Re: [U-Boot] [PATCH] sunxi: Remove Orangepi PC RAM speed to 624 MHz

2015-12-27 Thread Hans de Goede
Hi, On 24-12-15 17:08, Ian Campbell wrote: On Wed, 2015-12-23 at 11:50 +0100, Hans de Goede wrote: There are some reports of stability issues at 672 MHz, see: http://linux-sunxi.org/Orange_Pi_PC#DRAM_clock_speed_limit Looks like only one (in that table at least)? Correct, but another 7 out

Re: [U-Boot] pull request: u-boot-uniphier/master

2015-12-27 Thread Tom Rini
On Wed, Dec 23, 2015 at 12:22:22AM +0900, Masahiro Yamada wrote: > Hi Tom, > > Here are various cleanups and preparation for new SoCs support. > Please pull! > > > The following changes since commit f84c2b665b87fc6713a756d0fddf5c45e02255e5: > > Prepare v2016.01-rc3 (2015-12-21 21:07:04 -0500

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

2015-12-27 Thread Tom Rini
On Wed, Dec 23, 2015 at 04:15:07AM +0100, Marek Vasut wrote: > The following changes since commit 3721208fa7fdb2af6ac13300d5d81433742c6ba1: > > x86: Remove Graeme Russ from the git alias file (2015-12-21 09:37:46 -0500) > > are available in the git repository at: > > git://git.denx.de/u-boo

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

2015-12-27 Thread Tom Rini
On Wed, Dec 23, 2015 at 04:27:58PM +0100, Marek Vasut wrote: > Hi, > > I had to add one more patch, so below is an updated one: > > The following changes since commit 3721208fa7fdb2af6ac13300d5d81433742c6ba1: > > x86: Remove Graeme Russ from the git alias file (2015-12-21 09:37:46 -0500) > >

Re: [U-Boot] Please pull u-boot-sunxi master (v2016.01 bugfix)

2015-12-27 Thread Tom Rini
On Sun, Dec 27, 2015 at 12:35:54PM +0100, Hans de Goede wrote: > Hi Tom, > > Here is a sunxi pull-req with a small bugfix for v2016.01: > > The following changes since commit f84c2b665b87fc6713a756d0fddf5c45e02255e5: > > Prepare v2016.01-rc3 (2015-12-21 21:07:04 -0500) > > are available in t

Re: [U-Boot] [RFC PATCH 01/11] serial: Add support for Qualcomm serial port

2015-12-27 Thread Mateusz Kulikowski
Hi Masahiro, On 23.12.2015 04:52, Masahiro Yamada wrote: [..] > I guess Linux sorts headers from global to local. > > #include global in the project > #include arch-specific > #include "foo.h"local in the directory > > > Likewise, the following makes sense for U-Boot > > #inc

Re: [U-Boot] [PATCH 8/9] efi_loader: Add "bootefi" command

2015-12-27 Thread Alexander Graf
On 26.12.15 19:55, Leif Lindholm wrote: > On Fri, Dec 25, 2015 at 10:25:22AM +0100, Andreas Färber wrote: >> Am 25.12.2015 um 10:02 schrieb Alexander Graf: >> [snip] >>> The reason I implemented "bootefi" was really because it's the natural >>> fit into how U-Boot handles all other formats today.

Re: [U-Boot] [linux-sunxi] Re: PSCI for H3

2015-12-27 Thread Maxime Ripard
On Wed, Dec 23, 2015 at 12:14:15PM +0200, Siarhei Siamashka wrote: > On Tue, 17 Nov 2015 15:32:30 +0100 > Jens Kuske wrote: > > > On 16/11/15 07:26, Chen-Yu Tsai wrote: > > > Hi everyone, > > > > > > I got my Orange Pi PC booting U-boot now, using Hans' sunxi-wip branch > > > that > > > include

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

2015-12-27 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 | 71 ++ 1 file changed, 71

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

2015-12-27 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/dwc2.c | 41 + 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index 541c0f9..42d31e3 10

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

2015-12-27 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/usb/host/ehci-mx6.c | 32 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 2666351..e1c67f7

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

2015-12-27 Thread Mateusz Kulikowski
Changes in V3: - wait_for_bit code is moved to header and converted to static inline function. Previous version added ~7byte of rodata to all boards (even not using wait_for_bit). Changes in V2: - wait_bit.o is always compiled in - Removed CONFIG_LIB_WAIT_BIT from configs/Kconfigs - Constif

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

2015-12-27 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski --- drivers/net/zynq_gem.c | 35 ++- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 7059c84..97e30f3 100644 --- a/

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

2015-12-27 Thread Mateusz Kulikowski
Use existing library function to poll bit(s). Signed-off-by: Mateusz Kulikowski Tested-by: Sylvain Lemieux --- drivers/usb/host/ohci-lpc32xx.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/drivers/usb/host/ohci-lpc32xx.c b/drivers/usb/h

Re: [U-Boot] [PATCH 0/9] EFI payload / application support

2015-12-27 Thread Tom Rini
On Sat, Dec 26, 2015 at 03:31:03PM +, Leif Lindholm wrote: > On Tue, Dec 22, 2015 at 02:57:47PM +0100, Alexander Graf wrote: > > This is my Christmas present for my openSUSE friends :). > > > > U-Boot is a great project for embedded devices. However, convincing > > everyone involved that only

Re: [U-Boot] [PATCH 0/9] EFI payload / application support

2015-12-27 Thread Leif Lindholm
On Sun, Dec 27, 2015 at 01:10:39PM -0500, Tom Rini wrote: > So, my only "big" concern here is, are we as a community able to view > and implement the relevant parts of the UEFI spec (without having to > agree to a potentially complicated enough license to have to bug a > lawyer)? It's been a while

Re: [U-Boot] [PATCH 0/9] EFI payload / application support

2015-12-27 Thread Tom Rini
On Sun, Dec 27, 2015 at 06:39:16PM +, Leif Lindholm wrote: > On Sun, Dec 27, 2015 at 01:10:39PM -0500, Tom Rini wrote: > > So, my only "big" concern here is, are we as a community able to view > > and implement the relevant parts of the UEFI spec (without having to > > agree to a potentially co

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

2015-12-27 Thread Stefan Bruens
On Sonntag, 27. Dezember 2015 18:28:09 CET Mateusz Kulikowski wrote: > Use existing library function to poll bit(s). > > Signed-off-by: Mateusz Kulikowski It might be useful to have not only a relative timeout, but also an absolute timeout. For dwc2, the timeout handling could be moved from the

Re: [U-Boot] [PATCH 4/5] altera_qspi: show erase progress

2015-12-27 Thread Thomas Chou
Hi Marek, On 2015年12月25日 17:58, Marek Vasut wrote: On Friday, December 25, 2015 at 09:33:52 AM, Thomas Chou wrote: Hi Marek, On 2015年12月25日 12:08, Marek Vasut wrote: Well, it is only a putc() which is plain and simple. Sure, but then I still don't understand why this cannot be in the common

Re: [U-Boot] [PATCH 1/5] altera_qspi: call callback even if the erase failed

2015-12-27 Thread Thomas Chou
On 2015年12月24日 08:51, Thomas Chou wrote: Erase is an asynchronous operation. Device drivers are supposed to call instr->callback() whenever the operation completes, even if it completes with a failure. Signed-off-by: Thomas Chou --- drivers/mtd/altera_qspi.c | 1 + 1 file changed, 1 inser

Re: [U-Boot] [PATCH 2/5] altera_qspi: set fail_addr for erase ops

2015-12-27 Thread Thomas Chou
On 2015年12月24日 08:51, Thomas Chou wrote: If the erase fails, fail_addr might indicate exactly which block failed. If fail_addr = MTD_FAIL_ADDR_UNKNOWN, the failure was not at the device level or was not specific to any particular block. Signed-off-by: Thomas Chou --- drivers/mtd/altera_qspi

Re: [U-Boot] [PATCH 3/5] altera_qspi: skip erase if the sector is blank

2015-12-27 Thread Thomas Chou
On 2015年12月24日 08:51, Thomas Chou wrote: Skip erase if the sector is blank. The sector erase is slow, and may take 0.7 sec typically or up to 3 sec worst-case. Signed-off-by: Thomas Chou --- drivers/mtd/altera_qspi.c | 39 +-- 1 file changed, 25 insertio

Re: [U-Boot] [PATCH 5/5] altera_qspi: allow ctrl-c to abort the erase ops

2015-12-27 Thread Thomas Chou
On 2015年12月24日 08:51, Thomas Chou wrote: Allow ctrl-c to abort the erase ops. Signed-off-by: Thomas Chou --- drivers/mtd/altera_qspi.c | 9 + 1 file changed, 9 insertions(+) Applied to u-boot-nios. ___ U-Boot mailing list U-Boot@lists.

Re: [U-Boot] [PATCH 4/5] altera_qspi: show erase progress

2015-12-27 Thread Thomas Chou
On 2015年12月24日 08:51, Thomas Chou wrote: Show sector erase progress with dot and comma. Signed-off-by: Thomas Chou --- drivers/mtd/altera_qspi.c | 14 ++ 1 file changed, 14 insertions(+) Applied to u-boot-nios. ___ U-Boot mailing

[U-Boot] [PULL] Please pull u-boot-nios/master

2015-12-27 Thread Thomas Chou
The following changes since commit 78680314c53a95c0bb25e942662979843b60d7b9: Merge branch 'master' of http://git.denx.de/u-boot-sunxi (2015-12-27 09:15:57 -0500) are available in the git repository at: git://git.denx.de/u-boot-nios.git master for you to fetch changes up to 8e8106dcd540e4c7

Re: [U-Boot] [PATCH 2/7] arc: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Bin Meng
On Sun, Dec 27, 2015 at 9:44 PM, Thomas Chou wrote: > Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that > there is no need to list all the dtb for different targets/boards. > > Signed-off-by: Thomas Chou > Cc: Alexey Brodkin > --- > arch/arc/dts/Makefile | 4 +--- > 1 file changed,

Re: [U-Boot] [PATCH 1/7] devicetree: use wildcard to clean arch subdir

2015-12-27 Thread Bin Meng
On Sun, Dec 27, 2015 at 9:44 PM, Thomas Chou wrote: > Use wildcard to clean arch subdirectories, as it is cleaner than > listing all the arch which builds dtb. > > Signed-off-by: Thomas Chou > --- > dts/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng __

Re: [U-Boot] [PATCH 4/7] microblaze: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Bin Meng
On Sun, Dec 27, 2015 at 9:44 PM, Thomas Chou wrote: > Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that > there is no need to list all the dtb for different targets/boards. > > Signed-off-by: Thomas Chou > Cc: Michal Simek > --- > arch/microblaze/dts/Makefile | 2 +- > 1 file change

Re: [U-Boot] [PATCH 3/7] arm: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Bin Meng
On Sun, Dec 27, 2015 at 9:44 PM, Thomas Chou wrote: > Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that > there is no need to list all the dtb for different targets/boards. > > Signed-off-by: Thomas Chou > Cc: Albert Aribaud > --- > arch/arm/dts/Makefile | 192 > +--

Re: [U-Boot] [PATCH 6/7] sandbox: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Bin Meng
On Sun, Dec 27, 2015 at 9:44 PM, Thomas Chou wrote: > Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that > there is no need to list all the dtb for different targets/boards. > > Signed-off-by: Thomas Chou > --- > arch/sandbox/dts/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 de

Re: [U-Boot] [PATCH 5/7] powerpc: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Bin Meng
On Sun, Dec 27, 2015 at 9:44 PM, Thomas Chou wrote: > Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that > there is no need to list all the dtb for different targets/boards. > > Signed-off-by: Thomas Chou > Cc: Wolfgang Denk > --- > arch/powerpc/dts/Makefile | 2 +- > 1 file changed,

Re: [U-Boot] [PATCH 7/7] x86: use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE

2015-12-27 Thread Bin Meng
On Sun, Dec 27, 2015 at 9:44 PM, Thomas Chou wrote: > Use generic dtb rule with CONFIG_DEFAULT_DEVICE_TREE, so that > there is no need to list all the dtb for different targets/boards. > > Signed-off-by: Thomas Chou > Cc: Bin Meng > --- > arch/x86/dts/Makefile | 11 +-- > 1 file changed

Re: [U-Boot] [RESEND PATCH 2/5] clk: add needed include and declaration to include/clk.h

2015-12-27 Thread Simon Glass
On 22 December 2015 at 03:04, Masahiro Yamada wrote: > This header uses ulong, so it needs to include . > Likewise, "struct udevice" must be declared before it is used. > > Signed-off-by: Masahiro Yamada > --- > > include/clk.h | 4 > 1 file changed, 4 insertions(+) Acked-by: Simon Glass

Re: [U-Boot] [RESEND PATCH 1/5] clk: fix comments in include/clk.h

2015-12-27 Thread Simon Glass
On 22 December 2015 at 03:04, Masahiro Yamada wrote: > The comment about get_periph_rate() is the same as that of > set_periph_rate(). > > I am fixing typos here and there while I am in this file. > > Signed-off-by: Masahiro Yamada > --- > > include/clk.h | 20 ++-- > 1 file chan

Re: [U-Boot] [PATCH 1/1] common: cli: avoid memory leak

2015-12-27 Thread Simon Glass
Hi Peng, On 22 December 2015 at 02:14, Peng Fan wrote: > From: Peng Fan > > Whether CONFIG_SYS_HUSH_PARSER is defined or not, should always > check to free 'buff' to avoid memory leak. Are you sure? I believe need_buff is only true if the simple parser is being used. > > Signed-off-by: Peng Fa

Re: [U-Boot] [PATCH v2 2/2] m68k: add DM model serial driver

2015-12-27 Thread Simon Glass
On 20 December 2015 at 08:54, Angelo Dureghello wrote: > Boards can now use DM serial driver, or still legacy mcf uart > driver version. > > Signed-off-by: Angelo Dureghello > > --- > > Changes in v2: > - remove while loops in putc and getc, replacing with return -EAGAIN > - remove unneeded ifdef

Re: [U-Boot] [PATCH v2 1/2] m68k: add malloc memory for early malloc

2015-12-27 Thread Simon Glass
On 20 December 2015 at 08:54, Angelo Dureghello wrote: > To use serial uclass and DM, CONFIG_SYS_MALLOC_F must be used. > So CONFIG_SYS_GENERIC_GLOBAL_DATA has been undefined and > call to board_init_f_mem() is added for all cpu's. > > Signed-off-by: Angelo Dureghello > > --- > > Changes in v2: N

Re: [U-Boot] [PATCH 1/8] sf: Add spi_flash_ids local to core

2015-12-27 Thread Simon Glass
Hi Jagan, On 19 December 2015 at 07:13, Jagan Teki wrote: > This patch add's spi_flash_ids handling into core, instead > of maintaining it into separate file like sf_params.c > > Code taken from the Linux spi-nor core and added missing > part id's and also added extra flash_info member as e_rd_cm

Re: [U-Boot] [PATCH v2 3/3] arm: lpc32xx: switch SPL builds to driver model

2015-12-27 Thread Simon Glass
On 19 December 2015 at 14:29, Vladimir Zapolskiy wrote: > For NXP LPC32xx boards the change enables SPL_DM option, this allows > to use any driver model UART driver in SPL images, hence a restriction > on HSUART in SPL image is removed and well as definitions for non-DM > NS16550 driver, its DM ve

Re: [U-Boot] U-Boot Device Driver Development Guide

2015-12-27 Thread Simon Glass
Hi, On 20 December 2015 at 08:29, Jagan Teki wrote: > On 20 December 2015 at 19:38, wrote: >> >> Dear Sir, >> >> I am considering using U-Boot as a software platform to bring up a hardware >> platform that am developing. In doing so, I may need to develop a couple of >> Device Drivers. I wa

Re: [U-Boot] [RESEND PATCH 4/5] clk: add device tree support for clock framework

2015-12-27 Thread Simon Glass
Hi Masahiro, On 22 December 2015 at 03:04, Masahiro Yamada wrote: > Add device tree binding support for the clock uclass. This allows > clock consumers to get the peripheral ID based on the "clocks" > property in the device tree. > > Usage: > Assume the following device tree: > > clk: myclock

Re: [U-Boot] [PATCH V2 00/12] Series to move headers to a consistent include location

2015-12-27 Thread Simon Glass
Hi Nishanth, On 19 December 2015 at 17:25, Nishanth Menon wrote: > Hi Simon, > > On Sat, Dec 19, 2015 at 5:07 PM, Simon Glass wrote: > > [...] >> >> Are you going to do a new version of this series? It seems like a good >> idea to me and I'd like to see it applied. > > As per: > > https://patchw

Re: [U-Boot] [RFC PATCH 01/11] serial: Add support for Qualcomm serial port

2015-12-27 Thread Simon Glass
Hi Masahiro, On 22 December 2015 at 20:52, Masahiro Yamada wrote: > Hi Simon, > > > >>> BTW, the "Include file order" in >>> http://www.denx.de/wiki/U-Boot/CodingStyle >>> >>> Is this your opinion? Or community's opinion. >>> >>> Did anybody review it? >> >> This came from Mike Frysinger some yea

Re: [U-Boot] [PATCH 1/1] common: cli: avoid memory leak

2015-12-27 Thread Peng Fan
Hi Simon, On Sun, Dec 27, 2015 at 09:22:01PM -0700, Simon Glass wrote: >Hi Peng, > >On 22 December 2015 at 02:14, Peng Fan wrote: >> From: Peng Fan >> >> Whether CONFIG_SYS_HUSH_PARSER is defined or not, should always >> check to free 'buff' to avoid memory leak. > >Are you sure? I believe need_b

Re: [U-Boot] [PATCH 4/5] altera_qspi: show erase progress

2015-12-27 Thread Marek Vasut
On Monday, December 28, 2015 at 02:17:46 AM, Thomas Chou wrote: > Hi Marek, > > On 2015年12月25日 17:58, Marek Vasut wrote: > > On Friday, December 25, 2015 at 09:33:52 AM, Thomas Chou wrote: > >> Hi Marek, > >> > >> On 2015年12月25日 12:08, Marek Vasut wrote: > Well, it is only a putc() which is