Re: [PATCH v2] net: tftp: Add client support for RFC 7440

2020-05-17 Thread Beniamino Galvani
On Sat, May 16, 2020 at 10:49:50PM +0300, Ramon Fried wrote: > [...] > index be9e6391d6..b85b44201f 100644 > --- a/README > +++ b/README > @@ -3522,6 +3522,11 @@ List of environment variables (most likely not > complete): > downloads succeed with high packet loss rates, or with >

Re: [PATCH 2/2] odroid-c2: enable USB host controller

2020-05-10 Thread Beniamino Galvani
On Sun, Aug 18, 2019 at 03:42:55PM +0200, Beniamino Galvani wrote: > Enable the second USB controller, which is connected to a hub with 4 > ports. The first controller is for the OTG port and is currently not > supported. > > Signed-off-by: Beniamino Galvani > --- > ar

Re: [PATCH 0/2] u-boot support for ODROID-C4

2020-05-07 Thread Beniamino Galvani
On Wed, May 06, 2020 at 09:59:17AM +0200, Neil Armstrong wrote: > Hi Beniamino, > > On 05/05/2020 22:22, Beniamino Galvani wrote: > > Hi, > > > > these two patches add initial u-boot support for Hardkernel ODROID-C4. > > Thanks for the patchset, I already hav

[PATCH 2/2] boards: amlogic: add ODROID-C4 support

2020-05-05 Thread Beniamino Galvani
- HDMI 2.0 - eMMC - SDcard - 40-pin GPIO header - Infrared receiver Signed-off-by: Beniamino Galvani --- board/amlogic/odroid-c4/MAINTAINERS | 6 +++ board/amlogic/odroid-c4/Makefile| 3 ++ board/amlogic/odroid-c4/README | 83 + board/amlogic/odroid-c4

[PATCH 0/2] u-boot support for ODROID-C4

2020-05-05 Thread Beniamino Galvani
Hi, these two patches add initial u-boot support for Hardkernel ODROID-C4. https://wiki.odroid.com/odroid-c4/odroid-c4 Beniamino Galvani (2): arm: dts: import ODROID-C4 device tree boards: amlogic: add ODROID-C4 support arch/arm/dts/Makefile| 1 + arch/arm/dts/meson-sm1

[PATCH 1/2] arm: dts: import ODROID-C4 device tree

2020-05-05 Thread Beniamino Galvani
Import the device tree for ODROID-C4 as submitted in [1]. [1] https://lkml.org/lkml/2020/4/24/535 Signed-off-by: Beniamino Galvani --- arch/arm/dts/Makefile| 1 + arch/arm/dts/meson-sm1-odroid-c4.dts | 399 +++ 2 files changed, 400 insertions

Re: Enable USB host controller on Odroid-C2

2020-04-19 Thread Beniamino Galvani
On Fri, Mar 27, 2020 at 02:35:50PM +0100, Neil Armstrong wrote: > Hi, > > On 18/08/2019 15:42, Beniamino Galvani wrote: > > Hi, > > > > these two patches enable the USB host controller on Odroid-C2. The > > first patch adds a PHY driver; the second one enable

[U-Boot] [PATCH 2/2] odroid-c2: enable USB host controller

2019-08-18 Thread Beniamino Galvani
Enable the second USB controller, which is connected to a hub with 4 ports. The first controller is for the OTG port and is currently not supported. Signed-off-by: Beniamino Galvani --- arch/arm/dts/meson-gxbb-odroidc2-u-boot.dtsi | 8 configs/odroid-c2_defconfig | 7

[U-Boot] [PATCH 1/2] phy: meson: add GXBB PHY driver

2019-08-18 Thread Beniamino Galvani
This adds support for the USB PHY found on Amlogic GXBB SoCs. Signed-off-by: Beniamino Galvani --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile | 1 + drivers/phy/meson-gxbb-usb2.c | 235 ++ 3 files changed, 244 insertions(+) create

[U-Boot] Enable USB host controller on Odroid-C2

2019-08-18 Thread Beniamino Galvani
following series (still on review) is needed as runtime requirement for the second patch: [PATCH 0/5] usb: host: dwc2: use driver model for PHY and CLOCK Thanks, Beniamino Beniamino Galvani (2): phy: meson: add GXBB PHY driver odroid-c2: enable USB host controller arch/arm/dts/meson-gxbb-odroidc2

Re: [U-Boot] [PATCH v2 u-boot 1/2] power: domain: Add the VPU Power Domain driver

2018-08-16 Thread Beniamino Galvani
On Mon, Aug 06, 2018 at 02:49:19PM +0200, Neil Armstrong wrote: > The Amlogic Meson SoCs embeds a specific Power Domain dedicated to the > Video Processing Unit. > This patch implements support for this power domain in preparation of the > future support for the Video display support in U-Boot. >

[U-Boot] [PATCH u-boot 2/3] boards: amlogic: use common function for environment initialization

2018-08-14 Thread Beniamino Galvani
Clean up board files by moving the duplicate environment initialization to arch code. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/sm.h | 1 + arch/arm/mach-meson/sm.c | 27 +++ board/amlogic/khadas-vim/khadas-vim.c | 25

