carl9170 firmware: put power management definitions into the correct place
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 13 Aug 2010 18:56:37 +0000 (20:56 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 13 Aug 2010 18:56:37 +0000 (20:56 +0200)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
include/shared/hw.h

index fa40ebdfc55366a26121bd961ab1b691f5d6295a..33e856bbb5eb9db26459c8b96c8470015b857542 100644 (file)
 
 #define        AR9170_MAC_REG_DMA_TXQX_ADDR_CURR       (AR9170_MAC_REG_BASE + 0xdc0)
 
-#define        AR9170_PWR_REG_BASE                     0x1d4000
-
-#define AR9170_PWR_REG_POWER_STATE             (AR9170_PWR_REG_BASE + 0x000)
-
-#define        AR9170_PWR_REG_ADDA_BB                  (AR9170_PWR_REG_BASE + 0x004)
-#define                AR9170_PWR_ADDA_BB_USB_FIFO_RESET       0x00000005
-#define                AR9170_PWR_ADDA_BB_COLD_RESET           0x00000800
-#define                AR9170_PWR_ADDA_BB_WARM_RESET           0x00000400
-
-#define        AR9170_PWR_REG_CLOCK_SEL                (AR9170_PWR_REG_BASE + 0x008)
-#define                AR9170_PWR_CLK_AHB_40MHZ                0
-#define                AR9170_PWR_CLK_AHB_20_22MHZ             1
-#define                AR9170_PWR_CLK_AHB_40_44MHZ             2
-#define                AR9170_PWR_CLK_AHB_80_88MHZ             3
-#define                AR9170_PWR_CLK_DAC_160_INV_DLY          0x70
-
-#define        AR9170_PWR_REG_CHIP_REVISION            (AR9170_PWR_REG_BASE + 0x010)
-#define AR9170_PWR_REG_PLL_ADDAC               (AR9170_PWR_REG_BASE + 0x014)
-#define        AR9170_PWR_REG_WATCH_DOG_MAGIC          (AR9170_PWR_REG_BASE + 0x020)
-
 /* Random number generator */
 #define        AR9170_RAND_REG_BASE                    0x1d0000
 
 #define        AR9170_INT_REG_FIQ_ENCODE               (AR9170_INT_REG_BASE + 0x020)
 #define        AR9170_INT_INT_IRQ_ENCODE               (AR9170_INT_REG_BASE + 0x024)
 
+/* Power Management */
+#define        AR9170_PWR_REG_BASE                     0x1d4000
+
+#define AR9170_PWR_REG_POWER_STATE             (AR9170_PWR_REG_BASE + 0x000)
+
+#define        AR9170_PWR_REG_ADDA_BB                  (AR9170_PWR_REG_BASE + 0x004)
+#define                AR9170_PWR_ADDA_BB_USB_FIFO_RESET       0x00000005
+#define                AR9170_PWR_ADDA_BB_COLD_RESET           0x00000800
+#define                AR9170_PWR_ADDA_BB_WARM_RESET           0x00000400
+
+#define        AR9170_PWR_REG_CLOCK_SEL                (AR9170_PWR_REG_BASE + 0x008)
+#define                AR9170_PWR_CLK_AHB_40MHZ                0
+#define                AR9170_PWR_CLK_AHB_20_22MHZ             1
+#define                AR9170_PWR_CLK_AHB_40_44MHZ             2
+#define                AR9170_PWR_CLK_AHB_80_88MHZ             3
+#define                AR9170_PWR_CLK_DAC_160_INV_DLY          0x70
+
+#define        AR9170_PWR_REG_CHIP_REVISION            (AR9170_PWR_REG_BASE + 0x010)
+#define AR9170_PWR_REG_PLL_ADDAC               (AR9170_PWR_REG_BASE + 0x014)
+#define        AR9170_PWR_REG_WATCH_DOG_MAGIC          (AR9170_PWR_REG_BASE + 0x020)
+
 /* Faraday USB Controller */
 #define        AR9170_USB_REG_BASE                     0x1e1000