diff options
Diffstat (limited to 'arch/mips/include/asm/netlogic')
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlp-hal/cpucontrol.h | 4 | ||||
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlp-hal/iomap.h | 5 | ||||
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlp-hal/pcibus.h | 76 | ||||
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlp-hal/pic.h | 4 | ||||
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlp-hal/usb.h | 64 | ||||
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlp-hal/xlp.h | 17 | ||||
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlr/bridge.h | 104 | ||||
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlr/flash.h | 55 | ||||
| -rw-r--r-- | arch/mips/include/asm/netlogic/xlr/gpio.h | 59 | 
9 files changed, 355 insertions, 33 deletions
diff --git a/arch/mips/include/asm/netlogic/xlp-hal/cpucontrol.h b/arch/mips/include/asm/netlogic/xlp-hal/cpucontrol.h index bf7d41deb9b..7b63a6b722a 100644 --- a/arch/mips/include/asm/netlogic/xlp-hal/cpucontrol.h +++ b/arch/mips/include/asm/netlogic/xlp-hal/cpucontrol.h @@ -47,7 +47,9 @@  #define CPU_BLOCKID_MAP		10  #define LSU_DEFEATURE		0x304 -#define LSU_CERRLOG_REGID	0x09 +#define LSU_DEBUG_ADDR		0x305 +#define LSU_DEBUG_DATA0		0x306 +#define LSU_CERRLOG_REGID	0x309  #define SCHED_DEFEATURE		0x700  /* Offsets of interest from the 'MAP' Block */ diff --git a/arch/mips/include/asm/netlogic/xlp-hal/iomap.h b/arch/mips/include/asm/netlogic/xlp-hal/iomap.h index 86cc3391e50..2c63f975464 100644 --- a/arch/mips/include/asm/netlogic/xlp-hal/iomap.h +++ b/arch/mips/include/asm/netlogic/xlp-hal/iomap.h @@ -36,6 +36,9 @@  #define __NLM_HAL_IOMAP_H__  #define XLP_DEFAULT_IO_BASE             0x18000000 +#define XLP_DEFAULT_PCI_ECFG_BASE	XLP_DEFAULT_IO_BASE +#define XLP_DEFAULT_PCI_CFG_BASE	0x1c000000 +  #define NMI_BASE			0xbfc00000  #define	XLP_IO_CLK			133333333 @@ -129,7 +132,7 @@  #define	PCI_DEVICE_ID_NLM_PIC		0x1003  #define	PCI_DEVICE_ID_NLM_PCIE		0x1004  #define	PCI_DEVICE_ID_NLM_EHCI		0x1007 -#define	PCI_DEVICE_ID_NLM_ILK		0x1008 +#define	PCI_DEVICE_ID_NLM_OHCI		0x1008  #define	PCI_DEVICE_ID_NLM_NAE		0x1009  #define	PCI_DEVICE_ID_NLM_POE		0x100A  #define	PCI_DEVICE_ID_NLM_FMN		0x100B diff --git a/arch/mips/include/asm/netlogic/xlp-hal/pcibus.h b/arch/mips/include/asm/netlogic/xlp-hal/pcibus.h new file mode 100644 index 00000000000..66c323d1bd7 --- /dev/null +++ b/arch/mips/include/asm/netlogic/xlp-hal/pcibus.h @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2003-2012 Broadcom Corporation + * All Rights Reserved + * + * This software is available to you under a choice of one of two + * licenses.  You may choose to be licensed under the terms of the GNU + * General Public License (GPL) Version 2, available from the file + * COPYING in the main directory of this source tree, or the Broadcom + * license below: + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + *    notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *    notice, this list of conditions and the following disclaimer in + *    the documentation and/or other materials provided with the + *    distribution. + * + * THIS SOFTWARE IS PROVIDED BY BROADCOM ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef __NLM_HAL_PCIBUS_H__ +#define	__NLM_HAL_PCIBUS_H__ + +/* PCIE Memory and IO regions */ +#define	PCIE_MEM_BASE			0xd0000000ULL +#define	PCIE_MEM_LIMIT			0xdfffffffULL +#define	PCIE_IO_BASE			0x14000000ULL +#define	PCIE_IO_LIMIT			0x15ffffffULL + +#define	PCIE_BRIDGE_CMD			0x1 +#define	PCIE_BRIDGE_MSI_CAP		0x14 +#define	PCIE_BRIDGE_MSI_ADDRL		0x15 +#define	PCIE_BRIDGE_MSI_ADDRH		0x16 +#define	PCIE_BRIDGE_MSI_DATA		0x17 + +/* XLP Global PCIE configuration space registers */ +#define	PCIE_BYTE_SWAP_MEM_BASE		0x247 +#define	PCIE_BYTE_SWAP_MEM_LIM		0x248 +#define	PCIE_BYTE_SWAP_IO_BASE		0x249 +#define	PCIE_BYTE_SWAP_IO_LIM		0x24A +#define	PCIE_MSI_STATUS			0x25A +#define	PCIE_MSI_EN			0x25B +#define	PCIE_INT_EN0			0x261 + +/* PCIE_MSI_EN */ +#define	PCIE_MSI_VECTOR_INT_EN		0xFFFFFFFF + +/* PCIE_INT_EN0 */ +#define	PCIE_MSI_INT_EN			(1 << 9) + +#ifndef __ASSEMBLY__ + +#define	nlm_read_pcie_reg(b, r)		nlm_read_reg(b, r) +#define	nlm_write_pcie_reg(b, r, v)	nlm_write_reg(b, r, v) +#define	nlm_get_pcie_base(node, inst)	\ +			nlm_pcicfg_base(XLP_IO_PCIE_OFFSET(node, inst)) +#define	nlm_get_pcie_regbase(node, inst)	\ +			(nlm_get_pcie_base(node, inst) + XLP_IO_PCI_HDRSZ) + +int xlp_pcie_link_irt(int link); +#endif +#endif /* __NLM_HAL_PCIBUS_H__ */ diff --git a/arch/mips/include/asm/netlogic/xlp-hal/pic.h b/arch/mips/include/asm/netlogic/xlp-hal/pic.h index b6628f7ccf7..ad8b80233a6 100644 --- a/arch/mips/include/asm/netlogic/xlp-hal/pic.h +++ b/arch/mips/include/asm/netlogic/xlp-hal/pic.h @@ -201,7 +201,11 @@  #define PIC_NUM_USB_IRTS		6  #define PIC_IRT_USB_0_INDEX		115  #define PIC_IRT_EHCI_0_INDEX		115 +#define PIC_IRT_OHCI_0_INDEX		116 +#define PIC_IRT_OHCI_1_INDEX		117  #define PIC_IRT_EHCI_1_INDEX		118 +#define PIC_IRT_OHCI_2_INDEX		119 +#define PIC_IRT_OHCI_3_INDEX		120  #define PIC_IRT_USB_INDEX(num)		((num) + PIC_IRT_USB_0_INDEX)  /* 115 to 120 */  #define PIC_IRT_GDX_INDEX		121 diff --git a/arch/mips/include/asm/netlogic/xlp-hal/usb.h b/arch/mips/include/asm/netlogic/xlp-hal/usb.h new file mode 100644 index 00000000000..a9cd350dfb6 --- /dev/null +++ b/arch/mips/include/asm/netlogic/xlp-hal/usb.h @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2003-2012 Broadcom Corporation + * All Rights Reserved + * + * This software is available to you under a choice of one of two + * licenses.  You may choose to be licensed under the terms of the GNU + * General Public License (GPL) Version 2, available from the file + * COPYING in the main directory of this source tree, or the Broadcom + * license below: + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + *    notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *    notice, this list of conditions and the following disclaimer in + *    the documentation and/or other materials provided with the + *    distribution. + * + * THIS SOFTWARE IS PROVIDED BY BROADCOM ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef __NLM_HAL_USB_H__ +#define __NLM_HAL_USB_H__ + +#define USB_CTL_0			0x01 +#define USB_PHY_0			0x0A +#define USB_PHY_RESET			0x01 +#define USB_PHY_PORT_RESET_0		0x10 +#define USB_PHY_PORT_RESET_1		0x20 +#define USB_CONTROLLER_RESET		0x01 +#define USB_INT_STATUS			0x0E +#define USB_INT_EN			0x0F +#define USB_PHY_INTERRUPT_EN		0x01 +#define USB_OHCI_INTERRUPT_EN		0x02 +#define USB_OHCI_INTERRUPT1_EN		0x04 +#define USB_OHCI_INTERRUPT2_EN		0x08 +#define USB_CTRL_INTERRUPT_EN		0x10 + +#ifndef __ASSEMBLY__ + +#define nlm_read_usb_reg(b, r)			nlm_read_reg(b, r) +#define nlm_write_usb_reg(b, r, v)		nlm_write_reg(b, r, v) +#define nlm_get_usb_pcibase(node, inst)		\ +	nlm_pcicfg_base(XLP_IO_USB_OFFSET(node, inst)) +#define nlm_get_usb_hcd_base(node, inst)	\ +	nlm_xkphys_map_pcibar0(nlm_get_usb_pcibase(node, inst)) +#define nlm_get_usb_regbase(node, inst)		\ +	(nlm_get_usb_pcibase(node, inst) + XLP_IO_PCI_HDRSZ) + +#endif +#endif /* __NLM_HAL_USB_H__ */ diff --git a/arch/mips/include/asm/netlogic/xlp-hal/xlp.h b/arch/mips/include/asm/netlogic/xlp-hal/xlp.h index 1540588e396..7e47209327a 100644 --- a/arch/mips/include/asm/netlogic/xlp-hal/xlp.h +++ b/arch/mips/include/asm/netlogic/xlp-hal/xlp.h @@ -35,8 +35,21 @@  #ifndef _NLM_HAL_XLP_H  #define _NLM_HAL_XLP_H -#define PIC_UART_0_IRQ           17 -#define PIC_UART_1_IRQ           18 +#define PIC_UART_0_IRQ			17 +#define PIC_UART_1_IRQ			18 +#define PIC_PCIE_LINK_0_IRQ		19 +#define PIC_PCIE_LINK_1_IRQ		20 +#define PIC_PCIE_LINK_2_IRQ		21 +#define PIC_PCIE_LINK_3_IRQ		22 +#define PIC_EHCI_0_IRQ			23 +#define PIC_EHCI_1_IRQ			24 +#define PIC_OHCI_0_IRQ			25 +#define PIC_OHCI_1_IRQ			26 +#define PIC_OHCI_2_IRQ			27 +#define PIC_OHCI_3_IRQ			28 +#define PIC_MMC_IRQ			29 +#define PIC_I2C_0_IRQ			30 +#define PIC_I2C_1_IRQ			31  #ifndef __ASSEMBLY__ diff --git a/arch/mips/include/asm/netlogic/xlr/bridge.h b/arch/mips/include/asm/netlogic/xlr/bridge.h new file mode 100644 index 00000000000..2d02428c4f1 --- /dev/null +++ b/arch/mips/include/asm/netlogic/xlr/bridge.h @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2003-2012 Broadcom Corporation + * All Rights Reserved + * + * This software is available to you under a choice of one of two + * licenses.  You may choose to be licensed under the terms of the GNU + * General Public License (GPL) Version 2, available from the file + * COPYING in the main directory of this source tree, or the Broadcom + * license below: + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + *    notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *    notice, this list of conditions and the following disclaimer in + *    the documentation and/or other materials provided with the + *    distribution. + * + * THIS SOFTWARE IS PROVIDED BY BROADCOM ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _ASM_NLM_BRIDGE_H_ +#define _ASM_NLM_BRIDGE_H_ + +#define BRIDGE_DRAM_0_BAR		0 +#define BRIDGE_DRAM_1_BAR		1 +#define BRIDGE_DRAM_2_BAR		2 +#define BRIDGE_DRAM_3_BAR		3 +#define BRIDGE_DRAM_4_BAR		4 +#define BRIDGE_DRAM_5_BAR		5 +#define BRIDGE_DRAM_6_BAR		6 +#define BRIDGE_DRAM_7_BAR		7 +#define BRIDGE_DRAM_CHN_0_MTR_0_BAR	8 +#define BRIDGE_DRAM_CHN_0_MTR_1_BAR	9 +#define BRIDGE_DRAM_CHN_0_MTR_2_BAR	10 +#define BRIDGE_DRAM_CHN_0_MTR_3_BAR	11 +#define BRIDGE_DRAM_CHN_0_MTR_4_BAR	12 +#define BRIDGE_DRAM_CHN_0_MTR_5_BAR	13 +#define BRIDGE_DRAM_CHN_0_MTR_6_BAR	14 +#define BRIDGE_DRAM_CHN_0_MTR_7_BAR	15 +#define BRIDGE_DRAM_CHN_1_MTR_0_BAR	16 +#define BRIDGE_DRAM_CHN_1_MTR_1_BAR	17 +#define BRIDGE_DRAM_CHN_1_MTR_2_BAR	18 +#define BRIDGE_DRAM_CHN_1_MTR_3_BAR	19 +#define BRIDGE_DRAM_CHN_1_MTR_4_BAR	20 +#define BRIDGE_DRAM_CHN_1_MTR_5_BAR	21 +#define BRIDGE_DRAM_CHN_1_MTR_6_BAR	22 +#define BRIDGE_DRAM_CHN_1_MTR_7_BAR	23 +#define BRIDGE_CFG_BAR			24 +#define BRIDGE_PHNX_IO_BAR		25 +#define BRIDGE_FLASH_BAR		26 +#define BRIDGE_SRAM_BAR			27 +#define BRIDGE_HTMEM_BAR		28 +#define BRIDGE_HTINT_BAR		29 +#define BRIDGE_HTPIC_BAR		30 +#define BRIDGE_HTSM_BAR			31 +#define BRIDGE_HTIO_BAR			32 +#define BRIDGE_HTCFG_BAR		33 +#define BRIDGE_PCIXCFG_BAR		34 +#define BRIDGE_PCIXMEM_BAR		35 +#define BRIDGE_PCIXIO_BAR		36 +#define BRIDGE_DEVICE_MASK		37 +#define BRIDGE_AERR_INTR_LOG1		38 +#define BRIDGE_AERR_INTR_LOG2		39 +#define BRIDGE_AERR_INTR_LOG3		40 +#define BRIDGE_AERR_DEV_STAT		41 +#define BRIDGE_AERR1_LOG1		42 +#define BRIDGE_AERR1_LOG2		43 +#define BRIDGE_AERR1_LOG3		44 +#define BRIDGE_AERR1_DEV_STAT		45 +#define BRIDGE_AERR_INTR_EN		46 +#define BRIDGE_AERR_UPG			47 +#define BRIDGE_AERR_CLEAR		48 +#define BRIDGE_AERR1_CLEAR		49 +#define BRIDGE_SBE_COUNTS		50 +#define BRIDGE_DBE_COUNTS		51 +#define BRIDGE_BITERR_INT_EN		52 + +#define BRIDGE_SYS2IO_CREDITS		53 +#define BRIDGE_EVNT_CNT_CTRL1		54 +#define BRIDGE_EVNT_COUNTER1		55 +#define BRIDGE_EVNT_CNT_CTRL2		56 +#define BRIDGE_EVNT_COUNTER2		57 +#define BRIDGE_RESERVED1		58 + +#define BRIDGE_DEFEATURE		59 +#define BRIDGE_SCRATCH0			60 +#define BRIDGE_SCRATCH1			61 +#define BRIDGE_SCRATCH2			62 +#define BRIDGE_SCRATCH3			63 + +#endif diff --git a/arch/mips/include/asm/netlogic/xlr/flash.h b/arch/mips/include/asm/netlogic/xlr/flash.h new file mode 100644 index 00000000000..f8aca5472b6 --- /dev/null +++ b/arch/mips/include/asm/netlogic/xlr/flash.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2003-2012 Broadcom Corporation + * All Rights Reserved + * + * This software is available to you under a choice of one of two + * licenses.  You may choose to be licensed under the terms of the GNU + * General Public License (GPL) Version 2, available from the file + * COPYING in the main directory of this source tree, or the Broadcom + * license below: + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + *    notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *    notice, this list of conditions and the following disclaimer in + *    the documentation and/or other materials provided with the + *    distribution. + * + * THIS SOFTWARE IS PROVIDED BY BROADCOM ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _ASM_NLM_FLASH_H_ +#define _ASM_NLM_FLASH_H_ + +#define FLASH_CSBASE_ADDR(cs)		(cs) +#define FLASH_CSADDR_MASK(cs)		(0x10 + (cs)) +#define FLASH_CSDEV_PARM(cs)		(0x20 + (cs)) +#define FLASH_CSTIME_PARMA(cs)		(0x30 + (cs)) +#define FLASH_CSTIME_PARMB(cs)		(0x40 + (cs)) + +#define FLASH_INT_MASK			0x50 +#define FLASH_INT_STATUS		0x60 +#define FLASH_ERROR_STATUS		0x70 +#define FLASH_ERROR_ADDR		0x80 + +#define FLASH_NAND_CLE(cs)		(0x90 + (cs)) +#define FLASH_NAND_ALE(cs)		(0xa0 + (cs)) + +#define FLASH_NAND_CSDEV_PARAM		0x000041e6 +#define FLASH_NAND_CSTIME_PARAMA	0x4f400e22 +#define FLASH_NAND_CSTIME_PARAMB	0x000083cf + +#endif diff --git a/arch/mips/include/asm/netlogic/xlr/gpio.h b/arch/mips/include/asm/netlogic/xlr/gpio.h index 51f6ad4aeb1..8492e835b11 100644 --- a/arch/mips/include/asm/netlogic/xlr/gpio.h +++ b/arch/mips/include/asm/netlogic/xlr/gpio.h @@ -35,39 +35,40 @@  #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  | 
