1 /* SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2016 Nexell Co., Ltd.
5 * Author: junghyun, kim <jhkim@nexell.co.kr>
8 #ifndef _S5PXX18_SOC_DISPTOP_CLK_H_
9 #define _S5PXX18_SOC_DISPTOP_CLK_H_
11 #include "s5pxx18_soc_disptype.h"
13 #define PHY_BASEADDR_DISPTOP_CLKGEN_LIST \
14 { PHY_BASEADDR_DISPTOP_CLKGEN0_MODULE, \
15 PHY_BASEADDR_DISPTOP_CLKGEN1_MODULE, \
16 PHY_BASEADDR_DISPTOP_CLKGEN2_MODULE, \
17 PHY_BASEADDR_DISPTOP_CLKGEN3_MODULE, \
18 PHY_BASEADDR_DISPTOP_CLKGEN4_MODULE, \
21 struct nx_disptop_clkgen_register_set {
26 int nx_disp_top_clkgen_initialize(void);
27 u32 nx_disp_top_clkgen_get_number_of_module(void);
28 u32 nx_disp_top_clkgen_get_physical_address(u32 module_index);
29 u32 nx_disp_top_clkgen_get_size_of_register_set(void);
30 void nx_disp_top_clkgen_set_base_address(u32 module_index,
32 void *nx_disp_top_clkgen_get_base_address(u32 module_index);
33 void nx_disp_top_clkgen_set_clock_pclk_mode(u32 module_index,
34 enum nx_pclkmode mode);
35 enum nx_pclkmode nx_disp_top_clkgen_get_clock_pclk_mode(u32 module_index);
36 void nx_disp_top_clkgen_set_clock_source(u32 module_index, u32 index,
38 u32 nx_disp_top_clkgen_get_clock_source(u32 module_index, u32 index);
39 void nx_disp_top_clkgen_set_clock_divisor(u32 module_index, u32 index,
41 u32 nx_disp_top_clkgen_get_clock_divisor(u32 module_index, u32 index);
42 void nx_disp_top_clkgen_set_clock_divisor_enable(u32 module_index,
44 int nx_disp_top_clkgen_get_clock_divisor_enable(u32 module_index);
45 void nx_disp_top_clkgen_set_clock_bclk_mode(u32 module_index,
46 enum nx_bclkmode mode);
47 enum nx_bclkmode nx_disp_top_clkgen_get_clock_bclk_mode(u32 module_index);
49 void nx_disp_top_clkgen_set_clock_out_inv(u32 module_index, u32 index,
51 int nx_disp_top_clkgen_get_clock_out_inv(u32 module_index, u32 index);
52 int nx_disp_top_clkgen_set_input_inv(u32 module_index, u32 index,
54 int nx_disp_top_clkgen_get_input_inv(u32 module_index, u32 index);
56 void nx_disp_top_clkgen_set_clock_out_select(u32 module_index, u32 index,