aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/mach-mxs.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2013-03-29 01:53:11 -0400
committerShawn Guo <shawn.guo@linaro.org>2013-04-01 08:42:23 -0400
commit0b48d3a6fbac641d1da12bbe202ec82ff0c89148 (patch)
treec35489ed45797c3d3aa49c9b59d6cb4df47e0cbc /arch/arm/mach-mxs/mach-mxs.c
parent39490ab0ff49138c8613d95ea13b79c8159f306f (diff)
ARM: mxs: remove unused headers
Most of the stuff in the headers are used nowhere now. Move a few things that are useful for mach-mxs.c into there and remove the headers. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-mxs/mach-mxs.c')
-rw-r--r--arch/arm/mach-mxs/mach-mxs.c29
1 files changed, 27 insertions, 2 deletions
diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c
index a6e1ccb05066..16870bf853b8 100644
--- a/arch/arm/mach-mxs/mach-mxs.c
+++ b/arch/arm/mach-mxs/mach-mxs.c
@@ -31,8 +31,33 @@
31#include <asm/mach/map.h> 31#include <asm/mach/map.h>
32#include <asm/mach/time.h> 32#include <asm/mach/time.h>
33#include <asm/system_misc.h> 33#include <asm/system_misc.h>
34#include <mach/digctl.h> 34
35#include <mach/mxs.h> 35/* MXS DIGCTL SAIF CLKMUX */
36#define MXS_DIGCTL_SAIF_CLKMUX_DIRECT 0x0
37#define MXS_DIGCTL_SAIF_CLKMUX_CROSSINPUT 0x1
38#define MXS_DIGCTL_SAIF_CLKMUX_EXTMSTR0 0x2
39#define MXS_DIGCTL_SAIF_CLKMUX_EXTMSTR1 0x3
40
41#define MXS_GPIO_NR(bank, nr) ((bank) * 32 + (nr))
42
43#define MXS_SET_ADDR 0x4
44#define MXS_CLR_ADDR 0x8
45#define MXS_TOG_ADDR 0xc
46
47static inline void __mxs_setl(u32 mask, void __iomem *reg)
48{
49 __raw_writel(mask, reg + MXS_SET_ADDR);
50}
51
52static inline void __mxs_clrl(u32 mask, void __iomem *reg)
53{
54 __raw_writel(mask, reg + MXS_CLR_ADDR);
55}
56
57static inline void __mxs_togl(u32 mask, void __iomem *reg)
58{
59 __raw_writel(mask, reg + MXS_TOG_ADDR);
60}
36 61
37static struct fb_videomode mx23evk_video_modes[] = { 62static struct fb_videomode mx23evk_video_modes[] = {
38 { 63 {