xref: /rk3399_ARM-atf/drivers/marvell/mochi/apn806_setup.c (revision 8909fa9bbf159f12cec0a06a3e57bc32a65953b8)
1031542fcSKonstantin Porotchkin /*
2031542fcSKonstantin Porotchkin  * Copyright (C) 2018 Marvell International Ltd.
3031542fcSKonstantin Porotchkin  *
4031542fcSKonstantin Porotchkin  * SPDX-License-Identifier:     BSD-3-Clause
5031542fcSKonstantin Porotchkin  * https://spdx.org/licenses
6031542fcSKonstantin Porotchkin  */
7031542fcSKonstantin Porotchkin 
8031542fcSKonstantin Porotchkin /* AP806 Marvell SoC driver */
9031542fcSKonstantin Porotchkin 
1009d40e0eSAntonio Nino Diaz #include <common/debug.h>
1109d40e0eSAntonio Nino Diaz #include <drivers/marvell/ccu.h>
1209d40e0eSAntonio Nino Diaz #include <drivers/marvell/cache_llc.h>
1309d40e0eSAntonio Nino Diaz #include <drivers/marvell/io_win.h>
1409d40e0eSAntonio Nino Diaz #include <drivers/marvell/mci.h>
1509d40e0eSAntonio Nino Diaz #include <drivers/marvell/mochi/ap_setup.h>
1609d40e0eSAntonio Nino Diaz #include <lib/mmio.h>
1709d40e0eSAntonio Nino Diaz 
18*c82cf21dSKonstantin Porotchkin #include <a8k_plat_def.h>
19031542fcSKonstantin Porotchkin 
20031542fcSKonstantin Porotchkin #define SMMU_sACR				(MVEBU_SMMU_BASE + 0x10)
21031542fcSKonstantin Porotchkin #define SMMU_sACR_PG_64K			(1 << 16)
22031542fcSKonstantin Porotchkin 
23031542fcSKonstantin Porotchkin #define CCU_GSPMU_CR				(MVEBU_CCU_BASE(MVEBU_AP0) + \
24031542fcSKonstantin Porotchkin 							0x3F0)
25031542fcSKonstantin Porotchkin #define GSPMU_CPU_CONTROL			(0x1 << 0)
26031542fcSKonstantin Porotchkin 
27031542fcSKonstantin Porotchkin #define CCU_HTC_CR				(MVEBU_CCU_BASE(MVEBU_AP0) + \
28031542fcSKonstantin Porotchkin 							0x200)
29031542fcSKonstantin Porotchkin #define CCU_SET_POC_OFFSET			5
30031542fcSKonstantin Porotchkin 
31031542fcSKonstantin Porotchkin #define DSS_CR0					(MVEBU_RFU_BASE + 0x100)
32031542fcSKonstantin Porotchkin #define DVM_48BIT_VA_ENABLE			(1 << 21)
33031542fcSKonstantin Porotchkin 
34031542fcSKonstantin Porotchkin /* Secure MoChi incoming access */
35031542fcSKonstantin Porotchkin #define SEC_MOCHI_IN_ACC_REG			(MVEBU_RFU_BASE + 0x4738)
36031542fcSKonstantin Porotchkin #define SEC_MOCHI_IN_ACC_IHB0_EN		(1)
37031542fcSKonstantin Porotchkin #define SEC_MOCHI_IN_ACC_IHB1_EN		(1 << 3)
38031542fcSKonstantin Porotchkin #define SEC_MOCHI_IN_ACC_IHB2_EN		(1 << 6)
39031542fcSKonstantin Porotchkin #define SEC_MOCHI_IN_ACC_PIDI_EN		(1 << 9)
40031542fcSKonstantin Porotchkin #define SEC_IN_ACCESS_ENA_ALL_MASTERS		(SEC_MOCHI_IN_ACC_IHB0_EN | \
41031542fcSKonstantin Porotchkin 						 SEC_MOCHI_IN_ACC_IHB1_EN | \
42031542fcSKonstantin Porotchkin 						 SEC_MOCHI_IN_ACC_IHB2_EN | \
43031542fcSKonstantin Porotchkin 						 SEC_MOCHI_IN_ACC_PIDI_EN)
4411e6ed09SKonstantin Porotchkin #define MOCHI_IN_ACC_LEVEL_FORCE_NONSEC		(0)
4511e6ed09SKonstantin Porotchkin #define MOCHI_IN_ACC_LEVEL_FORCE_SEC		(1)
4611e6ed09SKonstantin Porotchkin #define MOCHI_IN_ACC_LEVEL_LEAVE_ORIG		(2)
4711e6ed09SKonstantin Porotchkin #define MOCHI_IN_ACC_LEVEL_MASK_ALL		(3)
4811e6ed09SKonstantin Porotchkin #define SEC_MOCHI_IN_ACC_IHB0_LEVEL(l)		((l) << 1)
4911e6ed09SKonstantin Porotchkin #define SEC_MOCHI_IN_ACC_IHB1_LEVEL(l)		((l) << 4)
5011e6ed09SKonstantin Porotchkin #define SEC_MOCHI_IN_ACC_PIDI_LEVEL(l)		((l) << 10)
5111e6ed09SKonstantin Porotchkin 
52031542fcSKonstantin Porotchkin 
53031542fcSKonstantin Porotchkin /* SYSRST_OUTn Config definitions */
54031542fcSKonstantin Porotchkin #define MVEBU_SYSRST_OUT_CONFIG_REG		(MVEBU_MISC_SOC_BASE + 0x4)
55031542fcSKonstantin Porotchkin #define WD_MASK_SYS_RST_OUT			(1 << 2)
56031542fcSKonstantin Porotchkin 
57031542fcSKonstantin Porotchkin /* Generic Timer System Controller */
58031542fcSKonstantin Porotchkin #define MVEBU_MSS_GTCR_REG			(MVEBU_REGS_BASE + 0x581000)
59031542fcSKonstantin Porotchkin #define MVEBU_MSS_GTCR_ENABLE_BIT		0x1
60031542fcSKonstantin Porotchkin 
61031542fcSKonstantin Porotchkin /*
62031542fcSKonstantin Porotchkin  * AXI Configuration.
63031542fcSKonstantin Porotchkin  */
64031542fcSKonstantin Porotchkin 
65031542fcSKonstantin Porotchkin /* Used for Units of AP-806 (e.g. SDIO and etc) */
66031542fcSKonstantin Porotchkin #define MVEBU_AXI_ATTR_BASE			(MVEBU_REGS_BASE + 0x6F4580)
67031542fcSKonstantin Porotchkin #define MVEBU_AXI_ATTR_REG(index)		(MVEBU_AXI_ATTR_BASE + \
68031542fcSKonstantin Porotchkin 							0x4 * index)
69031542fcSKonstantin Porotchkin 
70*c82cf21dSKonstantin Porotchkin #define XOR_STREAM_ID_REG(ch)	(MVEBU_REGS_BASE + 0x410010 + (ch) * 0x20000)
71*c82cf21dSKonstantin Porotchkin #define XOR_STREAM_ID_MASK	0xFFFF
72*c82cf21dSKonstantin Porotchkin #define SDIO_STREAM_ID_REG	(MVEBU_RFU_BASE + 0x4600)
73*c82cf21dSKonstantin Porotchkin #define SDIO_STREAM_ID_MASK	0xFF
74*c82cf21dSKonstantin Porotchkin 
75*c82cf21dSKonstantin Porotchkin /* Do not use the default Stream ID 0 */
76*c82cf21dSKonstantin Porotchkin #define A806_STREAM_ID_BASE	(0x1)
77*c82cf21dSKonstantin Porotchkin 
78*c82cf21dSKonstantin Porotchkin static uintptr_t stream_id_reg[] = {
79*c82cf21dSKonstantin Porotchkin 	XOR_STREAM_ID_REG(0),
80*c82cf21dSKonstantin Porotchkin 	XOR_STREAM_ID_REG(1),
81*c82cf21dSKonstantin Porotchkin 	XOR_STREAM_ID_REG(2),
82*c82cf21dSKonstantin Porotchkin 	XOR_STREAM_ID_REG(3),
83*c82cf21dSKonstantin Porotchkin 	SDIO_STREAM_ID_REG,
84*c82cf21dSKonstantin Porotchkin 	0
85*c82cf21dSKonstantin Porotchkin };
86*c82cf21dSKonstantin Porotchkin 
87031542fcSKonstantin Porotchkin enum axi_attr {
88031542fcSKonstantin Porotchkin 	AXI_SDIO_ATTR = 0,
89031542fcSKonstantin Porotchkin 	AXI_DFX_ATTR,
90031542fcSKonstantin Porotchkin 	AXI_MAX_ATTR,
91031542fcSKonstantin Porotchkin };
92031542fcSKonstantin Porotchkin 
apn_sec_masters_access_en(uint32_t enable)93031542fcSKonstantin Porotchkin static void apn_sec_masters_access_en(uint32_t enable)
94031542fcSKonstantin Porotchkin {
95031542fcSKonstantin Porotchkin 	/* Open/Close incoming access for all masters.
96031542fcSKonstantin Porotchkin 	 * The access is disabled in trusted boot mode
97031542fcSKonstantin Porotchkin 	 * Could only be done in EL3
98031542fcSKonstantin Porotchkin 	 */
9911e6ed09SKonstantin Porotchkin 	if (enable != 0) {
10011e6ed09SKonstantin Porotchkin 		mmio_clrsetbits_32(SEC_MOCHI_IN_ACC_REG, 0x0U, /* no clear */
101031542fcSKonstantin Porotchkin 			      SEC_IN_ACCESS_ENA_ALL_MASTERS);
10211e6ed09SKonstantin Porotchkin #if LLC_SRAM
10311e6ed09SKonstantin Porotchkin 		/* Do not change access security level
10411e6ed09SKonstantin Porotchkin 		 * for PIDI masters
10511e6ed09SKonstantin Porotchkin 		 */
10611e6ed09SKonstantin Porotchkin 		mmio_clrsetbits_32(SEC_MOCHI_IN_ACC_REG,
10711e6ed09SKonstantin Porotchkin 				   SEC_MOCHI_IN_ACC_PIDI_LEVEL(
10811e6ed09SKonstantin Porotchkin 					  MOCHI_IN_ACC_LEVEL_MASK_ALL),
10911e6ed09SKonstantin Porotchkin 				   SEC_MOCHI_IN_ACC_PIDI_LEVEL(
11011e6ed09SKonstantin Porotchkin 					  MOCHI_IN_ACC_LEVEL_LEAVE_ORIG));
11111e6ed09SKonstantin Porotchkin #endif
11211e6ed09SKonstantin Porotchkin 	} else {
11311e6ed09SKonstantin Porotchkin 		mmio_clrsetbits_32(SEC_MOCHI_IN_ACC_REG,
11411e6ed09SKonstantin Porotchkin 				   SEC_IN_ACCESS_ENA_ALL_MASTERS,
11511e6ed09SKonstantin Porotchkin 				   0x0U /* no set */);
11611e6ed09SKonstantin Porotchkin #if LLC_SRAM
11711e6ed09SKonstantin Porotchkin 		/* Return PIDI access level to the default */
11811e6ed09SKonstantin Porotchkin 		mmio_clrsetbits_32(SEC_MOCHI_IN_ACC_REG,
11911e6ed09SKonstantin Porotchkin 				   SEC_MOCHI_IN_ACC_PIDI_LEVEL(
12011e6ed09SKonstantin Porotchkin 					  MOCHI_IN_ACC_LEVEL_MASK_ALL),
12111e6ed09SKonstantin Porotchkin 				   SEC_MOCHI_IN_ACC_PIDI_LEVEL(
12211e6ed09SKonstantin Porotchkin 					  MOCHI_IN_ACC_LEVEL_FORCE_NONSEC));
12311e6ed09SKonstantin Porotchkin #endif
12411e6ed09SKonstantin Porotchkin 	}
125031542fcSKonstantin Porotchkin }
126031542fcSKonstantin Porotchkin 
setup_smmu(void)127031542fcSKonstantin Porotchkin static void setup_smmu(void)
128031542fcSKonstantin Porotchkin {
129031542fcSKonstantin Porotchkin 	uint32_t reg;
130031542fcSKonstantin Porotchkin 
131031542fcSKonstantin Porotchkin 	/* Set the SMMU page size to 64 KB */
132031542fcSKonstantin Porotchkin 	reg = mmio_read_32(SMMU_sACR);
133031542fcSKonstantin Porotchkin 	reg |= SMMU_sACR_PG_64K;
134031542fcSKonstantin Porotchkin 	mmio_write_32(SMMU_sACR, reg);
135031542fcSKonstantin Porotchkin }
136031542fcSKonstantin Porotchkin 
init_aurora2(void)137031542fcSKonstantin Porotchkin static void init_aurora2(void)
138031542fcSKonstantin Porotchkin {
139031542fcSKonstantin Porotchkin 	uint32_t reg;
140031542fcSKonstantin Porotchkin 
141031542fcSKonstantin Porotchkin 	/* Enable GSPMU control by CPU */
142031542fcSKonstantin Porotchkin 	reg = mmio_read_32(CCU_GSPMU_CR);
143031542fcSKonstantin Porotchkin 	reg |= GSPMU_CPU_CONTROL;
144031542fcSKonstantin Porotchkin 	mmio_write_32(CCU_GSPMU_CR, reg);
145031542fcSKonstantin Porotchkin 
146031542fcSKonstantin Porotchkin #if LLC_ENABLE
147031542fcSKonstantin Porotchkin 	/* Enable LLC for AP806 in exclusive mode */
148031542fcSKonstantin Porotchkin 	llc_enable(0, 1);
149031542fcSKonstantin Porotchkin 
150031542fcSKonstantin Porotchkin 	/* Set point of coherency to DDR.
151031542fcSKonstantin Porotchkin 	 * This is required by units which have
152031542fcSKonstantin Porotchkin 	 * SW cache coherency
153031542fcSKonstantin Porotchkin 	 */
154031542fcSKonstantin Porotchkin 	reg = mmio_read_32(CCU_HTC_CR);
155031542fcSKonstantin Porotchkin 	reg |= (0x1 << CCU_SET_POC_OFFSET);
156031542fcSKonstantin Porotchkin 	mmio_write_32(CCU_HTC_CR, reg);
157031542fcSKonstantin Porotchkin #endif /* LLC_ENABLE */
158031542fcSKonstantin Porotchkin 
1595e4c97d0SStefan Chulski 	errata_wa_init();
160031542fcSKonstantin Porotchkin }
161031542fcSKonstantin Porotchkin 
162031542fcSKonstantin Porotchkin 
163031542fcSKonstantin Porotchkin /* MCIx indirect access register are based by default at 0xf4000000/0xf6000000
164031542fcSKonstantin Porotchkin  * to avoid conflict of internal registers of units connected via MCIx, which
165031542fcSKonstantin Porotchkin  * can be based on the same address (i.e CP1 base is also 0xf4000000),
166031542fcSKonstantin Porotchkin  * the following routines remaps the MCIx indirect bases to another domain
167031542fcSKonstantin Porotchkin  */
mci_remap_indirect_access_base(void)168031542fcSKonstantin Porotchkin static void mci_remap_indirect_access_base(void)
169031542fcSKonstantin Porotchkin {
170031542fcSKonstantin Porotchkin 	uint32_t mci;
171031542fcSKonstantin Porotchkin 
172031542fcSKonstantin Porotchkin 	for (mci = 0; mci < MCI_MAX_UNIT_ID; mci++)
173031542fcSKonstantin Porotchkin 		mmio_write_32(MCIX4_REG_START_ADDRESS_REG(mci),
174031542fcSKonstantin Porotchkin 			      MVEBU_MCI_REG_BASE_REMAP(mci) >>
175031542fcSKonstantin Porotchkin 			      MCI_REMAP_OFF_SHIFT);
176031542fcSKonstantin Porotchkin }
177031542fcSKonstantin Porotchkin 
178*c82cf21dSKonstantin Porotchkin /* Set a unique stream id for all DMA capable devices */
ap806_stream_id_init(void)179*c82cf21dSKonstantin Porotchkin static void ap806_stream_id_init(void)
180*c82cf21dSKonstantin Porotchkin {
181*c82cf21dSKonstantin Porotchkin 	int i;
182*c82cf21dSKonstantin Porotchkin 
183*c82cf21dSKonstantin Porotchkin 	for (i = 0; stream_id_reg[i] != 0; i++) {
184*c82cf21dSKonstantin Porotchkin 		uint32_t mask = stream_id_reg[i] == SDIO_STREAM_ID_REG ?
185*c82cf21dSKonstantin Porotchkin 				SDIO_STREAM_ID_MASK : XOR_STREAM_ID_MASK;
186*c82cf21dSKonstantin Porotchkin 
187*c82cf21dSKonstantin Porotchkin 		mmio_clrsetbits_32(stream_id_reg[i], mask,
188*c82cf21dSKonstantin Porotchkin 				   i + A806_STREAM_ID_BASE);
189*c82cf21dSKonstantin Porotchkin 	}
190*c82cf21dSKonstantin Porotchkin }
191*c82cf21dSKonstantin Porotchkin 
apn806_axi_attr_init(void)192031542fcSKonstantin Porotchkin static void apn806_axi_attr_init(void)
193031542fcSKonstantin Porotchkin {
194031542fcSKonstantin Porotchkin 	uint32_t index, data;
195031542fcSKonstantin Porotchkin 
196031542fcSKonstantin Porotchkin 	/* Initialize AXI attributes for APN806 */
197031542fcSKonstantin Porotchkin 
198031542fcSKonstantin Porotchkin 	/* Go over the AXI attributes and set Ax-Cache and Ax-Domain */
199031542fcSKonstantin Porotchkin 	for (index = 0; index < AXI_MAX_ATTR; index++) {
200031542fcSKonstantin Porotchkin 		switch (index) {
201031542fcSKonstantin Porotchkin 		/* DFX works with no coherent only -
202031542fcSKonstantin Porotchkin 		 * there's no option to configure the Ax-Cache and Ax-Domain
203031542fcSKonstantin Porotchkin 		 */
204031542fcSKonstantin Porotchkin 		case AXI_DFX_ATTR:
205031542fcSKonstantin Porotchkin 			continue;
206031542fcSKonstantin Porotchkin 		default:
207031542fcSKonstantin Porotchkin 			/* Set Ax-Cache as cacheable, no allocate, modifiable,
208031542fcSKonstantin Porotchkin 			 * bufferable
209031542fcSKonstantin Porotchkin 			 * The values are different because Read & Write
210031542fcSKonstantin Porotchkin 			 * definition is different in Ax-Cache
211031542fcSKonstantin Porotchkin 			 */
212031542fcSKonstantin Porotchkin 			data = mmio_read_32(MVEBU_AXI_ATTR_REG(index));
213031542fcSKonstantin Porotchkin 			data &= ~MVEBU_AXI_ATTR_ARCACHE_MASK;
214031542fcSKonstantin Porotchkin 			data |= (CACHE_ATTR_WRITE_ALLOC |
215031542fcSKonstantin Porotchkin 				 CACHE_ATTR_CACHEABLE   |
216031542fcSKonstantin Porotchkin 				 CACHE_ATTR_BUFFERABLE) <<
217031542fcSKonstantin Porotchkin 				 MVEBU_AXI_ATTR_ARCACHE_OFFSET;
218031542fcSKonstantin Porotchkin 			data &= ~MVEBU_AXI_ATTR_AWCACHE_MASK;
219031542fcSKonstantin Porotchkin 			data |= (CACHE_ATTR_READ_ALLOC |
220031542fcSKonstantin Porotchkin 				 CACHE_ATTR_CACHEABLE  |
221031542fcSKonstantin Porotchkin 				 CACHE_ATTR_BUFFERABLE) <<
222031542fcSKonstantin Porotchkin 				 MVEBU_AXI_ATTR_AWCACHE_OFFSET;
223031542fcSKonstantin Porotchkin 			/* Set Ax-Domain as Outer domain */
224031542fcSKonstantin Porotchkin 			data &= ~MVEBU_AXI_ATTR_ARDOMAIN_MASK;
225031542fcSKonstantin Porotchkin 			data |= DOMAIN_OUTER_SHAREABLE <<
226031542fcSKonstantin Porotchkin 				MVEBU_AXI_ATTR_ARDOMAIN_OFFSET;
227031542fcSKonstantin Porotchkin 			data &= ~MVEBU_AXI_ATTR_AWDOMAIN_MASK;
228031542fcSKonstantin Porotchkin 			data |= DOMAIN_OUTER_SHAREABLE <<
229031542fcSKonstantin Porotchkin 				MVEBU_AXI_ATTR_AWDOMAIN_OFFSET;
230031542fcSKonstantin Porotchkin 			mmio_write_32(MVEBU_AXI_ATTR_REG(index), data);
231031542fcSKonstantin Porotchkin 		}
232031542fcSKonstantin Porotchkin 	}
233031542fcSKonstantin Porotchkin }
234031542fcSKonstantin Porotchkin 
dss_setup(void)235031542fcSKonstantin Porotchkin static void dss_setup(void)
236031542fcSKonstantin Porotchkin {
237031542fcSKonstantin Porotchkin 	/* Enable 48-bit VA */
238031542fcSKonstantin Porotchkin 	mmio_setbits_32(DSS_CR0, DVM_48BIT_VA_ENABLE);
239031542fcSKonstantin Porotchkin }
240031542fcSKonstantin Porotchkin 
misc_soc_configurations(void)241031542fcSKonstantin Porotchkin void misc_soc_configurations(void)
242031542fcSKonstantin Porotchkin {
243031542fcSKonstantin Porotchkin 	uint32_t reg;
244031542fcSKonstantin Porotchkin 
245031542fcSKonstantin Porotchkin 	/* Un-mask Watchdog reset from influencing the SYSRST_OUTn.
246031542fcSKonstantin Porotchkin 	 * Otherwise, upon WD timeout, the WD reset signal won't trigger reset
247031542fcSKonstantin Porotchkin 	 */
248031542fcSKonstantin Porotchkin 	reg = mmio_read_32(MVEBU_SYSRST_OUT_CONFIG_REG);
249031542fcSKonstantin Porotchkin 	reg &= ~(WD_MASK_SYS_RST_OUT);
250031542fcSKonstantin Porotchkin 	mmio_write_32(MVEBU_SYSRST_OUT_CONFIG_REG, reg);
251031542fcSKonstantin Porotchkin }
252031542fcSKonstantin Porotchkin 
ap_init(void)253031542fcSKonstantin Porotchkin void ap_init(void)
254031542fcSKonstantin Porotchkin {
255031542fcSKonstantin Porotchkin 	/* Setup Aurora2. */
256031542fcSKonstantin Porotchkin 	init_aurora2();
257031542fcSKonstantin Porotchkin 
258031542fcSKonstantin Porotchkin 	/* configure MCI mapping */
259031542fcSKonstantin Porotchkin 	mci_remap_indirect_access_base();
260031542fcSKonstantin Porotchkin 
261031542fcSKonstantin Porotchkin 	/* configure IO_WIN windows */
262031542fcSKonstantin Porotchkin 	init_io_win(MVEBU_AP0);
263031542fcSKonstantin Porotchkin 
264031542fcSKonstantin Porotchkin 	/* configure CCU windows */
265031542fcSKonstantin Porotchkin 	init_ccu(MVEBU_AP0);
266031542fcSKonstantin Porotchkin 
267031542fcSKonstantin Porotchkin 	/* configure DSS */
268031542fcSKonstantin Porotchkin 	dss_setup();
269031542fcSKonstantin Porotchkin 
270*c82cf21dSKonstantin Porotchkin 	/* Set the stream IDs for DMA masters */
271*c82cf21dSKonstantin Porotchkin 	ap806_stream_id_init();
272*c82cf21dSKonstantin Porotchkin 
273031542fcSKonstantin Porotchkin 	/* configure the SMMU */
274031542fcSKonstantin Porotchkin 	setup_smmu();
275031542fcSKonstantin Porotchkin 
276031542fcSKonstantin Porotchkin 	/* Open APN incoming access for all masters */
277031542fcSKonstantin Porotchkin 	apn_sec_masters_access_en(1);
278031542fcSKonstantin Porotchkin 
279031542fcSKonstantin Porotchkin 	/* configure axi for APN*/
280031542fcSKonstantin Porotchkin 	apn806_axi_attr_init();
281031542fcSKonstantin Porotchkin 
282031542fcSKonstantin Porotchkin 	/* misc configuration of the SoC */
283031542fcSKonstantin Porotchkin 	misc_soc_configurations();
284031542fcSKonstantin Porotchkin }
285031542fcSKonstantin Porotchkin 
ap_ble_init(void)286031542fcSKonstantin Porotchkin void ap_ble_init(void)
287031542fcSKonstantin Porotchkin {
288031542fcSKonstantin Porotchkin }
289031542fcSKonstantin Porotchkin 
ap_get_count(void)290031542fcSKonstantin Porotchkin int ap_get_count(void)
291031542fcSKonstantin Porotchkin {
292031542fcSKonstantin Porotchkin 	return 1;
293031542fcSKonstantin Porotchkin }
294031542fcSKonstantin Porotchkin 
update_cp110_default_win(int cp_id)295c3c51b32SGrzegorz Jaszczyk void update_cp110_default_win(int cp_id)
296c3c51b32SGrzegorz Jaszczyk {
297c3c51b32SGrzegorz Jaszczyk }
298