1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (C) 2004 IDT Inc.
5 * Copyright (C) 2006 Felix Fietkau <nbd@openwrt.org>
7 #ifndef __ASM_RC32434_RB_H
8 #define __ASM_RC32434_RB_H
10 #include <linux/genhd.h>
12 #define REGBASE 0x18000000
13 #define IDT434_REG_BASE ((volatile void *) KSEG1ADDR(REGBASE))
14 #define UART0BASE 0x58000
16 #define DEV0BASE 0x010000
17 #define DEV0MASK 0x010004
18 #define DEV0C 0x010008
19 #define DEV0T 0x01000C
20 #define DEV1BASE 0x010010
21 #define DEV1MASK 0x010014
22 #define DEV1C 0x010018
23 #define DEV1TC 0x01001C
24 #define DEV2BASE 0x010020
25 #define DEV2MASK 0x010024
26 #define DEV2C 0x010028
27 #define DEV2TC 0x01002C
28 #define DEV3BASE 0x010030
29 #define DEV3MASK 0x010034
30 #define DEV3C 0x010038
31 #define DEV3TC 0x01003C
33 #define BTCOMPARE 0x010044
34 #define GPIOBASE 0x050000
35 /* Offsets relative to GPIOBASE */
39 #define GPIOILEVEL 0x0C
40 #define GPIOISTAT 0x10
41 #define GPIONMIEN 0x14
43 #define LO_WPX (1 << 0)
44 #define LO_ALE (1 << 1)
45 #define LO_CLE (1 << 2)
46 #define LO_CEX (1 << 3)
47 #define LO_FOFF (1 << 5)
48 #define LO_SPICS (1 << 6)
49 #define LO_ULED (1 << 7)
51 #define BIT_TO_MASK(x) (1 << x)
60 struct korina_device
{
63 struct net_device
*dev
;
72 extern void set_latch_u5(unsigned char or_mask
, unsigned char nand_mask
);
73 extern unsigned char get_latch_u5(void);
75 #endif /* __ASM_RC32434_RB_H */