xref: /openbmc/linux/include/linux/soc/pxa/smemc.h (revision a9ae9c52)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __PXA_REGS_H
3 #define __PXA_REGS_H
4 
5 #include <linux/types.h>
6 
7 void pxa_smemc_set_pcmcia_timing(int sock, u32 mcmem, u32 mcatt, u32 mcio);
8 void pxa_smemc_set_pcmcia_socket(int nr);
9 int pxa2xx_smemc_get_sdram_rows(void);
10 unsigned int pxa3xx_smemc_get_memclkdiv(void);
11 void __iomem *pxa_smemc_get_mdrefr(void);
12 
13 /*
14  * Once fully converted to the clock framework, all these functions should be
15  * removed, and replaced with a clk_get(NULL, "core").
16  */
17 #ifdef CONFIG_PXA25x
18 extern unsigned pxa25x_get_clk_frequency_khz(int);
19 #else
20 #define pxa25x_get_clk_frequency_khz(x)		(0)
21 #endif
22 
23 #ifdef CONFIG_PXA27x
24 extern unsigned pxa27x_get_clk_frequency_khz(int);
25 #else
26 #define pxa27x_get_clk_frequency_khz(x)		(0)
27 #endif
28 
29 #endif
30