Ian Campbell | 49aeca3 | 2014-05-05 11:52:23 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2007-2011 |
| 3 | * Allwinner Technology Co., Ltd. <www.allwinnertech.com> |
| 4 | * Tom Cubie <tangliang@allwinnertech.com> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | #ifndef _SUNXI_CLOCK_H |
| 10 | #define _SUNXI_CLOCK_H |
| 11 | |
| 12 | #include <linux/types.h> |
| 13 | |
| 14 | #define CLK_GATE_OPEN 0x1 |
| 15 | #define CLK_GATE_CLOSE 0x0 |
| 16 | |
| 17 | /* clock control module regs definition */ |
| 18 | #include <asm/arch/clock_sun4i.h> |
| 19 | |
| 20 | #ifndef __ASSEMBLY__ |
| 21 | int clock_init(void); |
| 22 | int clock_twi_onoff(int port, int state); |
| 23 | void clock_set_pll1(unsigned int hz); |
| 24 | unsigned int clock_get_pll6(void); |
| 25 | void clock_init_safe(void); |
| 26 | void clock_init_uart(void); |
| 27 | #endif |
| 28 | |
| 29 | #endif /* _SUNXI_CLOCK_H */ |