From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 3/4] orion5x: add support for cmd_ide.c
Date: Mon, 12 Jul 2010 10:37:03 +0200 [thread overview]
Message-ID: <4C3AD42F.3000105@free.fr> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D19A4A5D614@SC-VEXCH4.marvell.com>
Le 12/07/2010 08:46, 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: Friday, July 09, 2010 12:11 AM
>> To: u-boot at lists.denx.de
>> Subject: [U-Boot] [PATCH V3 3/4] orion5x: add support for cmd_ide.c
>>
>> This patch allows cmd_ide.c to use the Marvell SATAHC controller
>> integrated in the Orion5x SoC, thus enabling access to SATA disks
>> for Orion5x-based boards such as the ED Mini V2.
>>
>> Signed-off-by: Albert Aribaud<albert.aribaud@free.fr>
>> ---
>> arch/arm/include/asm/arch-orion5x/orion5x.h | 11 +++++++++++
>> common/cmd_ide.c | 4 ++++
>> 2 files changed, 15 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/include/asm/arch-orion5x/orion5x.h
>> b/arch/arm/include/asm/arch-orion5x/orion5x.h
>> index 4008c84..585083a 100644
>> --- a/arch/arm/include/asm/arch-orion5x/orion5x.h
>> +++ b/arch/arm/include/asm/arch-orion5x/orion5x.h
>> @@ -55,6 +55,17 @@
>> #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
>> +
>> +/* SATA Interface Register port 0 and 1 */
>> +#define orion5x_port0_sata_registers \
>> + ((struct mv_sata_interface_registers *) \
>> + (ORION5X_SATA_BASE+ORION5X_SATA_PORT0_OFFSET+0x300))
>> +#define orion5x_port1_sata_registers \
>> + ((struct mv_sata_interface_registers *) \
>> + (ORION5X_SATA_BASE+ORION5X_SATA_PORT1_OFFSET+0x300))
>
> Pls remove this and use _BASE macro in c code
Not sure I understand this comment. Can you elaborate?
>>
>> #define CONFIG_MAX_RAM_BANK_SIZE (64*1024*1024)
>>
>> diff --git a/common/cmd_ide.c b/common/cmd_ide.c
>> index 9292a5b..7f98ebb 100644
>> --- a/common/cmd_ide.c
>> +++ b/common/cmd_ide.c
>> @@ -45,6 +45,10 @@
>> #include<mpc5xxx.h>
>> #endif
>>
>> +#ifdef CONFIG_ORION5X
>> +#include<asm/arch/orion5x.h>
>> +#endif
>> +
>
> Why do you need this include?
Because just like for other SoC / boards which are #included right
before, CMD_IDE requires defining some constants that specify where the
SATA register block resides in RAM, and in the orion5x case, these
constants will be based on orion5x symbols.
This is not strictly speaking required until CMD_IDE is actually used,
i.e. until edmini declares support for CMD_IDE in next patch, but the
change logically belongs to "orion5x support" rather than "edminiv2
support".
> Regards..
> Prafulla . .
Amicalement,
--
Albert.
next prev parent reply other threads:[~2010-07-12 8:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-08 18:40 [U-Boot] [PATCH V3 1/4] ide: add configuration CONFIG_IDE_SWAP_IO Albert Aribaud
2010-07-08 18:40 ` [U-Boot] [PATCH V3 2/4] drivers/block: add mv_sata_ide driver Albert Aribaud
2010-07-08 18:40 ` [U-Boot] [PATCH V3 3/4] orion5x: add support for cmd_ide.c Albert Aribaud
2010-07-08 18:40 ` [U-Boot] [PATCH V3 4/4] edminiv2: add cmd_ide support Albert Aribaud
2010-07-12 6:46 ` Prafulla Wadaskar
2010-07-12 8:39 ` Albert ARIBAUD
2010-07-12 6:46 ` [U-Boot] [PATCH V3 3/4] orion5x: add support for cmd_ide.c Prafulla Wadaskar
2010-07-12 8:37 ` Albert ARIBAUD [this message]
2010-07-12 6:47 ` [U-Boot] [PATCH V3 2/4] drivers/block: add mv_sata_ide driver 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=4C3AD42F.3000105@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