[U-Boot] [PATCH u-boot 1/3] boards: amlogic: remove ethernet gpio reset code from boards

2018-08-14 Thread Beniamino Galvani
The reset is already handled by the designware driver using information from device tree. Signed-off-by: Beniamino Galvani --- board/amlogic/nanopi-k2/nanopi-k2.c | 6 -- board/amlogic/odroid-c2/odroid-c2.c | 6 -- 2 files changed, 12 deletions(-) diff --git a/board/amlogic/nanopi-k2

[U-Boot] [PATCH u-boot 3/3] arm: meson: null-terminate the serial number

2018-08-14 Thread Beniamino Galvani
Terminate the serial number variable with null to avoid printing trailing garbage. Signed-off-by: Beniamino Galvani --- arch/arm/mach-meson/sm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index 2628591fe6

[U-Boot] [PATCH u-boot 0/3] amlogic: clean up board files

2018-08-14 Thread Beniamino Galvani
Hi, this series simplifies Amlogic board files by factorizing common code and removing unneeded parts. Also, it fixes printing the serial number read from efuse. Beniamino Galvani (3): boards: amlogic: remove ethernet gpio reset code from boards boards: amlogic: use common function for

Re: [U-Boot] [PATCH u-boot 2/2] ARM: meson: Add cpu info display for GX SoCs

2018-04-04 Thread Beniamino Galvani
set > # CONFIG_CMD_BDI is not set > # CONFIG_CMD_IMI is not set > diff --git a/configs/odroid-c2_defconfig b/configs/odroid-c2_defconfig > index 49461aa..657b647 100644 > --- a/configs/odroid-c2_defconfig > +++ b/configs/odroid-c2_defconfig > @@ -7,7 +7,7 @@ CONFIG_IDENT_STRING=" o

Re: [U-Boot] [PATCH u-boot 1/2] ARM: meson: rename GXBB to GX

2018-04-04 Thread Beniamino Galvani
On Wed, Mar 28, 2018 at 11:54:36AM +0200, Neil Armstrong wrote: > Taking into account the Amlogic Family name starts with GX, including > the GXBB, GXL and GXM SoCs. > > Signed-off-by: Neil Armstrong Hi, looks good to me, but perhaps can you align again register values and other macros in gx.h?

Re: [U-Boot] [PATCH 0/4] Meson clock driver

2018-03-28 Thread Beniamino Galvani
2018-03-28 10:59 GMT+02:00 Neil Armstrong : > Do you plan to re-send the driver soon ? Yes, I plan to submit it again in the next days. Beniamino ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 2/4] ARM: meson: add clock measurement function

2017-12-03 Thread Beniamino Galvani
Add add a function to measure the current clock rate. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/clock.h | 34 + arch/arm/mach-meson/Makefile| 2 +- arch/arm/mach-meson/clock.c | 45 + 3

[U-Boot] [PATCH 4/4] meson: use the clock driver

2017-12-03 Thread Beniamino Galvani
Use the clk framework to initialize clocks from drivers that need them instead of having hardcoded frequencies and initializations from board code. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/gxbb.h | 10 -- arch/arm/include/asm/arch-meson/i2c.h | 11

[U-Boot] [PATCH 3/4] clk: add Amlogic meson clock driver

2017-12-03 Thread Beniamino Galvani
Introduce a basic clock driver for Amlogic Meson SoCs which supports enabling/disabling clock gates and getting their frequency. Signed-off-by: Beniamino Galvani --- arch/arm/mach-meson/Kconfig | 2 + drivers/clk/Makefile| 1 + drivers/clk/clk_meson.c | 196

[U-Boot] [PATCH 1/4] ARM: dts: update gxbb-clkc.h from Linux 4.14

2017-12-03 Thread Beniamino Galvani
Update gxbb-clkc.h from Linux 4.14 as it contains new clock ids. Signed-off-by: Beniamino Galvani --- include/dt-bindings/clock/gxbb-clkc.h | 75 +++ 1 file changed, 75 insertions(+) diff --git a/include/dt-bindings/clock/gxbb-clkc.h b/include/dt-bindings/clock

[U-Boot] [PATCH 0/4] Meson clock driver

