]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MIPS: Netlogic: Remove NETLOGIC_ prefix
authorJayachandran C <jayachandranc@netlogicmicro.com>
Tue, 24 Jul 2012 15:28:53 +0000 (17:28 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 24 Jul 2012 15:28:53 +0000 (17:28 +0200)
Remove NETLOGIC_ prefix from gpio register definitions, this will
bring it in-line with the other Netlogic headers.

Having NETLOGIC prefix here is misleading because these are XLR/XLS
specific register definitions.

Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3754/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/netlogic/xlr/gpio.h
arch/mips/netlogic/xlr/setup.c

index 51f6ad4aeb14397284f9ac47821293335b2641a7..8492e835b11072b8e054a6ea6948f8b22d5be6a6 100644 (file)
 #ifndef _ASM_NLM_GPIO_H
 #define _ASM_NLM_GPIO_H
 
-#define NETLOGIC_GPIO_INT_EN_REG               0
-#define NETLOGIC_GPIO_INPUT_INVERSION_REG      1
-#define NETLOGIC_GPIO_IO_DIR_REG               2
-#define NETLOGIC_GPIO_IO_DATA_WR_REG           3
-#define NETLOGIC_GPIO_IO_DATA_RD_REG           4
+#define GPIO_INT_EN_REG                        0
+#define GPIO_INPUT_INVERSION_REG       1
+#define GPIO_IO_DIR_REG                        2
+#define GPIO_IO_DATA_WR_REG            3
+#define GPIO_IO_DATA_RD_REG            4
 
-#define NETLOGIC_GPIO_SWRESET_REG              8
-#define NETLOGIC_GPIO_DRAM1_CNTRL_REG          9
-#define NETLOGIC_GPIO_DRAM1_RATIO_REG          10
-#define NETLOGIC_GPIO_DRAM1_RESET_REG          11
-#define NETLOGIC_GPIO_DRAM1_STATUS_REG         12
-#define NETLOGIC_GPIO_DRAM2_CNTRL_REG          13
-#define NETLOGIC_GPIO_DRAM2_RATIO_REG          14
-#define NETLOGIC_GPIO_DRAM2_RESET_REG          15
-#define NETLOGIC_GPIO_DRAM2_STATUS_REG         16
+#define GPIO_SWRESET_REG               8
+#define GPIO_DRAM1_CNTRL_REG           9
+#define GPIO_DRAM1_RATIO_REG           10
+#define GPIO_DRAM1_RESET_REG           11
+#define GPIO_DRAM1_STATUS_REG          12
+#define GPIO_DRAM2_CNTRL_REG           13
+#define GPIO_DRAM2_RATIO_REG           14
+#define GPIO_DRAM2_RESET_REG           15
+#define GPIO_DRAM2_STATUS_REG          16
 
-#define NETLOGIC_GPIO_PWRON_RESET_CFG_REG      21
-#define NETLOGIC_GPIO_BIST_ALL_GO_STATUS_REG   24
-#define NETLOGIC_GPIO_BIST_CPU_GO_STATUS_REG   25
-#define NETLOGIC_GPIO_BIST_DEV_GO_STATUS_REG   26
+#define GPIO_PWRON_RESET_CFG_REG       21
+#define GPIO_BIST_ALL_GO_STATUS_REG    24
+#define GPIO_BIST_CPU_GO_STATUS_REG    25
+#define GPIO_BIST_DEV_GO_STATUS_REG    26
 
-#define NETLOGIC_GPIO_FUSE_BANK_REG            35
-#define NETLOGIC_GPIO_CPU_RESET_REG            40
-#define NETLOGIC_GPIO_RNG_REG                  43
+#define GPIO_FUSE_BANK_REG             35
+#define GPIO_CPU_RESET_REG             40
+#define GPIO_RNG_REG                   43
 
-#define NETLOGIC_PWRON_RESET_PCMCIA_BOOT       17
-#define NETLOGIC_GPIO_LED_BITMAP       0x1700000
-#define NETLOGIC_GPIO_LED_0_SHIFT              20
-#define NETLOGIC_GPIO_LED_1_SHIFT              24
+#define PWRON_RESET_PCMCIA_BOOT                17
 
-#define NETLOGIC_GPIO_LED_OUTPUT_CODE_RESET    0x01
-#define NETLOGIC_GPIO_LED_OUTPUT_CODE_HARD_RESET 0x02
-#define NETLOGIC_GPIO_LED_OUTPUT_CODE_SOFT_RESET 0x03
-#define NETLOGIC_GPIO_LED_OUTPUT_CODE_MAIN     0x04
+#define GPIO_LED_BITMAP                        0x1700000
+#define GPIO_LED_0_SHIFT               20
+#define GPIO_LED_1_SHIFT               24
+
+#define GPIO_LED_OUTPUT_CODE_RESET     0x01
+#define GPIO_LED_OUTPUT_CODE_HARD_RESET 0x02
+#define GPIO_LED_OUTPUT_CODE_SOFT_RESET 0x03
+#define GPIO_LED_OUTPUT_CODE_MAIN      0x04
 
 #endif
index c9d066dedc4ec4f79601bd3a7cd1a60be4316f5b..81b1d311834f521bbd9c1b15d2bf7dbed1568011 100644 (file)
@@ -85,7 +85,7 @@ static void nlm_linux_exit(void)
 
        gpiobase = nlm_mmio_base(NETLOGIC_IO_GPIO_OFFSET);
        /* trigger a chip reset by writing 1 to GPIO_SWRESET_REG */
-       nlm_write_reg(gpiobase, NETLOGIC_GPIO_SWRESET_REG, 1);
+       nlm_write_reg(gpiobase, GPIO_SWRESET_REG, 1);
        for ( ; ; )
                cpu_wait();
 }