2 * Ugly header containing required header files. This could be adjusted
3 * so that including asm/arch/hardware includes the correct file.
5 * (C) Copyright 2000-2009
6 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8 * SPDX-License-Identifier: GPL-2.0+
16 #if defined(CONFIG_MPC5xxx)
18 #elif defined(CONFIG_MPC512X)
19 #include <asm/immap_512x.h>
23 #include <asm/immap_86xx.h>
27 #include <asm/immap_85xx.h>
31 #include <asm/immap_83xx.h>
34 #include <asm/ppc4xx.h>
36 #ifdef CONFIG_SOC_DA8XX
37 #include <asm/arch/hardware.h>
39 #ifdef CONFIG_FSL_LSCH3
40 #include <asm/arch/immap_lsch3.h>
42 #ifdef CONFIG_FSL_LSCH2
43 #include <asm/arch/immap_lsch2.h>
46 #if defined(CONFIG_MPC5xxx)
58 #if defined(CONFIG_4xx) || \
59 defined(CONFIG_MPC5xxx) || \
60 defined(CONFIG_MPC85xx) || \
61 defined(CONFIG_MPC86xx) || \
62 defined(CONFIG_MPC83xx)
63 unsigned char in8(unsigned int);
64 void out8(unsigned int, unsigned char);
65 unsigned short in16(unsigned int);
66 unsigned short in16r(unsigned int);
67 void out16(unsigned int, unsigned short value
);
68 void out16r(unsigned int, unsigned short value
);
69 unsigned long in32(unsigned int);
70 unsigned long in32r(unsigned int);
71 void out32(unsigned int, unsigned long value
);
72 void out32r(unsigned int, unsigned long value
);
73 void ppcDcbf(unsigned long value
);
74 void ppcDcbi(unsigned long value
);
76 void ppcDcbz(unsigned long value
);
78 #if defined(CONFIG_MPC83xx)
79 void ppcDWload(unsigned int *addr
, unsigned int *ret
);
80 void ppcDWstore(unsigned int *addr
, unsigned int *value
);
81 void disable_addr_trans(void);
82 void enable_addr_trans(void);
83 #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
84 void ddr_enable_ecc(unsigned int dram_size
);
88 #if defined(CONFIG_MPC5xxx)
89 int prt_mpc5xxx_clks(void);
92 #if defined(CONFIG_MPC85xx)
93 typedef MPC85xx_SYS_INFO sys_info_t
;
94 void get_sys_info(sys_info_t
*);
95 void ft_fixup_cpu(void *, u64
);
96 void ft_fixup_num_cores(void *);
98 #if defined(CONFIG_MPC86xx)
99 ulong
get_bus_freq(ulong
);
100 typedef MPC86xx_SYS_INFO sys_info_t
;
101 void get_sys_info(sys_info_t
*);
102 static inline ulong
get_ddr_freq(ulong dummy
)
104 return get_bus_freq(dummy
);
107 ulong
get_ddr_freq(ulong
);
110 #endif /* !__ASSEMBLY__ */
114 * Has to be included outside of the #ifndef __ASSEMBLY__ section.
115 * Otherwise might lead to compilation errors in assembler files.
117 #include <asm/cache.h>