2017-12-03 Thread Beniamino Galvani
Hi, this is a basic clock driver for u-boot that supports enabling/disabling clock gates and getting their frequency. With this, some hardcoded initializations can be removed from the board code, and drivers can use the information from device tree to initialize clocks. Beniamino Galvani (4

Re: [U-Boot] [PATCH 1/2] i2c: add Amlogic Meson driver

2017-11-26 Thread Beniamino Galvani
On Mon, Nov 20, 2017 at 08:36:34AM -0700, Simon Glass wrote: > Hi Benjamin, > > On 29 October 2017 at 03:09, Beniamino Galvani wrote: > > > > Add a driver for the I2C controller available on Amlogic Meson SoCs. > > > > Signed-off-by: Beniamino Galvani >

[U-Boot] [PATCH 4/4] i2c: meson: add some comments

2017-11-26 Thread Beniamino Galvani
Add some comment describing the purpose of struct members and functions. Signed-off-by: Beniamino Galvani --- drivers/i2c/meson_i2c.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c index 2f39214ad2

[U-Boot] [PATCH 3/4] i2c: meson: fix return codes on error

2017-11-26 Thread Beniamino Galvani
Change meson_i2c_xfer_msg() to return -EREMOTEIO in case of NACK, as done by other drivers. Also, don't change the return error in meson_i2c_xfer(). Signed-off-by: Beniamino Galvani --- drivers/i2c/meson_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver

[U-Boot] [PATCH 1/4] i2c: meson: improve Kconfig description

2017-11-26 Thread Beniamino Galvani
Expand the Kconfig description with hardware features. Signed-off-by: Beniamino Galvani --- drivers/i2c/Kconfig | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 1989f8eb57..a7931aa6d4 100644 --- a/drivers/i2c/Kconfig +++ b

[U-Boot] [PATCH 2/4] i2c: meson: reduce timeout

2017-11-26 Thread Beniamino Galvani
The datasheet doesn't specify a suggested timeout and 500ms seems very long: reduce it to 100ms. Signed-off-by: Beniamino Galvani --- drivers/i2c/meson_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c index 2434d

[U-Boot] [PATCH 0/4] meson i2c driver cleanups

2017-11-26 Thread Beniamino Galvani
Some cleanups for the u-boot meson i2c driver. Beniamino Galvani (4): i2c: meson: improve Kconfig description i2c: meson: reduce timeout i2c: meson: fix return codes on error i2c: meson: add some comments drivers/i2c/Kconfig | 7 ++- drivers/i2c/meson_i2c.c | 31

Re: [U-Boot] [PATCH v2 1/5] ARM: arch-meson: add ethernet common init function

2017-11-26 Thread Beniamino Galvani
On Sat, Nov 25, 2017 at 10:45:30AM +0100, Neil Armstrong wrote: > > > >> + if (use_internal_phy) { > >> + /* Use Internal PHY */ > >> + out_le32(GXBB_ETH_REG_2, 0x10110181); > >> + out_le32(GXBB_ETH_REG_3, 0xe40908ff);

[U-Boot] [PATCH 1/2] i2c: add Amlogic Meson driver

2017-10-29 Thread Beniamino Galvani
Add a driver for the I2C controller available on Amlogic Meson SoCs. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/i2c.h | 11 ++ drivers/i2c/Kconfig | 6 + drivers/i2c/Makefile | 1 + drivers/i2c/meson_i2c.c | 263

[U-Boot] [PATCH 2/2] odroid-c2: enable I2C

2017-10-29 Thread Beniamino Galvani
Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/gxbb.h | 1 + board/amlogic/odroid-c2/odroid-c2.c| 1 + configs/odroid-c2_defconfig| 3 +++ 3 files changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-meson/gxbb.h b/arch/arm/include/asm/arch

[U-Boot] [PATCH 0/2] Amlogic I2C driver for u-boot

2017-10-29 Thread Beniamino Galvani
Hi, this series adds support for the Amlogic Meson I2C controller to u-boot. Beniamino Galvani (2): i2c: add Amlogic Meson driver odroid-c2: enable I2C arch/arm/include/asm/arch-meson/gxbb.h | 1 + arch/arm/include/asm/arch-meson/i2c.h | 11 ++ board/amlogic/odroid-c2/odroid-c2.c

Re: [U-Boot] [PATCH u-boot 3/3] arm: add initial support for Amlogic P212 based on Meson GXL family

2017-10-17 Thread Beniamino Galvani
ternal Ethernet PHY in Work In Progress. > > Signed-off-by: Neil Armstrong Reviewed-by: Beniamino Galvani ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH u-boot 2/3] pinctrl: meson: Add GXL Support

2017-10-17 Thread Beniamino Galvani
On Thu, Oct 12, 2017 at 03:50:31PM +0200, Neil Armstrong wrote: > Add the Amlogic Meson GXL pinctrl support based on the GXBB driver and > the synchronized DTS from Linux 4.13.5 > > Signed-off-by: Neil Armstrong Reviewed-by: Beniamino Galvani _

Re: [U-Boot] [PATCH u-boot 1/3] ARM: dts: Synchronize Amlogic from Linux Mainline 4.13.5

2017-10-17 Thread Beniamino Galvani
mstrong Reviewed-by: Beniamino Galvani ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot,v2,4/4] pinctrl: meson: convert to livetree

2017-07-25 Thread Beniamino Galvani
On Mon, Jul 24, 2017 at 08:45:10PM -0400, Tom Rini wrote: > On Mon, Jul 10, 2017 at 12:30:06AM +0200, Beniamino Galvani wrote: > > > Update the Meson pinctrl/gpio driver to support a live device tree. > > > > Signed-off-by: Beniamino Galvani > > This does not ap

[U-Boot] [PATCH v2 2/4] pinctrl: meson: add GPIO support

2017-07-09 Thread Beniamino Galvani
This commit adds GPIO support to the Amlogic Meson pin controller driver, based on code from Linux kernel. Reviewed-by: Simon Glass Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/gpio.h | 11 ++ drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 21 drivers/pinctrl

[U-Boot] [PATCH v2 4/4] pinctrl: meson: convert to livetree

2017-07-09 Thread Beniamino Galvani
Update the Meson pinctrl/gpio driver to support a live device tree. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/meson/pinctrl-meson.c | 66 +++ 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b

