Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Oleksandr G Zhadan | 8b0044f | 2015-04-29 16:57:39 -0400 | [diff] [blame] | 2 | /* |
Oleksandr Zhadan | f51d7fc | 2019-06-17 16:10:23 -0400 | [diff] [blame] | 3 | * Copyright 2013-2019 Arcturus Networks, Inc. |
| 4 | * https://www.arcturusnetworks.com/products/ucp1020/ |
Oleksandr G Zhadan | 8b0044f | 2015-04-29 16:57:39 -0400 | [diff] [blame] | 5 | * by Oleksandr G Zhadan et al. |
Oleksandr G Zhadan | 8b0044f | 2015-04-29 16:57:39 -0400 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __UCP1020_H__ |
| 9 | #define __UCP1020_H__ |
| 10 | |
| 11 | #define GPIO0 31 |
| 12 | #define GPIO1 30 |
| 13 | #define GPIO2 29 |
| 14 | #define GPIO3 28 |
| 15 | #define GPIO4 27 |
| 16 | #define GPIO5 26 |
| 17 | #define GPIO6 25 |
| 18 | #define GPIO7 24 |
| 19 | #define GPIO8 23 |
| 20 | #define GPIO9 22 |
| 21 | #define GPIO10 21 |
| 22 | #define GPIO11 20 |
| 23 | #define GPIO12 19 |
| 24 | #define GPIO13 18 |
| 25 | #define GPIO14 17 |
| 26 | #define GPIO15 16 |
| 27 | #define GPIO_MAX_NUM 16 |
| 28 | |
| 29 | #define GPIO_SDHC_CD GPIO8 |
| 30 | #define GPIO_SDHC_WP GPIO9 |
| 31 | #define GPIO_USB_PCTL0 GPIO10 |
| 32 | #define GPIO_PCIE1_EN GPIO11 |
| 33 | #define GPIO_PCIE2_EN GPIO10 |
| 34 | #define GPIO_USB_PCTL1 GPIO11 |
| 35 | |
| 36 | #define GPIO_WD GPIO15 |
| 37 | |
Oleksandr Zhadan | f51d7fc | 2019-06-17 16:10:23 -0400 | [diff] [blame] | 38 | #ifdef CONFIG_MMC |
Oleksandr G Zhadan | 8b0044f | 2015-04-29 16:57:39 -0400 | [diff] [blame] | 39 | static char *defkargs = "root=/dev/mtdblock1 rootfstype=cramfs ro"; |
| 40 | static char *mmckargs = "root=/dev/mmcblk0p1 rootwait rw"; |
Oleksandr Zhadan | f51d7fc | 2019-06-17 16:10:23 -0400 | [diff] [blame] | 41 | #endif |
Oleksandr G Zhadan | 8b0044f | 2015-04-29 16:57:39 -0400 | [diff] [blame] | 42 | |
| 43 | int get_arc_info(void); |
| 44 | |
| 45 | #endif |