diff options
author | Mark A. Greer <mgreer@mvista.com> | 2009-04-15 15:40:56 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-05-28 18:17:45 -0400 |
commit | 972412b648dcf0c4303dca7e515d5c24ce3cd1d5 (patch) | |
tree | 2531253bcc50ef71665405ad1aa0f8f2f035f41f /arch/arm/mach-davinci/include/mach | |
parent | 65e866a9741126c678e6dcd5d4fa8c9eca18e945 (diff) |
davinci: Move emac platform_data to SoC-specific files
Since most of the emac platform_data is really SoC specific
and not board specific, move it to the SoC-specific files.
Put a pointer to the platform_data in the soc_info structure
so the board-specific code can set some of the platform_data
if it needs to.
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/common.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm644x.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/dm646x.h | 1 |
3 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h index 9624e0382536..b773d92e7379 100644 --- a/arch/arm/mach-davinci/include/mach/common.h +++ b/arch/arm/mach-davinci/include/mach/common.h | |||
@@ -62,6 +62,7 @@ struct davinci_soc_info { | |||
62 | unsigned gpio_num; | 62 | unsigned gpio_num; |
63 | unsigned gpio_irq; | 63 | unsigned gpio_irq; |
64 | struct platform_device *serial_dev; | 64 | struct platform_device *serial_dev; |
65 | struct emac_platform_data *emac_pdata; | ||
65 | }; | 66 | }; |
66 | 67 | ||
67 | extern struct davinci_soc_info davinci_soc_info; | 68 | extern struct davinci_soc_info davinci_soc_info; |
diff --git a/arch/arm/mach-davinci/include/mach/dm644x.h b/arch/arm/mach-davinci/include/mach/dm644x.h index ace167aec460..15d42b92a8c9 100644 --- a/arch/arm/mach-davinci/include/mach/dm644x.h +++ b/arch/arm/mach-davinci/include/mach/dm644x.h | |||
@@ -34,6 +34,5 @@ | |||
34 | #define DM644X_EMAC_CNTRL_RAM_SIZE (0x2000) | 34 | #define DM644X_EMAC_CNTRL_RAM_SIZE (0x2000) |
35 | 35 | ||
36 | void __init dm644x_init(void); | 36 | void __init dm644x_init(void); |
37 | void dm644x_init_emac(struct emac_platform_data *pdata); | ||
38 | 37 | ||
39 | #endif /* __ASM_ARCH_DM644X_H */ | 38 | #endif /* __ASM_ARCH_DM644X_H */ |
diff --git a/arch/arm/mach-davinci/include/mach/dm646x.h b/arch/arm/mach-davinci/include/mach/dm646x.h index ea7b28e112f6..1fc764c8646e 100644 --- a/arch/arm/mach-davinci/include/mach/dm646x.h +++ b/arch/arm/mach-davinci/include/mach/dm646x.h | |||
@@ -22,6 +22,5 @@ | |||
22 | #define DM646X_EMAC_CNTRL_RAM_SIZE (0x2000) | 22 | #define DM646X_EMAC_CNTRL_RAM_SIZE (0x2000) |
23 | 23 | ||
24 | void __init dm646x_init(void); | 24 | void __init dm646x_init(void); |
25 | void dm646x_init_emac(struct emac_platform_data *pdata); | ||
26 | 25 | ||
27 | #endif /* __ASM_ARCH_DM646X_H */ | 26 | #endif /* __ASM_ARCH_DM646X_H */ |