[U-Boot] [PATCH v2 3/4] odroid-c2: enable GPIO

2017-07-09 Thread Beniamino Galvani
GPIOs are now supported on Meson GXBB, enable driver and command in the config. Signed-off-by: Beniamino Galvani --- configs/odroid-c2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/odroid-c2_defconfig b/configs/odroid-c2_defconfig index 3531414..3ad2219 100644 --- a

[U-Boot] [PATCH v2 0/4] Add support for Meson GXBB GPIOs to U-Boot

2017-07-09 Thread Beniamino Galvani
Hi, this series adds to U-Boot a GPIO driver for Meson GXBB and enables it on Odroid-C2. Changes since v1: - updated dts files from Linux 4.12 - added missing asm/arch/gpio.h - added patch 4 to convert driver to livetree Beniamino Galvani (4): arm: dts: meson: import dts files from Linux

[U-Boot] [PATCH v2 1/4] arm: dts: meson: import dts files from Linux 4.12

2017-07-09 Thread Beniamino Galvani
Import Amlogic Meson DTS files from Linux kernel version 4.12 Signed-off-by: Beniamino Galvani --- arch/arm/dts/meson-gx.dtsi| 97 -- arch/arm/dts/meson-gxbb-odroidc2.dts | 82 ++- arch/arm/dts/meson-gxbb.dtsi | 187

Re: [U-Boot] [PATCH 0/3] GPIO support for Meson GXBB and Odroid-C2

2017-06-26 Thread Beniamino Galvani
On Mon, Jun 26, 2017 at 12:24:24PM +0200, Jerome Brunet wrote: > From the recipient list, I'm guessing this patch is addressed to the u-boot > community, right ? Correct. > Would you mind stating it a bit more clearly next time ? especially if you > include linux-amlogic list. Yeah, I'll do next

[U-Boot] [PATCH 2/3] pinctrl: meson: add GPIO support

2017-06-25 Thread Beniamino Galvani
This commit adds GPIO support to the Amlogic Meson pin controller driver, based on code from Linux kernel. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 21 drivers/pinctrl/meson/pinctrl-meson.c | 167 - drivers/pinctrl

[U-Boot] [PATCH 3/3] odroid-c2: enable GPIO

2017-06-25 Thread Beniamino Galvani
GPIOs are now supported on Meson GXBB, enable driver and command in the config. Signed-off-by: Beniamino Galvani --- configs/odroid-c2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/odroid-c2_defconfig b/configs/odroid-c2_defconfig index 547cd52..cf06715 100644 --- a

[U-Boot] [PATCH 1/3] arm: dts: meson: import dts files from Linux 4.12-rc6

2017-06-25 Thread Beniamino Galvani
Import Amlogic Meson DTS files from Linux kernel version 4.12-rc6. Signed-off-by: Beniamino Galvani --- arch/arm/dts/meson-gx.dtsi| 97 -- arch/arm/dts/meson-gxbb-odroidc2.dts | 82 ++- arch/arm/dts/meson-gxbb.dtsi | 187

[U-Boot] [PATCH 0/3] GPIO support for Meson GXBB and Odroid-C2

2017-06-25 Thread Beniamino Galvani
Hi, this series adds a GPIO driver for Meson GXBB and enables it on Odroid-C2. Beniamino Galvani (3): arm: dts: meson: import dts files from Linux 4.12-rc6 pinctrl: meson: add GPIO support odroid-c2: enable GPIO arch/arm/dts/meson-gx.dtsi | 97 +-- arch/arm

[U-Boot] [PATCH 2/4] arm: dts: update DTS files for meson-gxbb and odroid-c2

2016-08-16 Thread Beniamino Galvani
Import DTS files and dt-bindings includes from Linux 4.8-rc1. Signed-off-by: Beniamino Galvani --- arch/arm/dts/meson-gxbb-odroidc2.dts | 19 ++ arch/arm/dts/meson-gxbb.dtsi | 170 - include/dt-bindings/gpio/meson-gxbb-gpio.h | 154

[U-Boot] [PATCH 4/4] meson: odroid-c2: enable Ethernet support through the device tree

2016-08-16 Thread Beniamino Galvani
Remove the device definition from board file, update the driver with the new compatible property and update config with necessary options. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/gxbb.h | 3 --- board/amlogic/odroid-c2/odroid-c2.c| 13 - configs

[U-Boot] [PATCH 3/4] pinctrl: add driver for meson-gxbb pin controller

2016-08-16 Thread Beniamino Galvani
Add a pin controller driver for Meson GXBB adapted from Linux kernel. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/Kconfig| 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/meson/Kconfig | 11 + drivers/pinctrl/meson/Makefile

[U-Boot] [PATCH 1/4] pinctrl: generic: scan for "pins" and "groups" properties in sub-nodes

2016-08-16 Thread Beniamino Galvani
ate_subnode() returns an error for the top-level node and pinctrl_generic_set_state() fails. Instead, return success so that the child nodes are tried. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/pinctrl-generic.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff -

[U-Boot] [PATCH 0/4] Amlogic Meson pinctrl driver for u-boot

