blob: 1b527cdb1cf68c2280e1923f541bd5fa15eb5cc4 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Oleksandr G Zhadan8b0044f2015-04-29 16:57:39 -04002/*
Oleksandr Zhadanf51d7fc2019-06-17 16:10:23 -04003 * Copyright 2013-2019 Arcturus Networks, Inc.
4 * https://www.arcturusnetworks.com/products/ucp1020/
Oleksandr G Zhadan8b0044f2015-04-29 16:57:39 -04005 * by Oleksandr G Zhadan et al.
Oleksandr G Zhadan8b0044f2015-04-29 16:57:39 -04006 */
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 Zhadanf51d7fc2019-06-17 16:10:23 -040038#ifdef CONFIG_MMC
Oleksandr G Zhadan8b0044f2015-04-29 16:57:39 -040039static char *defkargs = "root=/dev/mtdblock1 rootfstype=cramfs ro";
40static char *mmckargs = "root=/dev/mmcblk0p1 rootwait rw";
Oleksandr Zhadanf51d7fc2019-06-17 16:10:23 -040041#endif
Oleksandr G Zhadan8b0044f2015-04-29 16:57:39 -040042
43int get_arc_info(void);
44
45#endif