~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/unicore32/include/mach/regs-gpio.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * PKUnity General-Purpose Input/Output (GPIO) Registers
 
3
 */
 
4
 
 
5
/*
 
6
 * Voltage Status Reg GPIO_GPLR.
 
7
 */
 
8
#define GPIO_GPLR       (PKUNITY_GPIO_BASE + 0x0000)
 
9
/*
 
10
 * Pin Direction Reg GPIO_GPDR.
 
11
 */
 
12
#define GPIO_GPDR       (PKUNITY_GPIO_BASE + 0x0004)
 
13
/*
 
14
 * Output Pin Set Reg GPIO_GPSR.
 
15
 */
 
16
#define GPIO_GPSR       (PKUNITY_GPIO_BASE + 0x0008)
 
17
/*
 
18
 * Output Pin Clear Reg GPIO_GPCR.
 
19
 */
 
20
#define GPIO_GPCR       (PKUNITY_GPIO_BASE + 0x000C)
 
21
/*
 
22
 * Raise Edge Detect Reg GPIO_GRER.
 
23
 */
 
24
#define GPIO_GRER       (PKUNITY_GPIO_BASE + 0x0010)
 
25
/*
 
26
 * Fall Edge Detect Reg GPIO_GFER.
 
27
 */
 
28
#define GPIO_GFER       (PKUNITY_GPIO_BASE + 0x0014)
 
29
/*
 
30
 * Edge Status Reg GPIO_GEDR.
 
31
 */
 
32
#define GPIO_GEDR       (PKUNITY_GPIO_BASE + 0x0018)
 
33
/*
 
34
 * Sepcial Voltage Detect Reg GPIO_GPIR.
 
35
 */
 
36
#define GPIO_GPIR       (PKUNITY_GPIO_BASE + 0x0020)
 
37
 
 
38
#define GPIO_MIN        (0)
 
39
#define GPIO_MAX        (27)
 
40
 
 
41
#define GPIO_GPIO(Nb)   (0x00000001 << (Nb))    /* GPIO [0..27] */
 
42
#define GPIO_GPIO0      GPIO_GPIO(0)    /* GPIO  [0] */
 
43
#define GPIO_GPIO1      GPIO_GPIO(1)    /* GPIO  [1] */
 
44
#define GPIO_GPIO2      GPIO_GPIO(2)    /* GPIO  [2] */
 
45
#define GPIO_GPIO3      GPIO_GPIO(3)    /* GPIO  [3] */
 
46
#define GPIO_GPIO4      GPIO_GPIO(4)    /* GPIO  [4] */
 
47
#define GPIO_GPIO5      GPIO_GPIO(5)    /* GPIO  [5] */
 
48
#define GPIO_GPIO6      GPIO_GPIO(6)    /* GPIO  [6] */
 
49
#define GPIO_GPIO7      GPIO_GPIO(7)    /* GPIO  [7] */
 
50
#define GPIO_GPIO8      GPIO_GPIO(8)    /* GPIO  [8] */
 
51
#define GPIO_GPIO9      GPIO_GPIO(9)    /* GPIO  [9] */
 
52
#define GPIO_GPIO10     GPIO_GPIO(10)   /* GPIO [10] */
 
53
#define GPIO_GPIO11     GPIO_GPIO(11)   /* GPIO [11] */
 
54
#define GPIO_GPIO12     GPIO_GPIO(12)   /* GPIO [12] */
 
55
#define GPIO_GPIO13     GPIO_GPIO(13)   /* GPIO [13] */
 
56
#define GPIO_GPIO14     GPIO_GPIO(14)   /* GPIO [14] */
 
57
#define GPIO_GPIO15     GPIO_GPIO(15)   /* GPIO [15] */
 
58
#define GPIO_GPIO16     GPIO_GPIO(16)   /* GPIO [16] */
 
59
#define GPIO_GPIO17     GPIO_GPIO(17)   /* GPIO [17] */
 
60
#define GPIO_GPIO18     GPIO_GPIO(18)   /* GPIO [18] */
 
61
#define GPIO_GPIO19     GPIO_GPIO(19)   /* GPIO [19] */
 
62
#define GPIO_GPIO20     GPIO_GPIO(20)   /* GPIO [20] */
 
63
#define GPIO_GPIO21     GPIO_GPIO(21)   /* GPIO [21] */
 
64
#define GPIO_GPIO22     GPIO_GPIO(22)   /* GPIO [22] */
 
65
#define GPIO_GPIO23     GPIO_GPIO(23)   /* GPIO [23] */
 
66
#define GPIO_GPIO24     GPIO_GPIO(24)   /* GPIO [24] */
 
67
#define GPIO_GPIO25     GPIO_GPIO(25)   /* GPIO [25] */
 
68
#define GPIO_GPIO26     GPIO_GPIO(26)   /* GPIO [26] */
 
69
#define GPIO_GPIO27     GPIO_GPIO(27)   /* GPIO [27] */
 
70