2016-08-16 Thread Beniamino Galvani
Hi, these patches add a pinctrl driver for Meson GXBB and enable Ethernet support through the device tree. Beniamino Galvani (4): pinctrl: generic: scan for "pins" and "groups" properties in sub-nodes arm: dts: update DTS files for meson-gxbb and odroid-c2 pinctrl:

Re: [U-Boot] [PATCH v7 0/4] Amlogic Meson GXBaby and ODROID-C2 support

2016-07-11 Thread Beniamino Galvani
On Mon, Jul 11, 2016 at 05:23:15AM +0100, Peter Robinson wrote: > On Mon, Jul 11, 2016 at 4:57 AM, Andreas Färber wrote: > > Last output: > > > > NOTICE: BL3-1: v1.0(debug):4d2e34d > > NOTICE: BL3-1: Built : 17:08:35, Oct 29 2015 > > INFO:BL3-1: Initializing runtime services > > INFO:BL

Re: [U-Boot] [PATCH v2 2/2] board: amlogic: Rename folder for Amlogic boards

2016-06-12 Thread Beniamino Galvani
On Fri, Jun 10, 2016 at 08:18:23PM +0200, Carlo Caione wrote: > From: Carlo Caione > > s/hardkernel/amlogic/ to have a single place for all the amlogic-based > boards. Makes sense. Acked-by: Beniamino Galvani ___ U-Boot mailing

Re: [U-Boot] [PATCH v2 1/2] configs: gxbb: Introduce a common config header file

2016-06-12 Thread Beniamino Galvani
On Fri, Jun 10, 2016 at 08:18:22PM +0200, Carlo Caione wrote: > From: Carlo Caione > > Introduce a meson-gxbb-common.h header file and derive the > configuration for Hardkernel Odroid-C2 board from that. Acked-by: Beniamino Galvani ___ U-

