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+
18 #include <asm/immap_86xx.h>
22 #include <asm/immap_85xx.h>
26 #include <asm/immap_83xx.h>
29 #include <asm/ppc4xx.h>
31 #ifdef CONFIG_SOC_DA8XX
32 #include <asm/arch/hardware.h>
34 #ifdef CONFIG_FSL_LSCH3
35 #include <asm/arch/immap_lsch3.h>
37 #ifdef CONFIG_FSL_LSCH2
38 #include <asm/arch/immap_lsch2.h>
50 #if defined(CONFIG_4xx) || \
51 defined(CONFIG_MPC85xx) || \
52 defined(CONFIG_MPC86xx) || \
53 defined(CONFIG_MPC83xx)
54 unsigned char in8(unsigned int);
55 void out8(unsigned int, unsigned char);
56 unsigned short in16(unsigned int);
57 unsigned short in16r(unsigned int);
58 void out16(unsigned int, unsigned short value);
59 void out16r(unsigned int, unsigned short value);
60 unsigned long in32(unsigned int);
61 unsigned long in32r(unsigned int);
62 void out32(unsigned int, unsigned long value);
63 void out32r(unsigned int, unsigned long value);
64 void ppcDcbf(unsigned long value);
65 void ppcDcbi(unsigned long value);
67 void ppcDcbz(unsigned long value);
69 #if defined(CONFIG_MPC83xx)
70 void ppcDWload(unsigned int *addr, unsigned int *ret);
71 void ppcDWstore(unsigned int *addr, unsigned int *value);
72 void disable_addr_trans(void);
73 void enable_addr_trans(void);
74 #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
75 void ddr_enable_ecc(unsigned int dram_size);
79 #if defined(CONFIG_MPC85xx)
80 typedef MPC85xx_SYS_INFO sys_info_t;
81 void get_sys_info(sys_info_t *);
82 void ft_fixup_cpu(void *, u64);
83 void ft_fixup_num_cores(void *);
85 #if defined(CONFIG_MPC86xx)
86 ulong get_bus_freq(ulong);
87 typedef MPC86xx_SYS_INFO sys_info_t;
88 void get_sys_info(sys_info_t *);
89 static inline ulong get_ddr_freq(ulong dummy)
91 return get_bus_freq(dummy);
94 ulong get_ddr_freq(ulong);
97 #endif /* !__ASSEMBLY__ */
101 * Has to be included outside of the #ifndef __ASSEMBLY__ section.
102 * Otherwise might lead to compilation errors in assembler files.
104 #include <asm/cache.h>