From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Damm Date: Mon, 28 Jul 2008 10:11:07 +0000 Subject: [PATCH] sh: Update smc911x platform data for AP325RXA Message-Id: <20080728101107.18291.82164.sendpatchset@rx1.opensource.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org From: Magnus Damm Pass board specific smc911x parameters using struct smc911x_platdata. Signed-off-by: Magnus Damm --- arch/sh/boards/renesas/ap325rxa/setup.c | 10 ++++++++++ 1 file changed, 10 insertions(+) --- 0004/arch/sh/boards/renesas/ap325rxa/setup.c +++ work/arch/sh/boards/renesas/ap325rxa/setup.c 2008-07-28 18:56:20.000000000 +0900 @@ -12,15 +12,22 @@ #include #include +#include #include #include #include #include #include +#include #include #include #include +static struct smc911x_platdata smc911x_info = { + .flags = SMC911X_USE_32BIT, + .irq_flags = IRQF_TRIGGER_LOW, +}; + static struct resource smc9118_resources[] = { [0] = { .start = 0xb6080000, @@ -39,6 +46,9 @@ static struct platform_device smc9118_de .id = -1, .num_resources = ARRAY_SIZE(smc9118_resources), .resource = smc9118_resources, + .dev = { + .platform_data = &smc911x_info, + }, }; static struct mtd_partition ap325rxa_nor_flash_partitions[] = {