From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V7 3/4] cmd_ide: add support for orion5x
Date: Thu, 05 Aug 2010 23:28:18 +0200 [thread overview]
Message-ID: <4C5B2CF2.2030907@free.fr> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D19A6576D63@SC-VEXCH4.marvell.com>
Le 05/08/2010 20:43, Prafulla Wadaskar a ?crit :
>
>
>> -----Original Message-----
>> From: u-boot-bounces at lists.denx.de
>> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Albert Aribaud
>> Sent: Thursday, August 05, 2010 6:06 PM
>> To: u-boot at lists.denx.de
>> Subject: [U-Boot] [PATCH V7 3/4] cmd_ide: add support for orion5x
>>
>> Add MVSATAHC definitions to orion5x.
>> Add support for orion5x in cmd_ide.
>>
>> Signed-off-by: Albert Aribaud<albert.aribaud@free.fr>
>> ---
>> arch/arm/include/asm/arch-orion5x/orion5x.h | 3 +++
>> common/cmd_ide.c | 5 +++++
>> 2 files changed, 8 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/include/asm/arch-orion5x/orion5x.h
>> b/arch/arm/include/asm/arch-orion5x/orion5x.h
>> index d257b66..e3d3f76 100644
>> --- a/arch/arm/include/asm/arch-orion5x/orion5x.h
>> +++ b/arch/arm/include/asm/arch-orion5x/orion5x.h
>> @@ -55,6 +55,9 @@
>> #define ORION5X_USB20_PORT0_BASE
>> (ORION5X_REGISTER(0x50000))
>> #define ORION5X_USB20_PORT1_BASE
>> (ORION5X_REGISTER(0xA0000))
>> #define ORION5X_EGIGA_BASE
>> (ORION5X_REGISTER(0x72000))
>> +#define ORION5X_SATA_BASE
>> (ORION5X_REGISTER(0x80000))
>> +#define ORION5X_SATA_PORT0_OFFSET 0x2000
>> +#define ORION5X_SATA_PORT1_OFFSET 0x4000
>
> These two macros are mvsata specific and going to duplicate in Kirkwood port too.
> Why not to move them to mvsata.c?
Because the abstracted driver does not know at what address it is
instantiated in each SoC; this is known at SoC level.
>> /* Orion5x GbE controller has a single port */
>> #define MAX_MVGBE_DEVS 1
>> diff --git a/common/cmd_ide.c b/common/cmd_ide.c
>> index d423e53..b23db3f 100644
>> --- a/common/cmd_ide.c
>> +++ b/common/cmd_ide.c
>> @@ -25,6 +25,7 @@
>> /*
>> * IDE support
>> */
>> +
>> #include<common.h>
>> #include<config.h>
>> #include<watchdog.h>
>> @@ -45,6 +46,10 @@
>> #include<mpc5xxx.h>
>> #endif
>>
>> +#ifdef CONFIG_ORION5X
>> +#include<asm/arch/orion5x.h>
>> +#endif
>
> What makes it important to include this file here?
This file uses the CONFIG_SYS_ATA_xxx macros, which expand to ORION5X
(and KW for kirkwood) macros.
The macros and include are actually based on the same principle as for
the mvgbe driver base and port offset.
> Regards..
> Prafulla . .
Amicalement,
--
Albert.
next prev parent reply other threads:[~2010-08-05 21:28 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-05 12:35 [U-Boot] [PATCH V7 0/4] Add disk support to orion5x and edminiv2 Albert Aribaud
2010-08-05 12:35 ` [U-Boot] [PATCH V7 1/4] ide: add configuration CONFIG_IDE_SWAP_IO Albert Aribaud
2010-08-05 12:35 ` [U-Boot] [PATCH V7 2/4] ide: add mvsata_ide driver Albert Aribaud
2010-08-05 12:35 ` [U-Boot] [PATCH V7 3/4] cmd_ide: add support for orion5x Albert Aribaud
2010-08-05 12:35 ` [U-Boot] [PATCH V7 4/4] edminiv2: add mvsata_ide and cmd_ide support Albert Aribaud
2010-08-05 18:48 ` Prafulla Wadaskar
2010-08-05 18:43 ` [U-Boot] [PATCH V7 3/4] cmd_ide: add support for orion5x Prafulla Wadaskar
2010-08-05 21:28 ` Albert ARIBAUD [this message]
2010-08-05 19:09 ` [U-Boot] [PATCH V7 2/4] ide: add mvsata_ide driver Prafulla Wadaskar
2010-08-05 21:29 ` Albert ARIBAUD
2010-08-06 9:38 ` Albert ARIBAUD
2010-08-07 6:39 ` Prafulla Wadaskar
2010-08-07 8:31 ` Albert ARIBAUD
2010-08-05 18:58 ` [U-Boot] [PATCH V7 1/4] ide: add configuration CONFIG_IDE_SWAP_IO Prafulla Wadaskar
2010-08-05 12:42 ` [U-Boot] [PATCH V7 0/4] Add disk support to orion5x and edminiv2 Rogan Dawes
2010-08-05 13:02 ` Wolfgang Denk
2010-08-05 14:11 ` Albert ARIBAUD
2010-08-05 14:28 ` Rogan Dawes
2010-08-05 15:12 ` Albert ARIBAUD
2010-08-05 15:35 ` Rogan Dawes
2010-08-05 18:25 ` Wolfgang Denk
2010-08-05 18:37 ` Prafulla Wadaskar
2010-08-06 7:08 ` Albert ARIBAUD
2010-08-06 8:18 ` Prafulla Wadaskar
2010-08-06 9:09 ` Albert ARIBAUD
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=4C5B2CF2.2030907@free.fr \
--to=albert.aribaud@free.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox