blob: 3c457d7a6d6869b642917c7d671cd9c9d7f3342f [file] [log] [blame]
rutigl@gmail.comdefbeed2023-03-19 09:19:05 +02001/*
2 * Copyright (C) 2017-2023 Nuvoton Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __ARBEL_CLOCK_H_
8#define __ARBEL_CLOCK_H_
9
10struct clk_ctl {
11 unsigned int clken1;
12 unsigned int clksel;
13 unsigned int clkdiv1;
14 unsigned int pllcon0;
15 unsigned int pllcon1;
16 unsigned int swrstr;
17 unsigned char res1[0x8];
18 unsigned int ipsrst1;
19 unsigned int ipsrst2;
20 unsigned int clken2;
21 unsigned int clkdiv2;
22 unsigned int clken3;
23 unsigned int ipsrst3;
24 unsigned int wd0rcr;
25 unsigned int wd1rcr;
26 unsigned int wd2rcr;
27 unsigned int swrstc1;
28 unsigned int swrstc2;
29 unsigned int swrstc3;
30 unsigned int tiprstc;
31 unsigned int pllcon2;
32 unsigned int clkdiv3;
33 unsigned int corstc;
34 unsigned int pllcong;
35 unsigned int ahbckfi;
36 unsigned int seccnt;
37 unsigned int cntr25m;
38 unsigned int clken4;
39 unsigned int ipsrst4;
40 unsigned int busto;
41 unsigned int clkdiv4;
42 unsigned int wd0rcrb;
43 unsigned int wd1rcrb;
44 unsigned int wd2rcrb;
45 unsigned int swrstc1b;
46 unsigned int swrstc2b;
47 unsigned int swrstc3b;
48 unsigned int tiprstcb;
49 unsigned int corstcb;
50 unsigned int ipsrstdis1;
51 unsigned int ipsrstdis2;
52 unsigned int ipsrstdis3;
53 unsigned int ipsrstdis4;
54 unsigned char res2[0x10];
55 unsigned int thrtl_cnt;
56};
57
58#endif /* __ARBEL_CLOCK_H_ */