diff options
| author | Heiko Schocher <[email protected]> | 2011-01-24 09:57:20 +0000 |
|---|---|---|
| committer | Paul Mundt <[email protected]> | 2011-03-22 17:16:34 +0900 |
| commit | bf5f0019046d596d613caf74722ba4994e153899 (patch) | |
| tree | ce5829b518467cfd08344a48f6587b7012eb5eac /include/linux | |
| parent | dfc906daeec03b3f2d306ae260d398d97ba232c5 (diff) | |
video, sm501: add I/O functions for use on powerpc
- add read/write functions for using this driver
also on powerpc plattforms
Signed-off-by: Heiko Schocher <[email protected]>
cc: [email protected]
cc: [email protected]
cc: Ben Dooks <[email protected]>
cc: Vincent Sanders <[email protected]>
cc: Samuel Ortiz <[email protected]>
cc: [email protected]
cc: Randy Dunlap <[email protected]>
cc: Paul Mundt <[email protected]>
Acked-by: Samuel Ortiz <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sm501.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sm501.h b/include/linux/sm501.h index 214f93209b8c..02fde50a79a5 100644 --- a/include/linux/sm501.h +++ b/include/linux/sm501.h @@ -172,3 +172,11 @@ struct sm501_platdata { struct sm501_platdata_gpio_i2c *gpio_i2c; unsigned int gpio_i2c_nr; }; + +#if defined(CONFIG_PPC32) +#define smc501_readl(addr) ioread32be((addr)) +#define smc501_writel(val, addr) iowrite32be((val), (addr)) +#else +#define smc501_readl(addr) readl(addr) +#define smc501_writel(val, addr) writel(val, addr) +#endif |