1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34#ifndef __S3C64XX_H__
35#define __S3C64XX_H__
36
37#if defined(CONFIG_SYNC_MODE) && defined(CONFIG_S3C6400)
38#error CONFIG_SYNC_MODE unavailable on S3C6400, please, fix your configuration!
39#endif
40
41#include <asm/types.h>
42
43
44typedef struct {
45 volatile u32 ULCON;
46 volatile u32 UCON;
47 volatile u32 UFCON;
48 volatile u32 UMCON;
49 volatile u32 UTRSTAT;
50 volatile u32 UERSTAT;
51 volatile u32 UFSTAT;
52 volatile u32 UMSTAT;
53#ifdef __BIG_ENDIAN
54 volatile u8 res1[3];
55 volatile u8 UTXH;
56 volatile u8 res2[3];
57 volatile u8 URXH;
58#else
59 volatile u8 UTXH;
60 volatile u8 res1[3];
61 volatile u8 URXH;
62 volatile u8 res2[3];
63#endif
64 volatile u32 UBRDIV;
65#ifdef __BIG_ENDIAN
66 volatile u8 res3[2];
67 volatile u16 UDIVSLOT;
68#else
69 volatile u16 UDIVSLOT;
70 volatile u8 res3[2];
71#endif
72} s3c64xx_uart;
73
74
75typedef struct {
76 volatile u32 TCNTB;
77 volatile u32 TCMPB;
78 volatile u32 TCNTO;
79} s3c64xx_timer;
80
81typedef struct {
82 volatile u32 TCFG0;
83 volatile u32 TCFG1;
84 volatile u32 TCON;
85 s3c64xx_timer ch[4];
86 volatile u32 TCNTB4;
87 volatile u32 TCNTO4;
88} s3c64xx_timers;
89
90#endif
91