~ubuntu-branches/ubuntu/maverick/u-boot-omap3/maverick

« back to all changes in this revision

Viewing changes to cpu/at32ap/pio2.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-03-22 15:06:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100322150623-i21g8rgiyl5dohag
Tags: upstream-2010.3git20100315
ImportĀ upstreamĀ versionĀ 2010.3git20100315

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Register definitions for Parallel Input/Output Controller
 
3
 */
 
4
#ifndef __CPU_AT32AP_PIO2_H__
 
5
#define __CPU_AT32AP_PIO2_H__
 
6
 
 
7
/* PIO2 register offsets */
 
8
#define PIO2_PER                                0x0000
 
9
#define PIO2_PDR                                0x0004
 
10
#define PIO2_PSR                                0x0008
 
11
#define PIO2_OER                                0x0010
 
12
#define PIO2_ODR                                0x0014
 
13
#define PIO2_OSR                                0x0018
 
14
#define PIO2_IFER                               0x0020
 
15
#define PIO2_IFDR                               0x0024
 
16
#define PIO2_ISFR                               0x0028
 
17
#define PIO2_SODR                               0x0030
 
18
#define PIO2_CODR                               0x0034
 
19
#define PIO2_ODSR                               0x0038
 
20
#define PIO2_PDSR                               0x003c
 
21
#define PIO2_IER                                0x0040
 
22
#define PIO2_IDR                                0x0044
 
23
#define PIO2_IMR                                0x0048
 
24
#define PIO2_ISR                                0x004c
 
25
#define PIO2_MDER                               0x0050
 
26
#define PIO2_MDDR                               0x0054
 
27
#define PIO2_MDSR                               0x0058
 
28
#define PIO2_PUDR                               0x0060
 
29
#define PIO2_PUER                               0x0064
 
30
#define PIO2_PUSR                               0x0068
 
31
#define PIO2_ASR                                0x0070
 
32
#define PIO2_BSR                                0x0074
 
33
#define PIO2_ABSR                               0x0078
 
34
#define PIO2_OWER                               0x00a0
 
35
#define PIO2_OWDR                               0x00a4
 
36
#define PIO2_OWSR                               0x00a8
 
37
 
 
38
/* Register access macros */
 
39
#define pio2_readl(base,reg)                            \
 
40
        readl((void *)base + PIO2_##reg)
 
41
#define pio2_writel(base,reg,value)                     \
 
42
        writel((value), (void *)base + PIO2_##reg)
 
43
 
 
44
#endif /* __CPU_AT32AP_PIO2_H__ */