Commit 5a2f5501 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Jason Cooper

arm: plat-orion: use void __iomem pointers for MPP functions

The registration function for MPP now takes void __iomem pointers, so
we remove the temporary "unsigned long" casts from the mach-*/mpp.c
files.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent d19beac1
...@@ -151,8 +151,7 @@ void __init dove_mpp_conf(unsigned int *mpp_list, ...@@ -151,8 +151,7 @@ void __init dove_mpp_conf(unsigned int *mpp_list,
dove_mpp_dump_regs(); dove_mpp_dump_regs();
/* Use platform code for pins 0-23 */ /* Use platform code for pins 0-23 */
orion_mpp_conf(mpp_list, 0, MPP_MAX, orion_mpp_conf(mpp_list, 0, MPP_MAX, DOVE_MPP_VIRT_BASE);
(unsigned long) DOVE_MPP_VIRT_BASE);
dove_mpp_conf_grp(mpp_grp_list); dove_mpp_conf_grp(mpp_grp_list);
dove_mpp_cfg_au1(grp_au1_52_57); dove_mpp_cfg_au1(grp_au1_52_57);
......
...@@ -38,6 +38,5 @@ static unsigned int __init kirkwood_variant(void) ...@@ -38,6 +38,5 @@ static unsigned int __init kirkwood_variant(void)
void __init kirkwood_mpp_conf(unsigned int *mpp_list) void __init kirkwood_mpp_conf(unsigned int *mpp_list)
{ {
orion_mpp_conf(mpp_list, kirkwood_variant(), orion_mpp_conf(mpp_list, kirkwood_variant(),
MPP_MAX, MPP_MAX, DEV_BUS_VIRT_BASE);
(unsigned long) DEV_BUS_VIRT_BASE);
} }
...@@ -33,6 +33,5 @@ static unsigned int __init mv78xx0_variant(void) ...@@ -33,6 +33,5 @@ static unsigned int __init mv78xx0_variant(void)
void __init mv78xx0_mpp_conf(unsigned int *mpp_list) void __init mv78xx0_mpp_conf(unsigned int *mpp_list)
{ {
orion_mpp_conf(mpp_list, mv78xx0_variant(), orion_mpp_conf(mpp_list, mv78xx0_variant(),
MPP_MAX, MPP_MAX, DEV_BUS_VIRT_BASE);
(unsigned long) DEV_BUS_VIRT_BASE);
} }
...@@ -40,6 +40,5 @@ static unsigned int __init orion5x_variant(void) ...@@ -40,6 +40,5 @@ static unsigned int __init orion5x_variant(void)
void __init orion5x_mpp_conf(unsigned int *mpp_list) void __init orion5x_mpp_conf(unsigned int *mpp_list)
{ {
orion_mpp_conf(mpp_list, orion5x_variant(), orion_mpp_conf(mpp_list, orion5x_variant(),
MPP_MAX, MPP_MAX, ORION5X_DEV_BUS_VIRT_BASE);
(unsigned long) ORION5X_DEV_BUS_VIRT_BASE);
} }
...@@ -29,6 +29,6 @@ ...@@ -29,6 +29,6 @@
#define MPP_OUTPUT_MASK GENERIC_MPP(0, 0x0, 0, 1) #define MPP_OUTPUT_MASK GENERIC_MPP(0, 0x0, 0, 1)
void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask, void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask,
unsigned int mpp_max, unsigned int dev_bus); unsigned int mpp_max, void __iomem *dev_bus);
#endif #endif
...@@ -17,15 +17,15 @@ ...@@ -17,15 +17,15 @@
#include <plat/mpp.h> #include <plat/mpp.h>
/* Address of the ith MPP control register */ /* Address of the ith MPP control register */
static __init unsigned long mpp_ctrl_addr(unsigned int i, static __init void __iomem *mpp_ctrl_addr(unsigned int i,
unsigned long dev_bus) void __iomem *dev_bus)
{ {
return dev_bus + (i) * 4; return dev_bus + (i) * 4;
} }
void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask, void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask,
unsigned int mpp_max, unsigned int dev_bus) unsigned int mpp_max, void __iomem *dev_bus)
{ {
unsigned int mpp_nr_regs = (1 + mpp_max/8); unsigned int mpp_nr_regs = (1 + mpp_max/8);
u32 mpp_ctrl[mpp_nr_regs]; u32 mpp_ctrl[mpp_nr_regs];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment