]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: fix PWL macro names
authorandrzej zaborowski <balrog@zabor.org>
Fri, 4 Aug 2006 10:38:44 +0000 (13:38 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 4 Aug 2006 10:38:44 +0000 (13:38 +0300)
Remove "16XX" from the names of PWL-related defines as they are valid
for other models as well.

drivers/video/omap/lcd_osk.c
include/asm-arm/arch-omap/hardware.h
include/asm-arm/arch-omap/omap16xx.h

index 20c4de86bf8a260bce1827cdacb63a6cfc60fdac..cc8bb597ff603e1ba15655977a5e0f558fc29b70 100644 (file)
@@ -44,10 +44,10 @@ static int osk_panel_enable(struct lcd_panel *panel)
        omap_cfg_reg(PWL);
 
        /* Enable PWL unit */
-       omap_writeb(0x01, OMAP16XX_PWL_CLK_ENABLE);
+       omap_writeb(0x01, OMAP_PWL_CLK_ENABLE);
 
        /* Set PWL level */
-       omap_writeb(0xFF, OMAP16XX_PWL_ENABLE);
+       omap_writeb(0xFF, OMAP_PWL_ENABLE);
 
        /* configure GPIO2 as output */
        omap_set_gpio_direction(2, 0);
@@ -61,10 +61,10 @@ static int osk_panel_enable(struct lcd_panel *panel)
 static void osk_panel_disable(struct lcd_panel *panel)
 {
        /* Set PWL level to zero */
-       omap_writeb(0x00, OMAP16XX_PWL_ENABLE);
+       omap_writeb(0x00, OMAP_PWL_ENABLE);
 
        /* Disable PWL unit */
-       omap_writeb(0x00, OMAP16XX_PWL_CLK_ENABLE);
+       omap_writeb(0x00, OMAP_PWL_CLK_ENABLE);
 
        /* set GPIO2 low */
        omap_set_gpio_dataout(2, 0);
index 4d226b2671ff89dd5a6ef7865b13512cac6f8b28..e45c02cb4079e95549ec6d0ea94cc3ab912734e8 100644 (file)
 #define OMAP_LPG2_LCR                  (OMAP_LPG2_BASE + 0x00)
 #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
index f0c7f0fb4dc032e2a8c2303714b49504c3b7235b..04433e65187a35252a0368e711cade65189d4983 100644 (file)
 #define UART3_OSC_12M_SEL       (OMAP_UART3_BASE + 0x4C)
 #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