From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 7.mo4.mail-out.ovh.net ([178.33.253.54] helo=mo4.mail-out.ovh.net) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qi2dQ-0000jH-02 for barebox@lists.infradead.org; Sat, 16 Jul 2011 11:02:22 +0000 Received: from mail187.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 86CE9FFA023 for ; Sat, 16 Jul 2011 13:02:33 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 16 Jul 2011 12:45:32 +0200 Message-Id: <1310813132-4151-7-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1310813132-4151-1-git-send-email-plagnioj@jcrosoft.com> References: <1310813132-4151-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 7/7] dm9200: use "struct resource" instead of platform_data To: barebox@lists.infradead.org Cc: Patrice Vilchez , Nicolas Ferre drop iobase and iodata in favor of resources Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre Cc: Patrice Vilchez --- arch/arm/boards/at91sam9261ek/init.c | 8 +++++--- arch/arm/boards/mini2440/env/welcome_en.bmp.lzo | Bin 0 -> 26285 bytes arch/arm/boards/mini2440/mini2440.c | 17 +++++++++++++---- arch/arm/boards/pm9261/init.c | 8 +++++--- arch/arm/boards/scb9328/scb9328.c | 23 ++++++++++++++++------- drivers/net/dm9000.c | 10 ++++++++-- include/dm9000.h | 2 -- 7 files changed, 47 insertions(+), 21 deletions(-) create mode 100644 arch/arm/boards/mini2440/env/welcome_en.bmp.lzo diff --git a/arch/arm/boards/at91sam9261ek/init.c b/arch/arm/boards/at91sam9261ek/init.c index 3def38e..4e52ab8 100644 --- a/arch/arm/boards/at91sam9261ek/init.c +++ b/arch/arm/boards/at91sam9261ek/init.c @@ -89,8 +89,6 @@ static void ek_add_device_nand(void) */ #if defined(CONFIG_DRIVER_NET_DM9000) static struct dm9000_platform_data dm9000_data = { - .iobase = AT91_CHIPSELECT_2, - .iodata = AT91_CHIPSELECT_2 + 4, .buswidth = DM9000_WIDTH_16, .srom = 0, }; @@ -98,7 +96,11 @@ static struct dm9000_platform_data dm9000_data = { static struct resource dm9000_resources[] = { [0] = { .start = AT91_CHIPSELECT_2, - .size = 8, + .size = 4, + }, + [1] = { + .start = AT91_CHIPSELECT_2 + 4, + .size = 4, }, }; diff --git a/arch/arm/boards/mini2440/env/welcome_en.bmp.lzo b/arch/arm/boards/mini2440/env/welcome_en.bmp.lzo new file mode 100644 index 0000000000000000000000000000000000000000..8d4b743d934ed19c63ae1c6738d6661de545745c GIT binary patch literal 26285 zcmeIbdt8*&`aZm#c?Ota2IiR)Gs6t?ugN!md*q~sbpnzIZYHC_) zY97F})I_tiv^2rAEp5+=hxGp@?Bx#@3_5El8|uEHA!CVqC`lehPD!GOCqNj67|AE(So99^DT$Ad zlau%kl8V1GdBXR9EFoV^Bz)3cB<7EQCx8CxuOIu3^u=Fx_{$D|Il--f@s}O`-?Bpq zA!>Y9e-w{NJ*-cbX#R@AqH+InvH!PR?EgoWG%-ZO5}i)R-!dNgLdWxi2$4&rQnNW$ zsZ>TsM?0sJaHG+{vaC|6_~VW1cs`L3l}4j}=%I&Rd+oJdyLOe76l=8_$9y7JC?eOc zT|0X8XsuTJ#}nN=pTP9*UbeM$(#@MUw{6?@pa1;ltFOKS%F^rgsgDu~Lw;t->eZ{O z!frqIdJ)g+blRw>D941w8jZ&Gag+XDMy<9_CqYJ~Qt_%DN|?QS_jGl2aU2&H7x&-) z{&(ECak_MiS0$CQUw--JvSp9pjnUCjdcCe7hw(`r`>oaC!X|6I#D2^gV5;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kjg}REFbRMukYf=tVcdq0q&WQkd)rg=gAEEcMp0V8w+w+c-UmcFkv<*c+9& zB;rwTWPDtly@Eg+0c*|!92v$|f{{hKiHYyV|Au5bAM@?|uYA%Wy# zNp#x>`dGrW<4!LnjWz>uBW*fk1$oZ8i$gQrE8Mnw(NMvTBY{7#98YqaW;Y$TuCgYg}p zdSQEMV`C%TUJ5Wos}}};5l`#aQ(@ym97PKJVlQbyIHBjaY9HuOS+2&4q}vLL8*?fY z@bP+?FD&>AQY-F`s!)jIjMxJuM{T4ptmX!exZvI$cq#@9>(oYhML19`M~`>oGtYoV zt`3LGipQp^1aT9Gd#3p{{eGbScQ&MA9;R9<%$Xo4E+g}=G3tT|*sXM0B20680^Yrd z<+N%M|sPZ!bexH}&AUJp>AMp#wq0wxz^sdmh4JdgCjhvqZc?tE#D%srwnY2-ggbVh+zI z%7482Dq7x%RS4|>Dn`Zd`Fgb0*REZ2@K;fg|Is!3(Q!Z|bbAZbgq1A3OxSuH>N`y} zZu;2i74HViZ?k7I@G$kUI~pYL68dv9q(ZeZ^qs|rKNZh9nqL`sj-yRJ95xJ?{A?{4 zqk~c~6?7C%f!BQtv%RQ&k0qjfm)v@dl~~|X!Da|iQtJ}H%E#xA?uBQyEiOI9UtHkh(U@v7fnZ z=HjJZZEA9J>@YKK?KCd*igkuCyh)RR6MA~v$H%o}iKbv4Bg!o&LDs5r^nNW^7W-L8 zSEr>u&M5boyCrt1H>*gJ-a~XfYn_B--z(v66B7O9@9$Rl-xpbU(_e46WvRdH@RuF_ z+6@2asDW4`GCGnQ0QS-x_m1z6{ogV=cnum_resources < 2) { + printf("dm9000: need 2 resources base and data"); + return -ENODEV; + } + pdata = dev->platform_data; priv = edev->priv; priv->buswidth = pdata->buswidth; - priv->iodata = (void *)pdata->iodata; - priv->iobase = (void *)pdata->iobase; + priv->iodata = (void __iomem *)dev->resource[1].start; + priv->iobase = (void __iomem *)dev->resource[0].start; priv->srom = pdata->srom; edev->init = dm9000_init_dev; diff --git a/include/dm9000.h b/include/dm9000.h index b4a04b1..0991ab5 100644 --- a/include/dm9000.h +++ b/include/dm9000.h @@ -7,8 +7,6 @@ #define DM9000_WIDTH_32 3 struct dm9000_platform_data { - unsigned long iobase; - unsigned long iodata; int buswidth; int srom; }; -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox