diff options
| author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-05-30 14:45:06 +0200 | 
|---|---|---|
| committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2013-05-30 14:45:06 +0200 | 
| commit | a19b0dd62d7b8efc658fa1aa685ff5665878f3ee (patch) | |
| tree | 1fadf0fb3da83203ba28f209ec99e1b33e03f4d5 /include/common.h | |
| parent | 60985bba58e7695dac1fddae8cdbb62d8cfd1254 (diff) | |
| parent | a71d45d706a5b51c348160163b6c159632273fed (diff) | |
| download | olio-uboot-2014.01-a19b0dd62d7b8efc658fa1aa685ff5665878f3ee.tar.xz olio-uboot-2014.01-a19b0dd62d7b8efc658fa1aa685ff5665878f3ee.zip | |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
Conflicts:
	common/cmd_fpga.c
	drivers/usb/host/ohci-at91.c
Diffstat (limited to 'include/common.h')
| -rw-r--r-- | include/common.h | 41 | 
1 files changed, 31 insertions, 10 deletions
| diff --git a/include/common.h b/include/common.h index 8a1f3e406..e682bd823 100644 --- a/include/common.h +++ b/include/common.h @@ -71,8 +71,6 @@ typedef volatile unsigned char	vu_char;  #include <mpc5xxx.h>  #elif defined(CONFIG_MPC512X)  #include <asm/immap_512x.h> -#elif defined(CONFIG_MPC8220) -#include <asm/immap_8220.h>  #elif defined(CONFIG_8260)  #if   defined(CONFIG_MPC8247) \     || defined(CONFIG_MPC8248) \ @@ -199,18 +197,35 @@ typedef void (interrupt_handler_t)(void *);   * General Purpose Utilities   */  #define min(X, Y)				\ -	({ typeof (X) __x = (X);		\ -		typeof (Y) __y = (Y);		\ +	({ typeof(X) __x = (X);			\ +		typeof(Y) __y = (Y);		\  		(__x < __y) ? __x : __y; })  #define max(X, Y)				\ -	({ typeof (X) __x = (X);		\ -		typeof (Y) __y = (Y);		\ +	({ typeof(X) __x = (X);			\ +		typeof(Y) __y = (Y);		\  		(__x > __y) ? __x : __y; })  #define MIN(x, y)  min(x, y)  #define MAX(x, y)  max(x, y) +#define min3(X, Y, Z)				\ +	({ typeof(X) __x = (X);			\ +		typeof(Y) __y = (Y);		\ +		typeof(Z) __z = (Z);		\ +		__x < __y ? (__x < __z ? __x : __z) :	\ +		(__y < __z ? __y : __z); }) + +#define max3(X, Y, Z)				\ +	({ typeof(X) __x = (X);			\ +		typeof(Y) __y = (Y);		\ +		typeof(Z) __z = (Z);		\ +		__x > __y ? (__x > __z ? __x : __z) :	\ +		(__y > __z ? __y : __z); }) + +#define MIN3(x, y, z)  min3(x, y, z) +#define MAX3(x, y, z)  max3(x, y, z) +  /*   * Return the absolute value of a number.   * @@ -323,6 +338,16 @@ int update_flash_size(int flash_size);   */  void board_show_dram(ulong size); +/** + * arch_fixup_memory_node() - Write arch-specific memory information to fdt + * + * Defined in arch/$(ARCH)/lib/bootm.c + * + * @blob:	FDT blob to write to + * @return 0 if ok, or -ve FDT_ERR_... on failure + */ +int arch_fixup_memory_node(void *blob); +  /* common/flash.c */  void flash_perror (int); @@ -556,7 +581,6 @@ void	trap_init     (ulong);      defined (CONFIG_74x)	|| \      defined (CONFIG_75x)	|| \      defined (CONFIG_74xx)	|| \ -    defined (CONFIG_MPC8220)	|| \      defined (CONFIG_MPC85xx)	|| \      defined (CONFIG_MPC86xx)	|| \      defined (CONFIG_MPC83xx) @@ -648,9 +672,6 @@ int	prt_8260_clks (void);  #elif defined(CONFIG_MPC5xxx)  int	prt_mpc5xxx_clks (void);  #endif -#if defined(CONFIG_MPC8220) -int	prt_mpc8220_clks (void); -#endif  #ifdef CONFIG_4xx  ulong	get_OPB_freq (void);  ulong	get_PCI_freq (void); |