Re: [U-Boot] [PATCH v5 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-05-07 Thread Beniamino Galvani
On Sun, May 01, 2016 at 12:56:21PM -0600, Simon Glass wrote: > > +config ARCH_MESON > > + bool "Amlogic Meson" > > Please add a help message describing what this is and what features it has. Fixed in v7. > > + /* Reset PHY on GPIOZ_14 */ > > + clrbits_le32(GXBB_GPIO_EN(3), BIT(

[U-Boot] [PATCH v7 2/4] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-05-07 Thread Beniamino Galvani
All members of the DMA descriptor must be 32-bit, even on 64-bit architectures: change the type to u32 to ensure this. Also, fix other warnings. Signed-off-by: Beniamino Galvani Acked-by: Joe Hershberger --- drivers/net/designware.c | 59

[U-Boot] [PATCH v7 1/4] arm: implement generic PSCI reset call for armv8

2016-05-07 Thread Beniamino Galvani
Add a psci_system_reset() which calls the SYSTEM_RESET function of PSCI 0.2 and can be used by boards that support it to implement reset_cpu(). Signed-off-by: Beniamino Galvani --- arch/arm/cpu/armv8/fwcall.c | 16 arch/arm/include/asm/psci.h | 17 - arch

[U-Boot] [PATCH v7 4/4] arm: meson: implement calls to secure monitor

2016-05-07 Thread Beniamino Galvani
Implement calls to secure monitor to read the MAC address from e-fuse. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/sm.h | 12 +++ arch/arm/mach-meson/Makefile | 2 +- arch/arm/mach-meson/board.c| 1 + arch/arm/mach-meson/sm.c

[U-Boot] [PATCH v7 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-05-07 Thread Beniamino Galvani
/patch/603583/ Signed-off-by: Beniamino Galvani Reviewed-by: Simon Glass --- arch/arm/Kconfig | 9 ++ arch/arm/Makefile | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/meson-gxbb-odroidc2.dts | 69 + arch/arm/dts

[U-Boot] [PATCH v7 0/4] Amlogic Meson GXBaby and ODROID-C2 support

2016-05-07 Thread Beniamino Galvani
now marked as unavailable; this seems to be required to successfully boot Linux - fixed typo in config file [1] http://www.hardkernel.com/main/products/prdt_info.php?g_code=G145457216438 [2] https://github.com/hardkernel/u-boot/tree/odroidc2-v2015.01 Beniamino Galvani (4): arm: implement gene

[U-Boot] [PATCH v6 4/4] arm: meson: implement calls to secure monitor

2016-04-28 Thread Beniamino Galvani
Implement calls to secure monitor to read the MAC address from e-fuse. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/sm.h | 12 +++ arch/arm/mach-meson/Makefile | 2 +- arch/arm/mach-meson/board.c| 1 + arch/arm/mach-meson/sm.c

[U-Boot] [PATCH v6 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-28 Thread Beniamino Galvani
/patch/603583/ Signed-off-by: Beniamino Galvani --- arch/arm/Kconfig | 5 + arch/arm/Makefile | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/meson-gxbb-odroidc2.dts | 69 + arch/arm/dts/meson-gxbb.dtsi

[U-Boot] [PATCH v6 2/4] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-28 Thread Beniamino Galvani
All members of the DMA descriptor must be 32-bit, even on 64-bit architectures: change the type to u32 to ensure this. Also, fix other warnings. Signed-off-by: Beniamino Galvani Acked-by: Joe Hershberger --- drivers/net/designware.c | 59

[U-Boot] [PATCH v6 1/4] arm: implement generic PSCI reset call for armv8

2016-04-28 Thread Beniamino Galvani
Add a psci_system_reset() which calls the SYSTEM_RESET function of PSCI 0.2 and can be used by boards that support it to implement reset_cpu(). Signed-off-by: Beniamino Galvani --- arch/arm/cpu/armv8/fwcall.c | 16 arch/arm/include/asm/psci.h | 17 - arch

[U-Boot] [PATCH v6 0/4] Amlogic Meson GXBaby and ODROID-C2 support

2016-04-28 Thread Beniamino Galvani
be required to successfully boot Linux - fixed typo in config file [1] http://www.hardkernel.com/main/products/prdt_info.php?g_code=G145457216438 [2] https://github.com/hardkernel/u-boot/tree/odroidc2-v2015.01 Beniamino Galvani (4): arm: implement generic PSCI reset call for armv8 net: designw

Re: [U-Boot] [PATCH v5 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-27 Thread Beniamino Galvani
On Mon, Apr 25, 2016 at 04:53:09PM -0400, Tom Rini wrote: > > +#if !defined(CONFIG_IDENT_STRING) > > +# define CONFIG_IDENT_STRING " odroid-c2" > > +#endif > > Would this ever already be set? No, it shouldn't. > > +/* Serial setup */ > > +#define CONFIG_CONS_INDEX 0 > > +#

Re: [U-Boot] [PATCH v5 2/4] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-25 Thread Beniamino Galvani
On Mon, Apr 25, 2016 at 01:01:10PM -0500, Joe Hershberger wrote: > > - desc_p->dmamac_addr = &txbuffs[idx * CONFIG_ETH_BUFSIZE]; > > - desc_p->dmamac_next = &desc_table_p[idx + 1]; > > + desc_p->dmamac_addr = (ulong)&txbuffs[idx * > > CONFIG_ETH_BUFSIZE];

[U-Boot] [PATCH v5 3/4] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-23 Thread Beniamino Galvani
/patch/603583/ Signed-off-by: Beniamino Galvani --- arch/arm/Kconfig | 5 + arch/arm/Makefile | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/meson-gxbb-odroidc2.dts | 69 + arch/arm/dts/meson-gxbb.dtsi

[U-Boot] [PATCH v5 4/4] arm: meson: implement calls to secure monitor

2016-04-23 Thread Beniamino Galvani
Implement calls to secure monitor to read the MAC address from e-fuse. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/sm.h | 12 +++ arch/arm/mach-meson/Makefile | 2 +- arch/arm/mach-meson/board.c| 1 + arch/arm/mach-meson/sm.c

[U-Boot] [PATCH v5 2/4] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-23 Thread Beniamino Galvani
All members of the DMA descriptor must be 32-bit, even on 64-bit architectures: change the type to u32 to ensure this. Also, fix other warnings. Signed-off-by: Beniamino Galvani --- drivers/net/designware.c | 59 ++-- drivers/net/designware.h | 4

[U-Boot] [PATCH v5 1/4] arm: implement generic PSCI reset call for armv8

2016-04-23 Thread Beniamino Galvani
Add a psci_system_reset() which calls the SYSTEM_RESET function of PSCI 0.2 and can be used by boards that support it to implement reset_cpu(). Signed-off-by: Beniamino Galvani --- arch/arm/cpu/armv8/fwcall.c | 16 arch/arm/include/asm/psci.h | 17 - arch

[U-Boot] [PATCH v5 0/4] Amlogic Meson GXBaby and ODROID-C2 support

2016-04-23 Thread Beniamino Galvani
cts/prdt_info.php?g_code=G145457216438 [2] https://github.com/hardkernel/u-boot/tree/odroidc2-v2015.01 Beniamino Galvani (4): arm: implement generic PSCI reset call for armv8 net: designware: fix descriptor layout and warnings on 64-bit archs arm: add initial support for Amlogic Meson and ODROID-C2

Re: [U-Boot] [PATCH v4 1/3] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-18 Thread Beniamino Galvani
On Mon, Apr 18, 2016 at 01:55:55PM +0200, Andreas Färber wrote: > > + if ((unsigned long long)priv + sizeof(*priv) > (1ULL << 32)) { > > >=? I think ">" is correct, the (unfortunate) case priv + size == (1 << 32) is still acceptable because the last byte used by the structure would be (priv

Re: [U-Boot] [PATCH v4 3/3] arm: meson: implement calls to secure monitor

2016-04-18 Thread Beniamino Galvani
On Sun, Apr 17, 2016 at 12:00:59PM +0200, Marek Vasut wrote: > > +#define MIN(a, b) ((a) < (b) ? (a) : (b)) > > See include/linux/kernel.h for min macro Ah, I missed it, thanks! Beniamino ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.d

Re: [U-Boot] [PATCH v4 3/3] arm: meson: implement calls to secure monitor

2016-04-18 Thread Beniamino Galvani
On Sun, Apr 17, 2016 at 11:48:34AM +0200, Alexander Graf wrote: > Shouldn't reboot be available as psci call? We could then have a > generic reset function for systems with working psci in atf. Yes, the 0x8409 function ID used to reset the board seems to be actually a PSCI call, so probably a

Re: [U-Boot] [PATCH v4 1/3] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-18 Thread Beniamino Galvani
On Mon, Apr 18, 2016 at 01:06:37PM +0200, Alexander Graf wrote: > Hmm, this is going to get very interesting with efi_loader support. By > default we allocate memory at the highest possible free address, so payloads > will probably (unless they specify limits) have their buffers above 32bit on > th

Re: [U-Boot] [PATCH v4 1/3] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-18 Thread Beniamino Galvani
On Sun, Apr 17, 2016 at 10:59:11PM +0200, Marek Vasut wrote: > On 04/17/2016 01:14 PM, Beniamino Galvani wrote: > > On Sun, Apr 17, 2016 at 11:56:58AM +0200, Marek Vasut wrote: > >>> - desc_p->dmamac_addr = &txbuffs[idx * CONFIG_ETH_BUFSIZE]; > &g

Re: [U-Boot] [PATCH v4 1/3] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-17 Thread Beniamino Galvani
On Sun, Apr 17, 2016 at 11:56:58AM +0200, Marek Vasut wrote: > > - desc_p->dmamac_addr = &txbuffs[idx * CONFIG_ETH_BUFSIZE]; > > - desc_p->dmamac_next = &desc_table_p[idx + 1]; > > + desc_p->dmamac_addr = (ulong)&txbuffs[idx * CONFIG_ETH_BUFSIZE]; > > + desc_

[U-Boot] [PATCH v4 2/3] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-17 Thread Beniamino Galvani
/patch/603583/ Signed-off-by: Beniamino Galvani --- arch/arm/Kconfig | 5 + arch/arm/Makefile | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/meson-gxbb-odroidc2.dts | 69 + arch/arm/dts/meson-gxbb.dtsi

[U-Boot] [PATCH v4 3/3] arm: meson: implement calls to secure monitor

2016-04-17 Thread Beniamino Galvani
Implement calls to the secure monitor to reset the board and read the MAC address from e-fuse. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/sm.h | 13 +++ arch/arm/mach-meson/Makefile | 2 +- arch/arm/mach-meson/board.c| 3 +- arch/arm/mach

[U-Boot] [PATCH v4 1/3] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-17 Thread Beniamino Galvani
All members of the DMA descriptor must be 32-bit, even on 64-bit architectures: change the type to u32 to ensure this. Also, fix other warnings. Signed-off-by: Beniamino Galvani --- drivers/net/designware.c | 59 ++-- drivers/net/designware.h | 4

[U-Boot] [PATCH v4 0/3] Amlogic Meson GXBaby and ODROID-C2 support

2016-04-17 Thread Beniamino Galvani
net support - first 16MiB of RAM are now marked as unavailable; this seems to be required to successfully boot Linux - fixed typo in config file [1] http://www.hardkernel.com/main/products/prdt_info.php?g_code=G145457216438 [2] https://github.com/hardkernel/u-boot/tree/odroidc2-v2015.01 Beniam

Re: [U-Boot] [PATCH v3 2/2] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-13 Thread Beniamino Galvani
On Wed, Apr 13, 2016 at 12:26:43AM +0200, Marek Vasut wrote: > > So, after some investigation, the reason is that the code runs when > > caches are still disabled and thus all the memory is treated as > > Device-nGnRnE, requiring aligned accesses. > > You mean 8-byte aligned accesses, correct ? Y

Re: [U-Boot] [PATCH v3 2/2] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-12 Thread Beniamino Galvani
On Mon, Apr 11, 2016 at 11:08:02PM +0200, Marek Vasut wrote: > >>> + val = fdt_getprop(gd->fdt_blob, offset, "reg", &len); > >>> + if (len < sizeof(*val) * 4) > >>> + return -EINVAL; > >>> + > >>> + /* Don't use fdt64_t to avoid unaligned access */ > >> > >> This looks iffy, can you elabora

Re: [U-Boot] [PATCH v3 2/2] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-11 Thread Beniamino Galvani
On Mon, Apr 11, 2016 at 02:08:56AM +0200, Marek Vasut wrote: > > > +#define GXBB_GPIO_0_EN GXBB_PERIPHS_ADDR(0x0c) > > +#define GXBB_GPIO_0_OUTGXBB_PERIPHS_ADDR(0x0d) > > +#define GXBB_GPIO_0_IN GXBB_PERIPHS_ADDR(0x0e) > > You can also define this as > GXBB_GPIO

Re: [U-Boot] [PATCH v3 1/2] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-11 Thread Beniamino Galvani
On Mon, Apr 11, 2016 at 01:59:59AM +0200, Marek Vasut wrote: > > This looks more like silencing the warning by a forced cast. > The pointer should most likely be sanity-checked to make sure it's in > 4GiB address space at least. I am worried such forced casts will bite > us in the long run. Yes,

Re: [U-Boot] [PATCH v2 9/9] board: odroid-c2: add Ethernet support

2016-04-10 Thread Beniamino Galvani
On Sun, Apr 03, 2016 at 07:20:10PM -0500, Joe Hershberger wrote: > > +#ifdef CONFIG_MISC_INIT_R > > +int misc_init_r(void) > > +{ > > + /* Select Ethernet function */ > > + setbits_le32(GXBB_PINMUX_6, 0x3fff); > > + > > + /* Set RGMII mode */ > > + setbits_le32(GXBB_ETH_REG_

[U-Boot] [PATCH v3 2/2] arm: add initial support for Amlogic Meson and ODROID-C2

2016-04-10 Thread Beniamino Galvani
/patch/603583/ Signed-off-by: Beniamino Galvani --- arch/arm/Kconfig | 5 + arch/arm/Makefile | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/meson-gxbb-odroidc2.dts | 69 + arch/arm/dts/meson-gxbb.dtsi

[U-Boot] [PATCH v3 1/2] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-10 Thread Beniamino Galvani
All members of the DMA descriptor must be 32-bit, even on 64-bit architectures: change the type to u32 to ensure this. Also, fix other warnings. Signed-off-by: Beniamino Galvani Acked-by: Joe Hershberger Reviewed-by: Tom Rini --- drivers/net/designware.c | 54

[U-Boot] [PATCH v3 0/2] Amlogic Meson GXBaby and ODROID-C2 support

2016-04-10 Thread Beniamino Galvani
seems to be required to successfully boot Linux - fixed typo in config file [1] http://www.hardkernel.com/main/products/prdt_info.php?g_code=G145457216438 [2] https://github.com/hardkernel/u-boot/tree/odroidc2-v2015.01 Beniamino Galvani (2): net: designware: fix descriptor layout and

Re: [U-Boot] [PATCH v2 5/9] board: odroid-c2: enable serial

2016-04-03 Thread Beniamino Galvani
On Sun, Apr 03, 2016 at 12:09:44PM -0400, Tom Rini wrote: > But this too should be folded in with the initial support. In fact, I > would go so far as to say that in general, the initial platform patch > should be enough to boot the platform. So UART, DDR (and anything that > all requires), board

Re: [U-Boot] [PATCH v2 8/9] arm: dts: add ethernet node to Meson gxbb

2016-04-03 Thread Beniamino Galvani
On Sun, Apr 03, 2016 at 12:09:33PM -0400, Tom Rini wrote: > > Add a node for the Synopsys Designware Ethernet adapter available on > > Meson SoCs to the Meson GXBaby DTS files. The node is not present in > > DTS files used in Linux kernel. > > ... but why is this not yet in the kernel device tree?

[U-Boot] [PATCH v2 9/9] board: odroid-c2: add Ethernet support

2016-04-03 Thread Beniamino Galvani
Add initialization code for the Ethernet adapter on ODROID-C2 and enable the driver. Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/gxbb.h | 54 ++ board/hardkernel/odroid-c2/odroid-c2.c | 25 configs/odroid-c2_defconfig

[U-Boot] [PATCH v2 8/9] arm: dts: add ethernet node to Meson gxbb

2016-04-03 Thread Beniamino Galvani
Add a node for the Synopsys Designware Ethernet adapter available on Meson SoCs to the Meson GXBaby DTS files. The node is not present in DTS files used in Linux kernel. Signed-off-by: Beniamino Galvani --- arch/arm/dts/meson-gxbb-odroidc2.dts | 4 arch/arm/dts/meson-gxbb.dtsi | 9

[U-Boot] [PATCH v2 7/9] net: designware: add generic device tree compatible id

2016-04-03 Thread Beniamino Galvani
Add a generic 'snps,dwmac' compatible id to the Synopsys Designware MAC driver. Signed-off-by: Beniamino Galvani --- drivers/net/designware.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 78d6901..f6d8670 100644 --- a/d

[U-Boot] [PATCH v2 4/9] arm: meson: use device tree

2016-04-03 Thread Beniamino Galvani
Convert the board and config files to the use of device tree. Signed-off-by: Beniamino Galvani --- arch/arm/mach-meson/board.c | 25 + configs/odroid-c2_defconfig | 2 ++ 2 files changed, 27 insertions(+) diff --git a/arch/arm/mach-meson/board.c b/arch/arm/mach-meson

[U-Boot] [PATCH v2 6/9] net: designware: fix descriptor layout and warnings on 64-bit archs

2016-04-03 Thread Beniamino Galvani
All members of the DMA descriptor must be 32-bit, even on 64-bit architectures: change the type to u32 to ensure this. Also, fix other warnings. Signed-off-by: Beniamino Galvani --- drivers/net/designware.c | 54 drivers/net/designware.h | 4

[U-Boot] [PATCH v2 5/9] board: odroid-c2: enable serial

2016-04-03 Thread Beniamino Galvani
Enable serial support in the ODROID-C2 configuration. Signed-off-by: Beniamino Galvani --- configs/odroid-c2_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/odroid-c2_defconfig b/configs/odroid-c2_defconfig index 765076a..069f02d 100644 --- a/configs/odroid

[U-Boot] [PATCH v2 3/9] serial: add support for Amlogic Meson UART

2016-04-03 Thread Beniamino Galvani
Implement a driver for the UART adapter available in Meson SoCs. Signed-off-by: Beniamino Galvani --- drivers/serial/Kconfig| 14 drivers/serial/Makefile | 1 + drivers/serial/serial_meson.c | 162 ++ 3 files changed, 177 insertions

  1   2   >