Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: update smc91x platform data for se7206.

Follows the se7722 change.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+14 -3
+14 -3
arch/sh/boards/se/7206/setup.c
··· 3 3 * linux/arch/sh/boards/se/7206/setup.c 4 4 * 5 5 * Copyright (C) 2006 Yoshinori Sato 6 - * Copyright (C) 2007 Paul Mundt 6 + * Copyright (C) 2007 - 2008 Paul Mundt 7 7 * 8 8 * Hitachi 7206 SolutionEngine Support. 9 9 */ 10 10 #include <linux/init.h> 11 11 #include <linux/platform_device.h> 12 + #include <linux/smc91x.h> 12 13 #include <asm/se7206.h> 13 14 #include <asm/io.h> 14 15 #include <asm/machvec.h> ··· 17 16 18 17 static struct resource smc91x_resources[] = { 19 18 [0] = { 20 - .start = 0x300, 21 - .end = 0x300 + 0x020 - 1, 19 + .name = "smc91x-regs", 20 + .start = PA_SMSC + 0x300, 21 + .end = PA_SMSC + 0x300 + 0x020 - 1, 22 22 .flags = IORESOURCE_MEM, 23 23 }, 24 24 [1] = { ··· 29 27 }, 30 28 }; 31 29 30 + static struct smc91x_platdata smc91x_info = { 31 + .flags = SMC91X_USE_16BIT, 32 + }; 33 + 32 34 static struct platform_device smc91x_device = { 33 35 .name = "smc91x", 34 36 .id = -1, 37 + .dev = { 38 + .dma_mask = NULL, 39 + .coherent_dma_mask = 0xffffffff, 40 + .platform_data = &smc91x_info, 41 + }, 35 42 .num_resources = ARRAY_SIZE(smc91x_resources), 36 43 .resource = smc91x_resources, 37 44 };