From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/17] SPEAr : FSMC driver support added
Date: Thu, 22 Apr 2010 11:01:32 -0500 [thread overview]
Message-ID: <4BD072DC.5020505@freescale.com> (raw)
In-Reply-To: <4BCFD08B.5020008@st.com>
Vipin KUMAR wrote:
> On 4/21/2010 10:32 PM, Scott Wood wrote:
>> On Wed, Apr 21, 2010 at 01:24:36PM +0530, Vipin KUMAR wrote:
>>> +#if defined(CONFIG_BOARD_NAND_LP)
>> CONFIG_SYS_FSMC_NAND_LP, CONFIG_SYS_FSMC_NAND_16BIT, etc.
>
> Incomplete comment :)
> Are these deprecated
CONFIG symbols that are hardware parameters rather than user-tweakable
config go in the CONFIG_SYS namespace (see "Software Configuration" in
README).
I think it should also be an FSMC-specific parameter, not something that
looks universal.
>>> +#ifndef __FSMC_NAND_H__
>>> +#define __FSMC_NAND_H__
>>> +
>>> +struct fsmc_regs {
>>> + u8 reserved_1[0x40];
>>> + u32 genmemctrl_pc; /* 0x40 */
>>> + u32 genmemctrl_sts; /* 0x44 */
>>> + u32 genmemctrl_comm; /* 0x48 */
>>> + u32 genmemctrl_attrib; /* 0x4c */
>>> + u32 genmemctrl_ioata; /* 0x50 */
>>> + u32 genmemctrl_ecc1; /* 0x54 */
>>> + u32 genmemctrl_ecc2; /* 0x58 */
>>> + u32 genmemctrl_ecc3; /* 0x5c */
>>> + u8 reserved_2[0xfe0 - 0x60];
>>> + u32 genmemctrl_peripid0; /* 0xfe0 */
>>> + u32 genmemctrl_peripid1; /* 0xfe4 */
>>> + u32 genmemctrl_peripid2; /* 0xfe8 */
>>> + u32 genmemctrl_peripid3; /* 0xfec */
>>> + u32 genmemctrl_pcellid0; /* 0xff0 */
>>> + u32 genmemctrl_pcellid1; /* 0xff4 */
>>> + u32 genmemctrl_pcellid2; /* 0xff8 */
>>> + u32 genmemctrl_pcellid3; /* 0xffc */
>>> +};
>> Is the genmemctrl_ prefix really needed?
>>
>
> The peripheral's registers are named like these so I kept it.
The struct name takes that role here; hardware documentation doesn't
have the benefit of that.
-Scott
next prev parent reply other threads:[~2010-04-22 16:01 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 7:54 [U-Boot] [PATCH 00/17] Network support for spear platform and spear1300 support Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 01/17] u-boot.img file not created when srctree and objtree are different Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 02/17] change_bit routine defined Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 03/17] SPEAr : SMI erase and write timeouts increased Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 04/17] SPEAr : Placing ethaddr write and read within CONFIG_CMD_NET Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 05/17] SPEAr : Reducing the max RAM size to 128MB Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 06/17] SPEAr : Basic arch related support added for SPEAr SoCs Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 07/17] SPEAr : Network driver support added Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 08/17] SPEAr : Network support configured for spear SoCs Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 09/17] SPEAr : macb driver support added for spear310 and spear320 Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 10/17] SPEAr : FSMC driver support added Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 11/17] SPEAr : Configuring FSMC driver for NAND interface Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 12/17] SPEAr : i2c driver moved completely into drivers/i2c Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 13/17] SPEAr : smi driver moved completely into drivers/mtd Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 14/17] SPEAr : USBD driver support added Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 15/17] SPEAr : Basic spear1300 architecture " Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 16/17] SPEAr : spear1300 SoC " Vipin KUMAR
2010-04-21 7:54 ` [U-Boot] [PATCH 17/17] SPEAr : Supporting various configurations for spear3xx and spear6xx boards Vipin KUMAR
2010-04-21 12:11 ` [U-Boot] [PATCH 12/17] SPEAr : i2c driver moved completely into drivers/i2c Peter Tyser
2010-04-22 4:07 ` Vipin KUMAR
2010-04-21 17:02 ` [U-Boot] [PATCH 11/17] SPEAr : Configuring FSMC driver for NAND interface Scott Wood
2010-04-22 4:21 ` Vipin KUMAR
2010-04-22 15:39 ` Scott Wood
2010-04-21 17:02 ` [U-Boot] [PATCH 10/17] SPEAr : FSMC driver support added Scott Wood
2010-04-22 4:28 ` Vipin KUMAR
2010-04-22 16:01 ` Scott Wood [this message]
2010-04-21 12:00 ` [U-Boot] [PATCH 07/17] SPEAr : Network " Peter Tyser
2010-04-22 4:30 ` Vipin KUMAR
2010-04-21 17:48 ` Ben Warren
2010-04-22 4:43 ` Vipin KUMAR
2010-04-23 10:32 ` Armando VISCONTI
2010-04-26 5:02 ` Ben Warren
2010-04-26 8:01 ` Armando VISCONTI
2010-04-26 8:34 ` Vipin KUMAR
2010-04-21 11:51 ` [U-Boot] [PATCH 06/17] SPEAr : Basic arch related support added for SPEAr SoCs Peter Tyser
2010-04-22 4:45 ` Vipin KUMAR
2010-04-21 11:54 ` [U-Boot] [PATCH 00/17] Network support for spear platform and spear1300 support Peter Tyser
2010-04-21 12:00 ` Vipin KUMAR
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=4BD072DC.5020505@freescale.com \
--to=scottwood@freescale.com \
--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