Re: [U-Boot] [PATCH 0/2] Add support for Amlogic Meson MMC controller

2016-05-21 Thread Robert Gadsdon
On 05/20/2016 12:34 PM, Carlo Caione wrote: > On 20/05/16 11:58, Robert Gadsdon wrote: >> On 05/20/2016 01:07 AM, Carlo Caione wrote: >>> On 20/05/16 08:27, Carlo Caione wrote: On 19/05/16 21:51, Robert Gadsdon wrote: > Applied this on my Odroid C2, and it worked OK when installed on the >

[U-Boot] [PATCH] image.h: Tighten up content using handy CONFIG_IS_ENABLED() macro.

2016-05-21 Thread Robert P. J. Day
Signed-off-by: Robert P. J. Day --- figured that if there's a handy macro for this, might as well use it to make the header file easier to read. compile-tested building for sandbox on x86_64. did i do anything obviously silly? diff --git a/include/image.h b/include/image.h index f9ee564..9e

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-21 Thread Marek Vasut
On 05/21/2016 05:25 AM, Wills Wang wrote: > > > On 05/21/2016 01:08 AM, Marek Vasut wrote: >> On 05/20/2016 06:43 PM, Wills Wang wrote: >>> >>> On 05/20/2016 07:59 PM, Marek Vasut wrote: On 05/20/2016 06:18 AM, Wills Wang wrote: > On 05/08/2016 11:22 PM, Marek Vasut wrote: >> On 05/0

[U-Boot] for MPC8260, should fdt_fixup_ethernet() be called twice?

2016-05-21 Thread Robert P. J. Day
yes, i realize not too many people care about MPC8260 but it's one of my target systems, and this might apply to MPC83xx as well, i'll check shortly. was just perusing our current setup for U-Boot on an MPC8260 board (which works), we have this fairly innocuous board setup routine which looks

[U-Boot] [PATCH] dm: add manual relocation for devices

2016-05-21 Thread Angelo Dureghello
Some architectures as m68k still need to use CONFIG_NEEDS_MANUAL_RELOC, and are not still using the device tree. Signed-off-by: Angelo Dureghello --- drivers/core/root.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/core/root.c b/drivers/core/root.c index 13c2713..

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-21 Thread Wills Wang
On 05/21/2016 01:08 AM, Marek Vasut wrote: On 05/20/2016 06:43 PM, Wills Wang wrote: On 05/20/2016 07:59 PM, Marek Vasut wrote: On 05/20/2016 06:18 AM, Wills Wang wrote: On 05/08/2016 11:22 PM, Marek Vasut wrote: On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote: Hi! Am 05.05.2016 um 21:

