summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-04-24 01:27:17 +0200
committerDale Farnsworth <dale@farnsworth.org>2008-04-28 21:17:07 -0700
commitf2ce825d2a89b30af14fa577298fecaab7bc9504 (patch)
treebc49974ec503b653c792d879ceabc42a934b8b22 /include
parentfa3959f457109cc7d082b86ea6daae927982815b (diff)
downloadlinux-stable-f2ce825d2a89b30af14fa577298fecaab7bc9504.tar.gz
linux-stable-f2ce825d2a89b30af14fa577298fecaab7bc9504.tar.bz2
linux-stable-f2ce825d2a89b30af14fa577298fecaab7bc9504.zip
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')
-rw-r--r--include/linux/mv643xx_eth.h6
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 @@
#ifndef __LINUX_MV643XX_ETH_H
#define __LINUX_MV643XX_ETH_H
+#include <linux/mbus.h>
+
#define MV643XX_ETH_SHARED_NAME "mv643xx_eth_shared"
#define MV643XX_ETH_NAME "mv643xx_eth"
#define MV643XX_ETH_SHARED_REGS 0x2000
@@ -13,6 +15,10 @@
#define MV643XX_ETH_SIZE_REG_4 0x2224
#define MV643XX_ETH_BASE_ADDR_ENABLE_REG 0x2290
+struct mv643xx_eth_shared_platform_data {
+ struct mbus_dram_target_info *dram;
+};
+
struct mv643xx_eth_platform_data {
struct platform_device *shared;
int port_number;