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
>
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
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
- 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
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
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
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
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
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
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
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.
>
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
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
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
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
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
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?
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
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
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
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
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
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
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
>
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
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
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
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
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
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);
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
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
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
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
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
_
mstrong
Reviewed-by: Beniamino Galvani
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 -
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:
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
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
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-
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(
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
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
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
/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
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
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
/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
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
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
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
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
> > +#
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];
/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
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
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
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
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
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
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
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
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
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
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_
/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
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
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
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
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
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
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
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,
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_
/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
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
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
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
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?
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
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
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
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
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
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
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 - 100 of 112 matches
Mail list logo