diff options
| author | Liu Ying <Ying.Liu@freescale.com> | 2014-05-28 06:50:12 -0400 |
|---|---|---|
| committer | Thierry Reding <thierry.reding@gmail.com> | 2014-08-25 09:46:36 -0400 |
| commit | 40f260c2cebb464dda6916055112963f1421a111 (patch) | |
| tree | 52e58ee5727787ca79f114d741163bcaf4ede439 /drivers/pwm | |
| parent | bd59bdc898623e6c948a9f900250ce7343cf9012 (diff) | |
pwm: imx: Cleanup indentation for register definitions
This patch contains no logic change to cleanup indentation for register
definitions only.
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Shawn Guo <shawn.guo@freescale.com>
Cc: Lothar Waßmann <LW@KARO-electronics.de>
Cc: linux-pwm@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Acked-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm')
| -rw-r--r-- | drivers/pwm/pwm-imx.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 183225e41d60..fb68534b098c 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c | |||
| @@ -21,24 +21,24 @@ | |||
| 21 | 21 | ||
| 22 | /* i.MX1 and i.MX21 share the same PWM function block: */ | 22 | /* i.MX1 and i.MX21 share the same PWM function block: */ |
| 23 | 23 | ||
| 24 | #define MX1_PWMC 0x00 /* PWM Control Register */ | 24 | #define MX1_PWMC 0x00 /* PWM Control Register */ |
| 25 | #define MX1_PWMS 0x04 /* PWM Sample Register */ | 25 | #define MX1_PWMS 0x04 /* PWM Sample Register */ |
| 26 | #define MX1_PWMP 0x08 /* PWM Period Register */ | 26 | #define MX1_PWMP 0x08 /* PWM Period Register */ |
| 27 | 27 | ||
| 28 | #define MX1_PWMC_EN (1 << 4) | 28 | #define MX1_PWMC_EN (1 << 4) |
| 29 | 29 | ||
| 30 | /* i.MX27, i.MX31, i.MX35 share the same PWM function block: */ | 30 | /* i.MX27, i.MX31, i.MX35 share the same PWM function block: */ |
| 31 | 31 | ||
| 32 | #define MX3_PWMCR 0x00 /* PWM Control Register */ | 32 | #define MX3_PWMCR 0x00 /* PWM Control Register */ |
| 33 | #define MX3_PWMSAR 0x0C /* PWM Sample Register */ | 33 | #define MX3_PWMSAR 0x0C /* PWM Sample Register */ |
| 34 | #define MX3_PWMPR 0x10 /* PWM Period Register */ | 34 | #define MX3_PWMPR 0x10 /* PWM Period Register */ |
| 35 | #define MX3_PWMCR_PRESCALER(x) ((((x) - 1) & 0xFFF) << 4) | 35 | #define MX3_PWMCR_PRESCALER(x) ((((x) - 1) & 0xFFF) << 4) |
| 36 | #define MX3_PWMCR_DOZEEN (1 << 24) | 36 | #define MX3_PWMCR_DOZEEN (1 << 24) |
| 37 | #define MX3_PWMCR_WAITEN (1 << 23) | 37 | #define MX3_PWMCR_WAITEN (1 << 23) |
| 38 | #define MX3_PWMCR_DBGEN (1 << 22) | 38 | #define MX3_PWMCR_DBGEN (1 << 22) |
| 39 | #define MX3_PWMCR_CLKSRC_IPG_HIGH (2 << 16) | 39 | #define MX3_PWMCR_CLKSRC_IPG_HIGH (2 << 16) |
| 40 | #define MX3_PWMCR_CLKSRC_IPG (1 << 16) | 40 | #define MX3_PWMCR_CLKSRC_IPG (1 << 16) |
| 41 | #define MX3_PWMCR_EN (1 << 0) | 41 | #define MX3_PWMCR_EN (1 << 0) |
| 42 | 42 | ||
| 43 | struct imx_chip { | 43 | struct imx_chip { |
| 44 | struct clk *clk_per; | 44 | struct clk *clk_per; |
