blob: 079d5238d5f7ae4cd95f65d7561a46730e76b7f6 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Minkyu Kang87649982009-10-01 17:20:01 +09002/*
3 * (C) Copyright 2009 Samsung Electronics
4 * Minkyu Kang <mk7.kang@samsung.com>
5 * Heungjun Kim <riverful.kim@samsung.com>
Minkyu Kang87649982009-10-01 17:20:01 +09006 */
7
8#ifndef __ASM_ARM_ARCH_CLOCK_H_
9#define __ASM_ARM_ARCH_CLOCK_H_
10
11#ifndef __ASSEMBLY__
12struct s5pc100_clock {
Minkyu Kangc6cb1842009-10-15 11:19:15 +090013 unsigned int apll_lock;
14 unsigned int mpll_lock;
15 unsigned int epll_lock;
16 unsigned int hpll_lock;
Minkyu Kang87649982009-10-01 17:20:01 +090017 unsigned char res1[0xf0];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090018 unsigned int apll_con;
19 unsigned int mpll_con;
20 unsigned int epll_con;
21 unsigned int hpll_con;
Minkyu Kang87649982009-10-01 17:20:01 +090022 unsigned char res2[0xf0];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090023 unsigned int src0;
24 unsigned int src1;
25 unsigned int src2;
26 unsigned int src3;
Minkyu Kang87649982009-10-01 17:20:01 +090027 unsigned char res3[0xf0];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090028 unsigned int div0;
29 unsigned int div1;
30 unsigned int div2;
31 unsigned int div3;
32 unsigned int div4;
Minkyu Kang87649982009-10-01 17:20:01 +090033 unsigned char res4[0x1ec];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090034 unsigned int gate_d00;
35 unsigned int gate_d01;
36 unsigned int gate_d02;
Minkyu Kang87649982009-10-01 17:20:01 +090037 unsigned char res5[0x54];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090038 unsigned int gate_sclk0;
39 unsigned int gate_sclk1;
Minkyu Kang87649982009-10-01 17:20:01 +090040};
41
42struct s5pc110_clock {
Minkyu Kangc6cb1842009-10-15 11:19:15 +090043 unsigned int apll_lock;
Minkyu Kang87649982009-10-01 17:20:01 +090044 unsigned char res1[0x4];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090045 unsigned int mpll_lock;
Minkyu Kang87649982009-10-01 17:20:01 +090046 unsigned char res2[0x4];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090047 unsigned int epll_lock;
Minkyu Kang87649982009-10-01 17:20:01 +090048 unsigned char res3[0xc];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090049 unsigned int vpll_lock;
Minkyu Kang87649982009-10-01 17:20:01 +090050 unsigned char res4[0xdc];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090051 unsigned int apll_con;
Minkyu Kang87649982009-10-01 17:20:01 +090052 unsigned char res5[0x4];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090053 unsigned int mpll_con;
Minkyu Kang87649982009-10-01 17:20:01 +090054 unsigned char res6[0x4];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090055 unsigned int epll_con;
Minkyu Kang87649982009-10-01 17:20:01 +090056 unsigned char res7[0xc];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090057 unsigned int vpll_con;
Minkyu Kang87649982009-10-01 17:20:01 +090058 unsigned char res8[0xdc];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090059 unsigned int src0;
60 unsigned int src1;
61 unsigned int src2;
62 unsigned int src3;
Minkyu Kang87649982009-10-01 17:20:01 +090063 unsigned char res9[0xf0];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090064 unsigned int div0;
65 unsigned int div1;
66 unsigned int div2;
67 unsigned int div3;
68 unsigned int div4;
Minkyu Kang87649982009-10-01 17:20:01 +090069 unsigned char res10[0x1ec];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090070 unsigned int gate_d00;
71 unsigned int gate_d01;
72 unsigned int gate_d02;
Minkyu Kang87649982009-10-01 17:20:01 +090073 unsigned char res11[0x54];
Minkyu Kangc6cb1842009-10-15 11:19:15 +090074 unsigned int gate_sclk0;
75 unsigned int gate_sclk1;
Minkyu Kang87649982009-10-01 17:20:01 +090076};
77#endif
78
79#endif