diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-04-23 19:27:17 -0400 |
---|---|---|
committer | Dale Farnsworth <dale@farnsworth.org> | 2008-04-29 00:17:07 -0400 |
commit | f2ce825d2a89b30af14fa577298fecaab7bc9504 (patch) | |
tree | bc49974ec503b653c792d879ceabc42a934b8b22 /include/linux/mv643xx_eth.h | |
parent | fa3959f457109cc7d082b86ea6daae927982815b (diff) |
mv643xx_eth: mbus decode window support
Make it possible to pass mbus_dram_target_info to the mv643xx_eth
driver via the platform data, and make the mv643xx_eth driver
program the window registers based on this data if it is passed in.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Reviewed-by: Tzachi Perelstein <tzachi@marvell.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Diffstat (limited to 'include/linux/mv643xx_eth.h')
-rw-r--r-- | include/linux/mv643xx_eth.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mv643xx_eth.h b/include/linux/mv643xx_eth.h index 2d59855b61c1..4801b02b444e 100644 --- a/include/linux/mv643xx_eth.h +++ b/include/linux/mv643xx_eth.h | |||
@@ -5,6 +5,8 @@ | |||
5 | #ifndef __LINUX_MV643XX_ETH_H | 5 | #ifndef __LINUX_MV643XX_ETH_H |
6 | #define __LINUX_MV643XX_ETH_H | 6 | #define __LINUX_MV643XX_ETH_H |
7 | 7 | ||
8 | #include <linux/mbus.h> | ||
9 | |||
8 | #define MV643XX_ETH_SHARED_NAME "mv643xx_eth_shared" | 10 | #define MV643XX_ETH_SHARED_NAME "mv643xx_eth_shared" |
9 | #define MV643XX_ETH_NAME "mv643xx_eth" | 11 | #define MV643XX_ETH_NAME "mv643xx_eth" |
10 | #define MV643XX_ETH_SHARED_REGS 0x2000 | 12 | #define MV643XX_ETH_SHARED_REGS 0x2000 |
@@ -13,6 +15,10 @@ | |||
13 | #define MV643XX_ETH_SIZE_REG_4 0x2224 | 15 | #define MV643XX_ETH_SIZE_REG_4 0x2224 |
14 | #define MV643XX_ETH_BASE_ADDR_ENABLE_REG 0x2290 | 16 | #define MV643XX_ETH_BASE_ADDR_ENABLE_REG 0x2290 |
15 | 17 | ||
18 | struct mv643xx_eth_shared_platform_data { | ||
19 | struct mbus_dram_target_info *dram; | ||
20 | }; | ||
21 | |||
16 | struct mv643xx_eth_platform_data { | 22 | struct mv643xx_eth_platform_data { |
17 | struct platform_device *shared; | 23 | struct platform_device *shared; |
18 | int port_number; | 24 | int port_number; |