diff options
| author | Wolfgang Denk <wd@denx.de> | 2012-08-09 21:04:05 +0200 |
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2012-08-09 21:04:05 +0200 |
| commit | 1d56f63dab2d9b1ea60601f5f3ae22d8664d8aa5 (patch) | |
| tree | 249c74a50e495c32d6b8f387112f712430e38d22 /arch/powerpc/include/asm/fsl_lbc.h | |
| parent | d764c5043d6d72e012f3e50092344ebd57a0c242 (diff) | |
| parent | 5c5befda58e4a3f198a033e8a9952b2b309acc86 (diff) | |
| download | olio-uboot-2014.01-1d56f63dab2d9b1ea60601f5f3ae22d8664d8aa5.tar.xz olio-uboot-2014.01-1d56f63dab2d9b1ea60601f5f3ae22d8664d8aa5.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
* 'master' of git://git.denx.de/u-boot-mpc85xx:
powerpc/85xx: use CONFIG_SYS_FSL_PCIE_COMPAT macro when setting the PCI LIODNs
powerpc/mpc85xx: Ignore E bit for BSC9130/1
powerpc/sgmii: To support PHY link state auto detect in SGMII mode
powerpc/85xx: improve definition of BR_PHYS_ADDR macro
powerpc/p2041: configure the CPLD lane_mux according to RCW
powerpc/ddr: fix fsl_ddr_get_dimm_params compile error
powerpc/corenet: fix compile error when CONFIG_SYS_NO_FLASH is defined
powerpc/mpc8xxx: fix workaround for errata DDR111 and DDR134 for DDR over 4GB
powerpc/p1022ds: fix DIU/LBC switching with NAND enabled
powerpc/p1022ds: add support for SPI and SD boot
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'arch/powerpc/include/asm/fsl_lbc.h')
| -rw-r--r-- | arch/powerpc/include/asm/fsl_lbc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/fsl_lbc.h b/arch/powerpc/include/asm/fsl_lbc.h index 2a23d84cb..d1def75c6 100644 --- a/arch/powerpc/include/asm/fsl_lbc.h +++ b/arch/powerpc/include/asm/fsl_lbc.h @@ -82,10 +82,10 @@ void lbc_sdram_init(void); /* Convert an address into the right format for the BR registers */ #if defined(CONFIG_PHYS_64BIT) && !defined(CONFIG_FSL_ELBC) -#define BR_PHYS_ADDR(x) ((unsigned long)((x & 0x0ffff8000ULL) | \ - ((x & 0x300000000ULL) >> 19))) +#define BR_PHYS_ADDR(x) \ + ((u32)(((x) & 0x0ffff8000ULL) | (((x) & 0x300000000ULL) >> 19))) #else -#define BR_PHYS_ADDR(x) (x & 0xffff8000) +#define BR_PHYS_ADDR(x) ((u32)(x) & 0xffff8000) #endif /* OR - Option Registers |