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