xref: /openbmc/linux/include/linux/soc/pxa/smemc.h (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
16a946f1bSArnd Bergmann /* SPDX-License-Identifier: GPL-2.0-only */
26a946f1bSArnd Bergmann #ifndef __PXA_REGS_H
36a946f1bSArnd Bergmann #define __PXA_REGS_H
46a946f1bSArnd Bergmann 
56a946f1bSArnd Bergmann #include <linux/types.h>
66a946f1bSArnd Bergmann 
76a946f1bSArnd Bergmann void pxa_smemc_set_pcmcia_timing(int sock, u32 mcmem, u32 mcatt, u32 mcio);
86a946f1bSArnd Bergmann void pxa_smemc_set_pcmcia_socket(int nr);
9fd13f811SArnd Bergmann int pxa2xx_smemc_get_sdram_rows(void);
10fd13f811SArnd Bergmann unsigned int pxa3xx_smemc_get_memclkdiv(void);
11fd13f811SArnd Bergmann void __iomem *pxa_smemc_get_mdrefr(void);
126a946f1bSArnd Bergmann 
13*a9ae9c52SArnd Bergmann /*
14*a9ae9c52SArnd Bergmann  * Once fully converted to the clock framework, all these functions should be
15*a9ae9c52SArnd Bergmann  * removed, and replaced with a clk_get(NULL, "core").
16*a9ae9c52SArnd Bergmann  */
17*a9ae9c52SArnd Bergmann #ifdef CONFIG_PXA25x
18*a9ae9c52SArnd Bergmann extern unsigned pxa25x_get_clk_frequency_khz(int);
19*a9ae9c52SArnd Bergmann #else
20*a9ae9c52SArnd Bergmann #define pxa25x_get_clk_frequency_khz(x)		(0)
21*a9ae9c52SArnd Bergmann #endif
22*a9ae9c52SArnd Bergmann 
23*a9ae9c52SArnd Bergmann #ifdef CONFIG_PXA27x
24*a9ae9c52SArnd Bergmann extern unsigned pxa27x_get_clk_frequency_khz(int);
25*a9ae9c52SArnd Bergmann #else
26*a9ae9c52SArnd Bergmann #define pxa27x_get_clk_frequency_khz(x)		(0)
27*a9ae9c52SArnd Bergmann #endif
28*a9ae9c52SArnd Bergmann 
296a946f1bSArnd Bergmann #endif
30