3 * Common header file for blackfin family of processors.
10 #include <mach/mem_map.h>
15 static inline ulong get_l1_scratch_start_cpu(int cpu)
17 return (cpu) ? COREB_L1_SCRATCH_START : COREA_L1_SCRATCH_START;
19 static inline ulong get_l1_code_start_cpu(int cpu)
21 return (cpu) ? COREB_L1_CODE_START : COREA_L1_CODE_START;
23 static inline ulong get_l1_data_a_start_cpu(int cpu)
25 return (cpu) ? COREB_L1_DATA_A_START : COREA_L1_DATA_A_START;
27 static inline ulong get_l1_data_b_start_cpu(int cpu)
29 return (cpu) ? COREB_L1_DATA_B_START : COREA_L1_DATA_B_START;
32 static inline ulong get_l1_scratch_start(void)
34 return get_l1_scratch_start_cpu(blackfin_core_id());
36 static inline ulong get_l1_code_start(void)
38 return get_l1_code_start_cpu(blackfin_core_id());
40 static inline ulong get_l1_data_a_start(void)
42 return get_l1_data_a_start_cpu(blackfin_core_id());
44 static inline ulong get_l1_data_b_start(void)
46 return get_l1_data_b_start_cpu(blackfin_core_id());
49 #else /* !CONFIG_SMP */
51 static inline ulong get_l1_scratch_start_cpu(int cpu)
53 return L1_SCRATCH_START;
55 static inline ulong get_l1_code_start_cpu(int cpu)
59 static inline ulong get_l1_data_a_start_cpu(int cpu)
61 return L1_DATA_A_START;
63 static inline ulong get_l1_data_b_start_cpu(int cpu)
65 return L1_DATA_B_START;
67 static inline ulong get_l1_scratch_start(void)
69 return get_l1_scratch_start_cpu(0);
71 static inline ulong get_l1_code_start(void)
73 return get_l1_code_start_cpu(0);
75 static inline ulong get_l1_data_a_start(void)
77 return get_l1_data_a_start_cpu(0);
79 static inline ulong get_l1_data_b_start(void)
81 return get_l1_data_b_start_cpu(0);
84 #endif /* CONFIG_SMP */
85 #endif /* __ASSEMBLY__ */
87 #endif /* _MEM_MAP_H_ */