diff options
author | Kevin Cernekee <cernekee@gmail.com> | 2012-06-23 00:14:54 -0400 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-08-30 14:15:52 -0400 |
commit | 18ec0e707917bbe9bb77555e578ec564c8a2abca (patch) | |
tree | 6b8bacc5b1c4283687076c41c1c2135a04601079 /arch | |
parent | 6f9423454aa68bdf64099f3a30fafb2c64b25cda (diff) |
MIPS: BCM63XX: Add register definitions for USBD dependencies
The USB 2.0 device depends on some functionality in other blocks, such
as GPIO and USBH. Add those register definitions here.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/4025/
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h index e104ddb694a8..2b59ae4a9427 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h | |||
@@ -184,9 +184,9 @@ enum bcm63xx_regs_set { | |||
184 | #define BCM_6328_SPI_BASE (0xdeadbeef) | 184 | #define BCM_6328_SPI_BASE (0xdeadbeef) |
185 | #define BCM_6328_UDC0_BASE (0xdeadbeef) | 185 | #define BCM_6328_UDC0_BASE (0xdeadbeef) |
186 | #define BCM_6328_USBDMA_BASE (0xdeadbeef) | 186 | #define BCM_6328_USBDMA_BASE (0xdeadbeef) |
187 | #define BCM_6328_OHCI0_BASE (0xdeadbeef) | 187 | #define BCM_6328_OHCI0_BASE (0xb0002600) |
188 | #define BCM_6328_OHCI_PRIV_BASE (0xdeadbeef) | 188 | #define BCM_6328_OHCI_PRIV_BASE (0xdeadbeef) |
189 | #define BCM_6328_USBH_PRIV_BASE (0xdeadbeef) | 189 | #define BCM_6328_USBH_PRIV_BASE (0xb0002700) |
190 | #define BCM_6328_MPI_BASE (0xdeadbeef) | 190 | #define BCM_6328_MPI_BASE (0xdeadbeef) |
191 | #define BCM_6328_PCMCIA_BASE (0xdeadbeef) | 191 | #define BCM_6328_PCMCIA_BASE (0xdeadbeef) |
192 | #define BCM_6328_PCIE_BASE (0xb0e40000) | 192 | #define BCM_6328_PCIE_BASE (0xb0e40000) |
@@ -199,7 +199,7 @@ enum bcm63xx_regs_set { | |||
199 | #define BCM_6328_ENETDMAC_BASE (0xb000da00) | 199 | #define BCM_6328_ENETDMAC_BASE (0xb000da00) |
200 | #define BCM_6328_ENETDMAS_BASE (0xb000dc00) | 200 | #define BCM_6328_ENETDMAS_BASE (0xb000dc00) |
201 | #define BCM_6328_ENETSW_BASE (0xb0e00000) | 201 | #define BCM_6328_ENETSW_BASE (0xb0e00000) |
202 | #define BCM_6328_EHCI0_BASE (0x10002500) | 202 | #define BCM_6328_EHCI0_BASE (0xb0002500) |
203 | #define BCM_6328_SDRAM_BASE (0xdeadbeef) | 203 | #define BCM_6328_SDRAM_BASE (0xdeadbeef) |
204 | #define BCM_6328_MEMC_BASE (0xdeadbeef) | 204 | #define BCM_6328_MEMC_BASE (0xdeadbeef) |
205 | #define BCM_6328_DDR_BASE (0xb0003000) | 205 | #define BCM_6328_DDR_BASE (0xb0003000) |
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h index 7a101125e482..29654aeea9a7 100644 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | |||
@@ -543,6 +543,12 @@ | |||
543 | #define GPIO_MODE_6368_SPI_SSN5 (1 << 31) | 543 | #define GPIO_MODE_6368_SPI_SSN5 (1 << 31) |
544 | 544 | ||
545 | 545 | ||
546 | #define GPIO_PINMUX_OTHR_REG 0x24 | ||
547 | #define GPIO_PINMUX_OTHR_6328_USB_SHIFT 12 | ||
548 | #define GPIO_PINMUX_OTHR_6328_USB_MASK (3 << GPIO_PINMUX_OTHR_6328_USB_SHIFT) | ||
549 | #define GPIO_PINMUX_OTHR_6328_USB_HOST (1 << GPIO_PINMUX_OTHR_6328_USB_SHIFT) | ||
550 | #define GPIO_PINMUX_OTHR_6328_USB_DEV (2 << GPIO_PINMUX_OTHR_6328_USB_SHIFT) | ||
551 | |||
546 | #define GPIO_BASEMODE_6368_REG 0x38 | 552 | #define GPIO_BASEMODE_6368_REG 0x38 |
547 | #define GPIO_BASEMODE_6368_UART2 0x1 | 553 | #define GPIO_BASEMODE_6368_UART2 0x1 |
548 | #define GPIO_BASEMODE_6368_GPIO 0x0 | 554 | #define GPIO_BASEMODE_6368_GPIO 0x0 |
@@ -778,6 +784,8 @@ | |||
778 | #define USBH_PRIV_SWAP_6358_REG 0x0 | 784 | #define USBH_PRIV_SWAP_6358_REG 0x0 |
779 | #define USBH_PRIV_SWAP_6368_REG 0x1c | 785 | #define USBH_PRIV_SWAP_6368_REG 0x1c |
780 | 786 | ||
787 | #define USBH_PRIV_SWAP_USBD_SHIFT 6 | ||
788 | #define USBH_PRIV_SWAP_USBD_MASK (1 << USBH_PRIV_SWAP_USBD_SHIFT) | ||
781 | #define USBH_PRIV_SWAP_EHCI_ENDN_SHIFT 4 | 789 | #define USBH_PRIV_SWAP_EHCI_ENDN_SHIFT 4 |
782 | #define USBH_PRIV_SWAP_EHCI_ENDN_MASK (1 << USBH_PRIV_SWAP_EHCI_ENDN_SHIFT) | 790 | #define USBH_PRIV_SWAP_EHCI_ENDN_MASK (1 << USBH_PRIV_SWAP_EHCI_ENDN_SHIFT) |
783 | #define USBH_PRIV_SWAP_EHCI_DATA_SHIFT 3 | 791 | #define USBH_PRIV_SWAP_EHCI_DATA_SHIFT 3 |