Re: [U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

2016-05-21 Thread Marek Vasut
On 05/21/2016 01:03 PM, Wills Wang wrote: > > > On 05/21/2016 01:08 AM, Marek Vasut wrote: >> On 05/20/2016 06:43 PM, Wills Wang wrote: >>> >>> On 05/20/2016 07:59 PM, Marek Vasut wrote: On 05/20/2016 06:18 AM, Wills Wang wrote: > On 05/08/2016 11:22 PM, Marek Vasut wrote: >> On 05/0

[U-Boot] [PATCH 2/2] mips: ath79: ar933x: Fix probe error for kernel driver ag71xx

2016-05-21 Thread Wills Wang
We need reset the Ethernet Switch analog part before operation, or the build-in Ethernet PHY don't work, openwrt kernel driver ag71xx occur the following error: [1.854519] libphy: ag71xx_mdio: probed [2.646539] ag71xx-mdio.1: unknown phy id ':' [3.235778] ag71xx ag71xx.0: no PH

[U-Boot] [PATCH 1/2] mips: ath79: ar933x: Avoid warning with gcc5

2016-05-21 Thread Wills Wang
gcc 5.3 report a warning: 'upper' and 'lower' may be used uninitialized in this function [-Wmaybe-uninitialized]. compiler might need explicit initializer. Signed-off-by: Wills Wang --- arch/mips/mach-ath79/ar933x/ddr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/mach-ath79/

Re: [U-Boot] [PATCH 2/2] mips: ath79: ar933x: Fix probe error for kernel driver ag71xx

2016-05-21 Thread Marek Vasut
On 05/21/2016 01:58 PM, Wills Wang wrote: > We need reset the Ethernet Switch analog part before operation, > or the build-in Ethernet PHY don't work, openwrt kernel driver > ag71xx occur the following error: > > [1.854519] libphy: ag71xx_mdio: probed > [2.646539] ag71xx-mdio.1: unknown ph

Re: [U-Boot] [PATCH V2 8/9] mips: ath79: Add AR934x support

2016-05-21 Thread Wills Wang
On 05/07/2016 02:10 AM, Marek Vasut wrote: [...] + +static void ar934x_srif_pll_cfg(void __iomem *pll_reg_base, const u32 srif_val) +{ + u32 reg; + do { + writel(0x10810f00, pll_reg_base + 0x4); + writel(srif_val, pll_reg_base + 0x0); + writ

Re: [U-Boot] [PATCH 9/9] mips: ath79: Add support for TPLink WDR4300

2016-05-21 Thread Wills Wang
On 05/07/2016 02:10 AM, Marek Vasut wrote: [...] diff --git a/board/tplink/wdr4300/wdr4300.c b/board/tplink/wdr4300/wdr4300.c new file mode 100644 index 000..6e070fd --- /dev/null +++ b/board/tplink/wdr4300/wdr4300.c @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2016 Marek Vasut + * + * SPDX-Lice

Re: [U-Boot] [PATCH 2/2] mips: ath79: ar933x: Fix probe error for kernel driver ag71xx

2016-05-21 Thread Daniel Schwierzeck
2016-05-21 13:58 GMT+02:00 Wills Wang : > We need reset the Ethernet Switch analog part before operation, > or the build-in Ethernet PHY don't work, openwrt kernel driver > ag71xx occur the following error: > > [1.854519] libphy: ag71xx_mdio: probed > [2.646539] ag71xx-mdio.1: unknown phy i

Re: [U-Boot] [PATCH 9/9] mips: ath79: Add support for TPLink WDR4300

2016-05-21 Thread Marek Vasut
On 05/21/2016 06:29 PM, Wills Wang wrote: > > > On 05/07/2016 02:10 AM, Marek Vasut wrote: > [...] >> diff --git a/board/tplink/wdr4300/wdr4300.c >> b/board/tplink/wdr4300/wdr4300.c >> new file mode 100644 >> index 000..6e070fd >> --- /dev/null >> +++ b/board/tplink/wdr4300/wdr4300.c >> @@ -0

Re: [U-Boot] [PATCH V2 8/9] mips: ath79: Add AR934x support

2016-05-21 Thread Marek Vasut
On 05/21/2016 06:22 PM, Wills Wang wrote: > > > On 05/07/2016 02:10 AM, Marek Vasut wrote: > [...] >> + >> +static void ar934x_srif_pll_cfg(void __iomem *pll_reg_base, const u32 >> srif_val) >> +{ >> +u32 reg; >> +do { >> +writel(0x10810f00, pll_reg_base + 0x4); >> +writel

Re: [U-Boot] [PATCH v2 3/5] dm: ns16550: Don't map_physmem for I/O ports

2016-05-21 Thread Daniel Schwierzeck
Hi Paul, Am 18.05.2016 um 16:52 schrieb Simon Glass: >>> >>> Are you sure systems rely on using I/O ports with map_physmem? The only >>> other systems that define CONFIG_SYS_NS16550_PORT_MAPPED are x86 ones, >>> in include/configs/x86-common.h, and so far as I can tell they don't u

[U-Boot] [PATCH] m68k: code reformatting for all start.S files

2016-05-21 Thread Angelo Dureghello
This patch is style-related only, to reformat all the start.S code, actually not following a coherent style inside single files and between different cpu start.S files. Linux format has been respected, as - max line width at 80 columns - one 8 cols tab between asm instructions and operands -

Re: [U-Boot] [PATCH V2 8/9] mips: ath79: Add AR934x support

2016-05-21 Thread Wills Wang
On 05/22/2016 12:49 AM, Marek Vasut wrote: On 05/21/2016 06:22 PM, Wills Wang wrote: On 05/07/2016 02:10 AM, Marek Vasut wrote: [...] + +static void ar934x_srif_pll_cfg(void __iomem *pll_reg_base, const u32 srif_val) +{ +u32 reg; +do { +writel(0x10810f00, pll_reg_base + 0x4);

Re: [U-Boot] [PATCH 9/9] mips: ath79: Add support for TPLink WDR4300

2016-05-21 Thread Wills Wang
On 05/22/2016 12:47 AM, Marek Vasut wrote: On 05/21/2016 06:29 PM, Wills Wang wrote: On 05/07/2016 02:10 AM, Marek Vasut wrote: [...] diff --git a/board/tplink/wdr4300/wdr4300.c b/board/tplink/wdr4300/wdr4300.c new file mode 100644 index 000..6e070fd --- /dev/null +++ b/board/tplink/wdr4

Re: [U-Boot] [PATCH 9/9] mips: ath79: Add support for TPLink WDR4300

2016-05-21 Thread Marek Vasut
On 05/22/2016 03:49 AM, Wills Wang wrote: > > > On 05/22/2016 12:47 AM, Marek Vasut wrote: >> On 05/21/2016 06:29 PM, Wills Wang wrote: >>> >>> On 05/07/2016 02:10 AM, Marek Vasut wrote: >>> [...] diff --git a/board/tplink/wdr4300/wdr4300.c b/board/tplink/wdr4300/wdr4300.c new file

Re: [U-Boot] [PATCH 2/2] mips: ath79: ar933x: Fix probe error for kernel driver ag71xx

2016-05-21 Thread Wills Wang
On 05/22/2016 12:43 AM, Daniel Schwierzeck wrote: 2016-05-21 13:58 GMT+02:00 Wills Wang : We need reset the Ethernet Switch analog part before operation, or the build-in Ethernet PHY don't work, openwrt kernel driver ag71xx occur the following error: [1.854519] libphy: ag71xx_mdio: probed

Re: [U-Boot] [PATCH V2 8/9] mips: ath79: Add AR934x support

2016-05-21 Thread Marek Vasut
On 05/22/2016 03:44 AM, Wills Wang wrote: > > > On 05/22/2016 12:49 AM, Marek Vasut wrote: >> On 05/21/2016 06:22 PM, Wills Wang wrote: >>> >>> On 05/07/2016 02:10 AM, Marek Vasut wrote: >>> [...] + +static void ar934x_srif_pll_cfg(void __iomem *pll_reg_base, const u32 srif_val) >>

[U-Boot] [PATCH V2 2/7] mips: ath79: ar933x: Fix ethernet PHY mismatch

2016-05-21 Thread Wills Wang
We need reset the Ethernet Switch analog part before operation, or the build-in Ethernet PHY don't work. Signed-off-by: Wills Wang --- arch/mips/mach-ath79/include/mach/ar71xx_regs.h | 1 + arch/mips/mach-ath79/reset.c| 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)

[U-Boot] [PATCH V2 1/7] mips: ath79: ar933x: Avoid warning with gcc5

2016-05-21 Thread Wills Wang
GCC 5.3 report a warning: 'upper' and 'lower' may be used uninitialized in this function [-Wmaybe-uninitialized]. Compiler might need explicit initializer. Signed-off-by: Wills Wang --- arch/mips/mach-ath79/ar933x/ddr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/mach-ath79/

[U-Boot] [PATCH 3/7] mips: ath79: Use uniform header for reset

2016-05-21 Thread Wills Wang
Collect all reset operation on platform and move them into a uniform header Signed-off-by: Wills Wang --- arch/mips/mach-ath79/include/mach/ath79.h | 3 --- arch/mips/mach-ath79/include/mach/reset.h | 2 ++ board/tplink/wdr4300/wdr4300.c| 1 + 3 files changed, 3 insertions(+), 3 del

[U-Boot] [PATCH 4/7] mips: ath79: Rename get_bootstrap into ath79_get_bootstrap

2016-05-21 Thread Wills Wang
Add a platform prefix for function name in order to make more readable Signed-off-by: Wills Wang --- arch/mips/mach-ath79/ar933x/clk.c | 2 +- arch/mips/mach-ath79/ar933x/ddr.c | 2 +- arch/mips/mach-ath79/ar934x/clk.c | 4 ++-- arch/mips/mach-ath79/ar934x/ddr.c

[U-Boot] [PATCH 6/7] mips: ath79: Unify PLL initialization entry

2016-05-21 Thread Wills Wang
Use function "pll_init" for ath79 platform PLL initialization, and put it into mach/clk.h Signed-off-by: Wills Wang --- arch/mips/mach-ath79/ar934x/clk.c | 2 +- arch/mips/mach-ath79/include/mach/ath79.h | 2 -- arch/mips/mach-ath79/include/mach/clk.h | 12 board/tplink

[U-Boot] [PATCH 5/7] mips: ath79: Unify DDR initialization entry for ar934x

2016-05-21 Thread Wills Wang
Use function "ddr_init" for ath79 platform DDR initialization, and put it into mach/ddr.h Signed-off-by: Wills Wang --- arch/mips/mach-ath79/ar933x/ddr.c | 2 +- arch/mips/mach-ath79/ar934x/ddr.c | 2 +- arch/mips/mach-ath79/include/mach/ath79.h | 1 - arch/mips/mach-ath79/inclu

[U-Boot] [PATCH 7/7] mips: ath79: ap121: Enable ethernet

2016-05-21 Thread Wills Wang
This patch enable network function for ap121 board, it's based on the coming ethernet driver ag7xxx. Signed-off-by: Wills Wang --- arch/mips/dts/ap121.dts | 5 + arch/mips/dts/ar933x.dtsi | 4 ++-- board/qca/ap121/ap121.c | 2 ++ configs/ap121_defconfig | 9 +++-- 4 files changed,

Re: [U-Boot] [PATCH 0/9] sh: Convert generic board

2016-05-21 Thread Yoshinori Sato
On Sat, 21 May 2016 10:28:42 +0900, Tom Rini wrote: > > [1 ] > On Thu, May 19, 2016 at 09:26:46PM +0900, Yoshinori Sato wrote: > > > Hello. > > This patch series convert generic board for SH. > > Tested on r2dplus target. > > Since I believe you said before this was QEMU, how did you start it o

Re: [U-Boot] [U-BOOT] [PATCH] net: Add EMAC driver for H3/A83T/A64

2016-05-21 Thread Amit Tomer
Hello, Thanks for your comments, Sorry for the delayed response. > 1 is too high Ok, I will fix it but as per data sheet its 64k region(0x1). > Space after dot. Try also to keep a minimum of alphabetical order of config. Ok, I will fix it. > Sort also headers Sorry, didn't get your p

[U-Boot] [PATCH] tools/genboardscfg.py: remove bogus import subprocess

2016-05-21 Thread Masahiro Yamada
Since f6c8f38ec601 ("tools/genboardscfg.py: improve performance more with Kconfiglib"), this tool does not use the subprocess module. Signed-off-by: Masahiro Yamada --- tools/genboardscfg.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/genboardscfg.py b/tools/genboardscfg.py index 2