Michael Schwingen | aebf00f | 2008-01-16 19:51:14 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2007 |
| 3 | * Michael Schwingen, michael@schwingen.org |
| 4 | * |
| 5 | * hardware register definitions for the AcTux-2 board. |
| 6 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Michael Schwingen | aebf00f | 2008-01-16 19:51:14 +0100 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef _ACTUX2_HW_H |
| 11 | #define _ACTUX2_HW_H |
| 12 | |
| 13 | /* 0 = LED off,1 = green, 2 = red, 3 = orange */ |
| 14 | #define ACTUX2_LED1(a) writeb((a ? 2 : 0), IXP425_EXP_BUS_CS7_BASE_PHYS + 0) |
| 15 | #define ACTUX2_LED2(a) writeb((a ? 2 : 0), IXP425_EXP_BUS_CS7_BASE_PHYS + 1) |
| 16 | #define ACTUX2_LED3(a) writeb((a ? 0 : 2), IXP425_EXP_BUS_CS7_BASE_PHYS + 2) |
| 17 | #define ACTUX2_LED4(a) writeb((a ? 0 : 2), IXP425_EXP_BUS_CS7_BASE_PHYS + 3) |
| 18 | |
| 19 | #define ACTUX2_DBG_PORT IXP425_EXP_BUS_CS5_BASE_PHYS |
| 20 | #define ACTUX2_BOARDREL (readb(IXP425_EXP_BUS_CS6_BASE_PHYS) & 0x0F) |
| 21 | #define ACTUX2_OPTION (readb(IXP425_EXP_BUS_CS6_BASE_PHYS) & 0xF0) |
| 22 | |
| 23 | /* |
| 24 | * GPIO settings |
| 25 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 26 | #define CONFIG_SYS_GPIO_DBGINT 0 |
| 27 | #define CONFIG_SYS_GPIO_ETHINT 1 |
| 28 | #define CONFIG_SYS_GPIO_ETHRST 2 /* Out */ |
| 29 | #define CONFIG_SYS_GPIO_LED5_GN 3 /* Out */ |
| 30 | #define CONFIG_SYS_GPIO_UNUSED4 4 |
| 31 | #define CONFIG_SYS_GPIO_UNUSED5 5 |
| 32 | #define CONFIG_SYS_GPIO_DSR 6 /* Out */ |
| 33 | #define CONFIG_SYS_GPIO_DCD 7 /* Out */ |
| 34 | #define CONFIG_SYS_GPIO_IPAC_INT 8 |
| 35 | #define CONFIG_SYS_GPIO_DBGJUMPER 9 |
| 36 | #define CONFIG_SYS_GPIO_BUTTON1 10 |
| 37 | #define CONFIG_SYS_GPIO_DBGSENSE 11 |
| 38 | #define CONFIG_SYS_GPIO_DTR 12 |
| 39 | #define CONFIG_SYS_GPIO_IORST 13 /* Out */ |
| 40 | #define CONFIG_SYS_GPIO_PCI_CLK 14 /* Out */ |
| 41 | #define CONFIG_SYS_GPIO_EXTBUS_CLK 15 /* Out */ |
Michael Schwingen | aebf00f | 2008-01-16 19:51:14 +0100 | [diff] [blame] | 42 | |
| 43 | #endif |