From: gwenhael.goavec-merou@armadeus.com (gwenhael.goavec)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3] [ARM] MX1: Add ARMadeus Systems APF9328 board support
Date: Tue, 26 Apr 2011 18:27:26 +0200 [thread overview]
Message-ID: <20110426182726.0f5d8ada@trabucayre.com> (raw)
In-Reply-To: <20110426132033.GT31131@pengutronix.de>
On Tue, 26 Apr 2011 15:20:33 +0200
Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> wrote:
> > +static struct platform_device apf9328_flash_device = {
> > + .name = "physmap-flash",
> > + .id = 0,
> > + .dev = {
> > + .platform_data = &apf9328_flash_data,
> > + },
> > + .resource = &flash_resource,
> > + .num_resources = 1,
> ARRAY_SIZE(flash_resource) please
>
ARRAY_SIZE() is not usable for flash_resource because this is not an array. This
way to set the FLASH resource size is commonly used on others boards.
>
> > +};
> > +
> > +/*
> > + * APF9328 has a DM9000 Ethernet controller
> > + */
> > +static const struct dm9000_plat_data dm9000_setup __initconst = {
> > + .flags = DM9000_PLATF_16BITONLY
> > +};
> ditto here (no init, no const)
>
> > +
> > +static const struct resource dm9000_resources[] __initconst = {
> > + [0] = {
> > + .start = (MX1_CS4_PHYS + 0x00C00000),
> > + .end = (MX1_CS4_PHYS + 0x00C00001),
> hmm, are you sure about the sizes here? The parenthesis are not needed.
>
Yes. Chip is mapped that way on apf9328 board.
>
> > + .flags = IORESOURCE_MEM,
> > + },
> > + [1] = {
> > + .start = (MX1_CS4_PHYS + 0x00C00002),
> > + .end = (MX1_CS4_PHYS + 0x00C00003),
> > + .flags = IORESOURCE_MEM,
> > + },
> > + [2] = {
> > + .start = (IRQ_GPIOB(14)),
> > + .end = (IRQ_GPIOB(14)),
> > + .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
> > + },
> > +};
> > +
> Best regards
> Uwe
>
Regards
Gwenha?l
prev parent reply other threads:[~2011-04-26 16:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 16:51 [PATCH v3] [ARM] MX1: Add ARMadeus Systems APF9328 board support Gwenhael Goavec-Merou
2011-04-26 12:50 ` gwenhael.goavec
2011-04-26 13:20 ` Uwe Kleine-König
2011-04-26 16:27 ` gwenhael.goavec [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=20110426182726.0f5d8ada@trabucayre.com \
--to=gwenhael.goavec-merou@armadeus.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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