xref: /rk3399_rockchip-uboot/arch/mips/include/asm/u-boot-mips.h (revision 3420bf1ca0631ef6347fece1e9f0eb38b1051a98)
1e034ea3bSDaniel Schwierzeck /*
2e034ea3bSDaniel Schwierzeck  * This file is released under the terms of GPL v2 and any later version.
3e034ea3bSDaniel Schwierzeck  * See the file COPYING in the root directory of the source tree for details.
4e034ea3bSDaniel Schwierzeck  *
5e034ea3bSDaniel Schwierzeck  * Copyright (C) 2003 Wolfgang Denk, DENX Software Engineering, wd@denx.de
6e034ea3bSDaniel Schwierzeck  */
7e034ea3bSDaniel Schwierzeck 
8e034ea3bSDaniel Schwierzeck extern ulong uboot_end_data;
9e034ea3bSDaniel Schwierzeck extern ulong uboot_end;
10e034ea3bSDaniel Schwierzeck 
11a52852c5SDaniel Schwierzeck static inline unsigned long bss_start(void)
12a52852c5SDaniel Schwierzeck {
13a52852c5SDaniel Schwierzeck 	extern ulong __bss_start;
14a52852c5SDaniel Schwierzeck 	return (unsigned long) &__bss_start;
15a52852c5SDaniel Schwierzeck }
16a52852c5SDaniel Schwierzeck 
17a52852c5SDaniel Schwierzeck static inline unsigned long bss_end(void)
18a52852c5SDaniel Schwierzeck {
19a52852c5SDaniel Schwierzeck 	extern ulong __bss_end;
20a52852c5SDaniel Schwierzeck 	return (unsigned long) &__bss_end;
21a52852c5SDaniel Schwierzeck }
22a52852c5SDaniel Schwierzeck 
23*3420bf1cSDaniel Schwierzeck static inline unsigned long image_copy_end(void)
24*3420bf1cSDaniel Schwierzeck {
25*3420bf1cSDaniel Schwierzeck 	extern ulong __image_copy_end;
26*3420bf1cSDaniel Schwierzeck 	return (unsigned long) &__image_copy_end;
27*3420bf1cSDaniel Schwierzeck }
28*3420bf1cSDaniel Schwierzeck 
29e034ea3bSDaniel Schwierzeck extern int incaip_set_cpuclk(void);
30