blob: b00ab0d215f1a06feee3667cbf4a0ff898a3d3b9 [file] [log] [blame]
John Rigbya3f9d652011-04-19 10:42:40 +00001/*
2 * Copyright (C) ST-Ericsson SA 2009
3 *
4 * See file CREDITS for list of people who contributed to this
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23#ifndef __ASM_ARCH_CLOCK
24#define __ASM_ARCH_CLOCK
25
26struct prcmu {
27 unsigned int armclkfix_mgt;
28 unsigned int armclk_mgt;
29 unsigned int svammdspclk_mgt;
30 unsigned int siammdspclk_mgt;
31 unsigned int reserved;
32 unsigned int sgaclk_mgt;
33 unsigned int uartclk_mgt;
34 unsigned int msp02clk_mgt;
35 unsigned int i2cclk_mgt;
36 unsigned int sdmmcclk_mgt;
37 unsigned int slimclk_mgt;
38 unsigned int per1clk_mgt;
39 unsigned int per2clk_mgt;
40 unsigned int per3clk_mgt;
41 unsigned int per5clk_mgt;
42 unsigned int per6clk_mgt;
43 unsigned int per7clk_mgt;
44 unsigned int lcdclk_mgt;
45 unsigned int reserved1;
46 unsigned int bmlclk_mgt;
47 unsigned int hsitxclk_mgt;
48 unsigned int hsirxclk_mgt;
49 unsigned int hdmiclk_mgt;
50 unsigned int apeatclk_mgt;
51 unsigned int apetraceclk_mgt;
52 unsigned int mcdeclk_mgt;
53 unsigned int ipi2cclk_mgt;
54 unsigned int dsialtclk_mgt;
55 unsigned int spare2clk_mgt;
56 unsigned int dmaclk_mgt;
57 unsigned int b2r2clk_mgt;
58 unsigned int tvclk_mgt;
59 unsigned int unused[82];
60 unsigned int tcr;
61 unsigned int unused1[23];
62 unsigned int ape_softrst;
63};
64
65extern void u8500_clock_enable(int periph, int kern, int cluster);
66
67static inline void u8500_prcmu_enable(unsigned int *reg)
68{
69 writel(readl(reg) | (1 << 8), reg);
70}
71
72#endif /* __ASM_ARCH_CLOCK */