From: Sascha Hauer <s.hauer@pengutronix.de>
To: Lucas Stach <dev@lynxeye.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/2] arm: imx6: add Gateworks Ventana board
Date: Tue, 16 Sep 2014 08:16:06 +0200 [thread overview]
Message-ID: <20140916061606.GF4992@pengutronix.de> (raw)
In-Reply-To: <1410811390-7009-2-git-send-email-dev@lynxeye.de>
On Mon, Sep 15, 2014 at 10:03:10PM +0200, Lucas Stach wrote:
> For now only the Quad 1GB variant is supported.
>
> Tested:
> - starting barebox over USB
> - writing barebox to NAND with barebox_update
> - starting Linux kernel over TFTP
>
> Signed-off-by: Lucas Stach <dev@lynxeye.de>
> ---
> arch/arm/boards/Makefile | 1 +
> arch/arm/boards/gateworks-ventana/Makefile | 2 +
> arch/arm/boards/gateworks-ventana/board.c | 92 ++++++++++++++++++++++
> arch/arm/boards/gateworks-ventana/clocks.imxcfg | 8 ++
> .../flash-header-ventana-quad-1gx64.imxcfg | 11 +++
> arch/arm/boards/gateworks-ventana/gsc.c | 66 ++++++++++++++++
> arch/arm/boards/gateworks-ventana/gsc.h | 58 ++++++++++++++
> arch/arm/boards/gateworks-ventana/lowlevel.c | 18 +++++
> .../boards/gateworks-ventana/quad_128x64.imxcfg | 41 ++++++++++
> arch/arm/boards/gateworks-ventana/ram-base.imxcfg | 56 +++++++++++++
> arch/arm/configs/imx_v7_defconfig | 3 +-
> arch/arm/dts/Makefile | 1 +
> arch/arm/dts/imx6q-gw54xx.dts | 23 ++++++
> arch/arm/dts/imx6qdl-gw54xx.dtsi | 38 +++++++++
> arch/arm/mach-imx/Kconfig | 3 +
> images/Makefile.imx | 5 ++
> 16 files changed, 425 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm/boards/gateworks-ventana/Makefile
> create mode 100644 arch/arm/boards/gateworks-ventana/board.c
> create mode 100644 arch/arm/boards/gateworks-ventana/clocks.imxcfg
> create mode 100644 arch/arm/boards/gateworks-ventana/flash-header-ventana-quad-1gx64.imxcfg
> create mode 100644 arch/arm/boards/gateworks-ventana/gsc.c
> create mode 100644 arch/arm/boards/gateworks-ventana/gsc.h
> create mode 100644 arch/arm/boards/gateworks-ventana/lowlevel.c
> create mode 100644 arch/arm/boards/gateworks-ventana/quad_128x64.imxcfg
> create mode 100644 arch/arm/boards/gateworks-ventana/ram-base.imxcfg
> create mode 100644 arch/arm/dts/imx6q-gw54xx.dts
> create mode 100644 arch/arm/dts/imx6qdl-gw54xx.dtsi
>
> diff --git a/arch/arm/boards/Makefile b/arch/arm/boards/Makefile
> index 122f5cd..a703f1d 100644
> --- a/arch/arm/boards/Makefile
> +++ b/arch/arm/boards/Makefile
> @@ -48,6 +48,7 @@ obj-$(CONFIG_MACH_GLOBALSCALE_MIRABOX) += globalscale-mirabox/
> obj-$(CONFIG_MACH_GUF_CUPID) += guf-cupid/
> obj-$(CONFIG_MACH_GUF_SANTARO) += guf-santaro/
> obj-$(CONFIG_MACH_GUF_VINCELL) += guf-vincell/
> +obj-$(CONFIG_MACH_GW_VENTANA) += gateworks-ventana/
> obj-$(CONFIG_MACH_HIGHBANK) += highbank/
> obj-$(CONFIG_MACH_IMX21ADS) += freescale-mx21-ads/
> obj-$(CONFIG_MACH_IMX233_OLINUXINO) += imx233-olinuxino/
> diff --git a/arch/arm/boards/gateworks-ventana/Makefile b/arch/arm/boards/gateworks-ventana/Makefile
> new file mode 100644
> index 0000000..7d195ee
> --- /dev/null
> +++ b/arch/arm/boards/gateworks-ventana/Makefile
> @@ -0,0 +1,2 @@
> +obj-y += board.o gsc.o
> +lwl-y += lowlevel.o
> diff --git a/arch/arm/boards/gateworks-ventana/board.c b/arch/arm/boards/gateworks-ventana/board.c
> new file mode 100644
> index 0000000..6e9ca17
> --- /dev/null
> +++ b/arch/arm/boards/gateworks-ventana/board.c
> @@ -0,0 +1,92 @@
> +/*
> + * Copyright (C) 2014 Lucas Stach, Pengutronix
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> + * GNU General Public License for more details.
> + */
> +
> +#include <common.h>
> +#include <environment.h>
> +#include <i2c/i2c.h>
> +#include <init.h>
> +#include <linux/marvell_phy.h>
> +#include <linux/phy.h>
> +#include <mach/bbu.h>
> +#include <mach/imx6.h>
> +#include <net.h>
> +
> +#include "gsc.h"
> +
> +static int gw54xx_devices_init(void)
> +{
> + struct i2c_client client;
> + struct device_node *dnode;
> + u8 reg;
> + u8 mac[6];
> +
> + if (!of_machine_is_compatible("gw,imx6q-gw54xx"))
> + return 0;
> +
> + client.adapter = i2c_get_adapter(0);
You should check the return value here.
You have some trailing whitespaces in the patch.
Otherwise looks fine.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2014-09-16 6:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-15 20:03 [PATCH 1/2] phy: marvell: move IDs to own header Lucas Stach
2014-09-15 20:03 ` [PATCH 2/2] arm: imx6: add Gateworks Ventana board Lucas Stach
2014-09-16 6:16 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140916061606.GF4992@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=dev@lynxeye.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox