ARM: Orion: Get address map from plat-orion instead of via platform_data
Use an getter function in plat-orion/addr-map.c to get the address map structure, rather than pass it to drivers in the platform_data structures. When the drivers are built for none orion platforms, a dummy function is provided instead which returns NULL. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Michael Walle <michael@walle.cc> Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
This commit is contained in:
parent
45173d5ed4
commit
63a9332b23
17 changed files with 73 additions and 48 deletions
|
@ -32,5 +32,16 @@ struct mbus_dram_target_info
|
|||
} cs[4];
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* The Marvell mbus is to be found only on SOCs from the Orion family
|
||||
* at the moment. Provide a dummy stub for other architectures.
|
||||
*/
|
||||
#ifdef CONFIG_PLAT_ORION
|
||||
extern const struct mbus_dram_target_info *mv_mbus_dram_info(void);
|
||||
#else
|
||||
static inline const struct mbus_dram_target_info *mv_mbus_dram_info(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue