From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: lacie_kw: add support for WIRELESS_SPACE
Date: Fri, 17 Aug 2012 19:37:18 +0200 [thread overview]
Message-ID: <20120817193718.7af8904e@lilith> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D1A586C1C43@SC-VEXCH4.marvell.com>
Hi Prafulla,
On Fri, 17 Aug 2012 00:59:24 -0700, Prafulla Wadaskar
<prafulla@marvell.com> wrote:
>
>
> > -----Original Message-----
> > From: u-boot-bounces at lists.denx.de [mailto:u-boot-
> > bounces at lists.denx.de] On Behalf Of Albert ARIBAUD
> > Sent: 16 August 2012 23:39
> > To: u-boot at lists.denx.de
> > Subject: [U-Boot] [PATCH] ARM: lacie_kw: add support for
> > WIRELESS_SPACE
> >
> >
> > Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
> > ---
> >
> > This patch adds the Wireless Space to the lacie_kw sub-targets.
> > It *should* not change a thing to the already existing sub-targets
> > (except that each one gets its own prompt).
> >
> > Owners of NETSPACE_[MAX]_V2, INETSPACE_V2, NET2BIG_V2 please test.
> >
> > board/LaCie/netspace_v2/netspace_v2.c | 42 ++----------
> > board/LaCie/netspace_v2/netspace_v2.h | 121
> > +++++++++++++++++++++++++++++++++
> > boards.cfg | 1 +
> > drivers/net/mvgbe.c | 10 ++-
>
> It would be good if you split the patch, to me the change to above
> file is generic, which is your dependency.
You're correct. I'll post V2 as a two-patch series.
> > include/configs/lacie_kw.h | 38 ++++++++++-
> > 5 files changed, 175 insertions(+), 37 deletions(-)
> >
> ...snip...
> > diff --git a/include/configs/lacie_kw.h b/include/configs/lacie_kw.h
> > index c35c2db..a979ab4 100644
> > --- a/include/configs/lacie_kw.h
> > +++ b/include/configs/lacie_kw.h
> > @@ -33,6 +33,10 @@
> > #elif defined(CONFIG_NET2BIG_V2)
> > #define CONFIG_MACH_TYPE MACH_TYPE_NET2BIG_V2
> > #define CONFIG_IDENT_STRING " 2Big v2"
> > +#elif defined(CONFIG_WIRELESS_SPACE)
> > +#define MACH_TYPE_WIRELESS_SPACE 2500 /* is missing in
> > mach-types.h */
> > +#define CONFIG_MACH_TYPE MACH_TYPE_WIRELESS_SPACE
> > +#define CONFIG_IDENT_STRING " Wireless Space"
> > #else
> > #error "Unknown board"
> > #endif
> > @@ -73,6 +77,12 @@
> > #define CONFIG_SYS_KWD_CONFIG
> > $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage- is2.cfg
> > #endif
> >
> > +#ifdef CONFIG_WIRELESS_SPACE
> > +/* No SPI but NAND */
> > +#undef CONFIG_CMD_SF
> > +#define CONFIG_CMD_NAND
> > +#endif
> > +
> > /*
> > * mv-common.h should be defined after CMD configs since it used
> > them
> > * to enable certain macros
> > @@ -90,8 +100,14 @@
> > #define CONFIG_SYS_IDE_MAXDEVICE 1
> > #if defined(CONFIG_NET2BIG_V2)
> > #define CONFIG_SYS_PROMPT "2big2> "
> > -#else
> > +#elif defined(CONFIG_NETSPACE_V2)
> > #define CONFIG_SYS_PROMPT "ns2> "
> > +#elif defined(CONFIG_INETSPACE_V2)
> > +#define CONFIG_SYS_PROMPT "is2> "
> > +#elif defined(CONFIG_WIRELESS_SPACE)
> > +#define CONFIG_SYS_PROMPT "ws> "
> > +#else
> > +#define CONFIG_SYS_PROMPT "lacie-kw> "
> > #endif
> >
> > /*
> > @@ -99,7 +115,16 @@
> > */
> > #ifdef CONFIG_CMD_NET
> > #define CONFIG_MISC_INIT_R /* Call misc_init_r() to initialize MAC
> > address */
> > +#if defined(CONFIG_WIRELESS_SPACE)
> > +#define CONFIG_MVGBE_PORTS {1, 1} /* enable
> > both ports only */ +#define CONFIG_EGIGA1_PHY
> > 0x6 /* egiga1 has a PHY, egiga0 has NOT */
> > +#define CONFIG_MVGBE_PHY_ADRS {0xa, 0x6}
> > +#define CONFIG_MII
> > +#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
> > +#else
> > #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0
> > only */ +#define CONFIG_EGIGA0_PHY 0x8
> > +#endif
> > #define CONFIG_NETCONSOLE
> > #endif
> >
> > @@ -154,11 +179,20 @@
> > /*
> > * Environment variables configurations
> > */
> > +
> > +#if defined(CONFIG_WIRELESS_SPACE)
> > +#define CONFIG_ENV_IS_IN_NAND
> > +#define CONFIG_ENV_SECT_SIZE 0x10000 /* 64KB
> > */ +#define CONFIG_ENV_SIZE 0x1000 /*
> > 4KB */ +#define CONFIG_ENV_ADDR 0x70000
> > +#define CONFIG_ENV_OFFSET 0x70000 /* env
> > starts here */ +#else
> > #define CONFIG_ENV_IS_IN_SPI_FLASH
> > #define CONFIG_ENV_SECT_SIZE 0x10000 /* 64KB
> > */ #define CONFIG_ENV_SIZE 0x1000 /*
> > 4KB */ #define CONFIG_ENV_ADDR 0x70000
> > #define CONFIG_ENV_OFFSET 0x70000 /* env
> > starts here */ +#endif
> >
> > /*
> > * Default environment variables
> > @@ -185,4 +219,6 @@
> > "usbload=usb start &&
> > " \ "fatload usb 0:1
> > $loadaddr /boot/$bootfile\0"
> >
> > +//#define DEBUG
>
> Either remove it or make it c-style comments.
... oops... I'll remove this.
> Regards...
> Prafulla . . .
Thanks for the review.
I'll also copy Sion Guinot (maintainer for the whole lacie_kw boards)
in V2.
Amicalement,
--
Albert.
next prev parent reply other threads:[~2012-08-17 17:37 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 18:08 [U-Boot] [PATCH] ARM: lacie_kw: add support for WIRELESS_SPACE Albert ARIBAUD
2012-08-17 7:59 ` Prafulla Wadaskar
2012-08-17 17:37 ` Albert ARIBAUD [this message]
2012-08-17 17:55 ` Tom Rini
2012-08-17 21:28 ` Albert ARIBAUD
2012-08-21 7:16 ` Prafulla Wadaskar
2012-08-22 15:16 ` Simon Guinot
2012-09-22 8:51 ` Albert ARIBAUD
2012-09-22 17:38 ` Tom Rini
2012-10-05 20:40 ` Albert ARIBAUD
2012-10-19 21:38 ` [U-Boot] [PATCH v2 1/2] mvgbe: allow non-sequential PHY addresses Albert ARIBAUD
2012-10-19 21:38 ` [U-Boot] [PATCH v2 2/2] ARM: lacie_kw: add support for WIRELESS_SPACE Albert ARIBAUD
2012-10-19 22:57 ` Albert ARIBAUD
2012-10-20 0:17 ` Simon Guinot
2012-10-27 12:11 ` Albert ARIBAUD
2012-10-19 23:57 ` [U-Boot] [PATCH v3 1/2] mvgbe: allow non-sequential PHY addresses Albert ARIBAUD
2012-10-19 23:57 ` [U-Boot] [PATCH v3 2/2] ARM: lacie_kw: add support for WIRELESS_SPACE Albert ARIBAUD
2012-11-04 23:32 ` [U-Boot] [PATCH v4 1/4] mvgbe: allow non-sequential PHY addresses Albert ARIBAUD
2012-11-04 23:32 ` [U-Boot] [PATCH v4 2/4] mv88e61xx: refactor PHY and SWITCH level-code Albert ARIBAUD
2012-11-04 23:32 ` [U-Boot] [PATCH v4 3/4] kirkwood: make MPP arrays static const Albert ARIBAUD
2012-11-04 23:32 ` [U-Boot] [PATCH v4 4/4] ARM: lacie_kw: add support for WIRELESS_SPACE Albert ARIBAUD
2012-11-10 7:09 ` Prafulla Wadaskar
2012-11-25 3:21 ` Albert ARIBAUD
2012-11-25 6:41 ` Prafulla Wadaskar
2012-11-10 7:02 ` [U-Boot] [PATCH v4 3/4] kirkwood: make MPP arrays static const Prafulla Wadaskar
2012-11-10 6:56 ` [U-Boot] [PATCH v4 2/4] mv88e61xx: refactor PHY and SWITCH level-code Prafulla Wadaskar
2012-11-10 6:41 ` [U-Boot] [PATCH v4 1/4] mvgbe: allow non-sequential PHY addresses Prafulla Wadaskar
2012-11-26 21:27 ` [U-Boot] [PATCH v5 0/3] Add support for the LaCie Wireless Space Albert ARIBAUD
2012-11-26 21:27 ` [U-Boot] [PATCH v5 1/3] mv88e61xx: refactor PHY and SWITCH level-code Albert ARIBAUD
2012-11-26 21:27 ` [U-Boot] [PATCH v5 2/3] kirkwood: make MPP arrays static const Albert ARIBAUD
2012-11-26 21:27 ` [U-Boot] [PATCH v5 3/3] ARM: lacie_kw: add support for WIRELESS_SPACE Albert ARIBAUD
2012-12-20 6:51 ` [U-Boot] [PATCH v5 0/3] Add support for the LaCie Wireless Space Prafulla Wadaskar
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=20120817193718.7af8904e@lilith \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.