Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2009 Samsung Electronics |
| 4 | * Minkyu Kang <mk7.kang@samsung.com> |
| 5 | * Heungjun Kim <riverful.kim@samsung.com> |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __ASM_ARM_ARCH_CLOCK_H_ |
| 9 | #define __ASM_ARM_ARCH_CLOCK_H_ |
| 10 | |
| 11 | #ifndef __ASSEMBLY__ |
| 12 | struct s5pc100_clock { |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 13 | unsigned int apll_lock; |
| 14 | unsigned int mpll_lock; |
| 15 | unsigned int epll_lock; |
| 16 | unsigned int hpll_lock; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 17 | unsigned char res1[0xf0]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 18 | unsigned int apll_con; |
| 19 | unsigned int mpll_con; |
| 20 | unsigned int epll_con; |
| 21 | unsigned int hpll_con; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 22 | unsigned char res2[0xf0]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 23 | unsigned int src0; |
| 24 | unsigned int src1; |
| 25 | unsigned int src2; |
| 26 | unsigned int src3; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 27 | unsigned char res3[0xf0]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 28 | unsigned int div0; |
| 29 | unsigned int div1; |
| 30 | unsigned int div2; |
| 31 | unsigned int div3; |
| 32 | unsigned int div4; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 33 | unsigned char res4[0x1ec]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 34 | unsigned int gate_d00; |
| 35 | unsigned int gate_d01; |
| 36 | unsigned int gate_d02; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 37 | unsigned char res5[0x54]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 38 | unsigned int gate_sclk0; |
| 39 | unsigned int gate_sclk1; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | struct s5pc110_clock { |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 43 | unsigned int apll_lock; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 44 | unsigned char res1[0x4]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 45 | unsigned int mpll_lock; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 46 | unsigned char res2[0x4]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 47 | unsigned int epll_lock; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 48 | unsigned char res3[0xc]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 49 | unsigned int vpll_lock; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 50 | unsigned char res4[0xdc]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 51 | unsigned int apll_con; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 52 | unsigned char res5[0x4]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 53 | unsigned int mpll_con; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 54 | unsigned char res6[0x4]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 55 | unsigned int epll_con; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 56 | unsigned char res7[0xc]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 57 | unsigned int vpll_con; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 58 | unsigned char res8[0xdc]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 59 | unsigned int src0; |
| 60 | unsigned int src1; |
| 61 | unsigned int src2; |
| 62 | unsigned int src3; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 63 | unsigned char res9[0xf0]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 64 | unsigned int div0; |
| 65 | unsigned int div1; |
| 66 | unsigned int div2; |
| 67 | unsigned int div3; |
| 68 | unsigned int div4; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 69 | unsigned char res10[0x1ec]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 70 | unsigned int gate_d00; |
| 71 | unsigned int gate_d01; |
| 72 | unsigned int gate_d02; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 73 | unsigned char res11[0x54]; |
Minkyu Kang | c6cb184 | 2009-10-15 11:19:15 +0900 | [diff] [blame] | 74 | unsigned int gate_sclk0; |
| 75 | unsigned int gate_sclk1; |
Minkyu Kang | 8764998 | 2009-10-01 17:20:01 +0900 | [diff] [blame] | 76 | }; |
| 77 | #endif |
| 78 | |
| 79 | #endif |