Commit 0dba2599 authored by andrzej zaborowski's avatar andrzej zaborowski Committed by Tony Lindgren

[PATCH] ARM: OMAP: fix PWL macro names

Remove "16XX" from the names of PWL-related defines as they are valid
for other models as well.
parent da3f63af
...@@ -44,10 +44,10 @@ static int osk_panel_enable(struct lcd_panel *panel) ...@@ -44,10 +44,10 @@ static int osk_panel_enable(struct lcd_panel *panel)
omap_cfg_reg(PWL); omap_cfg_reg(PWL);
/* Enable PWL unit */ /* Enable PWL unit */
omap_writeb(0x01, OMAP16XX_PWL_CLK_ENABLE); omap_writeb(0x01, OMAP_PWL_CLK_ENABLE);
/* Set PWL level */ /* Set PWL level */
omap_writeb(0xFF, OMAP16XX_PWL_ENABLE); omap_writeb(0xFF, OMAP_PWL_ENABLE);
/* configure GPIO2 as output */ /* configure GPIO2 as output */
omap_set_gpio_direction(2, 0); omap_set_gpio_direction(2, 0);
...@@ -61,10 +61,10 @@ static int osk_panel_enable(struct lcd_panel *panel) ...@@ -61,10 +61,10 @@ static int osk_panel_enable(struct lcd_panel *panel)
static void osk_panel_disable(struct lcd_panel *panel) static void osk_panel_disable(struct lcd_panel *panel)
{ {
/* Set PWL level to zero */ /* Set PWL level to zero */
omap_writeb(0x00, OMAP16XX_PWL_ENABLE); omap_writeb(0x00, OMAP_PWL_ENABLE);
/* Disable PWL unit */ /* Disable PWL unit */
omap_writeb(0x00, OMAP16XX_PWL_CLK_ENABLE); omap_writeb(0x00, OMAP_PWL_CLK_ENABLE);
/* set GPIO2 low */ /* set GPIO2 low */
omap_set_gpio_dataout(2, 0); omap_set_gpio_dataout(2, 0);
......
...@@ -267,6 +267,15 @@ ...@@ -267,6 +267,15 @@
#define OMAP_LPG2_LCR (OMAP_LPG2_BASE + 0x00) #define OMAP_LPG2_LCR (OMAP_LPG2_BASE + 0x00)
#define OMAP_LPG2_PMR (OMAP_LPG2_BASE + 0x04) #define OMAP_LPG2_PMR (OMAP_LPG2_BASE + 0x04)
/*
* ----------------------------------------------------------------------------
* Pulse-Width Light
* ----------------------------------------------------------------------------
*/
#define OMAP_PWL_BASE 0xfffb5800
#define OMAP_PWL_ENABLE (OMAP_PWL_BASE + 0x00)
#define OMAP_PWL_CLK_ENABLE (OMAP_PWL_BASE + 0x04)
/* /*
* --------------------------------------------------------------------------- * ---------------------------------------------------------------------------
* Processor specific defines * Processor specific defines
......
...@@ -158,15 +158,6 @@ ...@@ -158,15 +158,6 @@
#define UART3_OSC_12M_SEL (OMAP_UART3_BASE + 0x4C) #define UART3_OSC_12M_SEL (OMAP_UART3_BASE + 0x4C)
#define UART3_MVR (OMAP_UART3_BASE + 0x50) #define UART3_MVR (OMAP_UART3_BASE + 0x50)
/*
* ----------------------------------------------------------------------------
* Pulse-Width Light
* ----------------------------------------------------------------------------
*/
#define OMAP16XX_PWL_BASE (0xfffb5800)
#define OMAP16XX_PWL_ENABLE (OMAP16XX_PWL_BASE + 0x00)
#define OMAP16XX_PWL_CLK_ENABLE (OMAP16XX_PWL_BASE + 0x04)
/* /*
* --------------------------------------------------------------------------- * ---------------------------------------------------------------------------
* Watchdog timer * Watchdog timer
......
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