diff options
| author | Tom Rini <trini@ti.com> | 2013-03-18 12:31:00 -0400 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-03-18 14:37:18 -0400 | 
| commit | 0ce033d2582129243aca10d3072a221386bbba44 (patch) | |
| tree | 6e50a3f4eed22007549dc740d0fa647a6c8cec5b /arch/arm/cpu/armv7/omap-common/hwinit-common.c | |
| parent | b5bec88434adb52413f1bc33fa63d7642cb8fd35 (diff) | |
| parent | b27673ccbd3d5435319b5c09c3e7061f559f925d (diff) | |
| download | olio-uboot-2014.01-0ce033d2582129243aca10d3072a221386bbba44.tar.xz olio-uboot-2014.01-0ce033d2582129243aca10d3072a221386bbba44.zip | |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Albert's rework of the linker scripts conflicted with Simon's making
everyone use __bss_end.  We also had a minor conflict over
README.scrapyard being added to in mainline and enhanced in
u-boot-arm/master with proper formatting.
Conflicts:
	arch/arm/cpu/ixp/u-boot.lds
	arch/arm/cpu/u-boot.lds
	arch/arm/lib/Makefile
	board/actux1/u-boot.lds
	board/actux2/u-boot.lds
	board/actux3/u-boot.lds
	board/dvlhost/u-boot.lds
	board/freescale/mx31ads/u-boot.lds
	doc/README.scrapyard
	include/configs/tegra-common.h
Build tested for all of ARM and run-time tested on am335x_evm.
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap-common/hwinit-common.c')
| -rw-r--r-- | arch/arm/cpu/armv7/omap-common/hwinit-common.c | 23 | 
1 files changed, 17 insertions, 6 deletions
| diff --git a/arch/arm/cpu/armv7/omap-common/hwinit-common.c b/arch/arm/cpu/armv7/omap-common/hwinit-common.c index 9ef10bdf2..05ff2e868 100644 --- a/arch/arm/cpu/armv7/omap-common/hwinit-common.c +++ b/arch/arm/cpu/armv7/omap-common/hwinit-common.c @@ -32,6 +32,8 @@  #include <asm/arch/sys_proto.h>  #include <asm/sizes.h>  #include <asm/emif.h> +#include <asm/omap_common.h> +#include <linux/compiler.h>  DECLARE_GLOBAL_DATA_PTR; @@ -79,12 +81,17 @@ u32 cortex_rev(void)  void omap_rev_string(void)  {  	u32 omap_rev = omap_revision(); +	u32 soc_variant	= (omap_rev & 0xF0000000) >> 28;  	u32 omap_variant = (omap_rev & 0xFFFF0000) >> 16;  	u32 major_rev = (omap_rev & 0x00000F00) >> 8;  	u32 minor_rev = (omap_rev & 0x000000F0) >> 4; -	printf("OMAP%x ES%x.%x\n", omap_variant, major_rev, -		minor_rev); +	if (soc_variant) +		printf("OMAP"); +	else +		printf("DRA"); +	printf("%x ES%x.%x\n", omap_variant, major_rev, +	       minor_rev);  }  #ifdef CONFIG_SPL_BUILD @@ -99,6 +106,10 @@ void spl_display_print(void)  }  #endif +void __weak srcomp_enable(void) +{ +} +  /*   * Routine: s_init   * Description: Does early system init of watchdog, muxing,  andclocks @@ -116,6 +127,8 @@ void spl_display_print(void)  void s_init(void)  {  	init_omap_revision(); +	hw_data_init(); +  #ifdef CONFIG_SPL_BUILD  	if (warm_reset() && (omap_revision() <= OMAP5430_ES1_0))  		force_emif_self_refresh(); @@ -123,6 +136,7 @@ void s_init(void)  	watchdog_init();  	set_mux_conf_regs();  #ifdef CONFIG_SPL_BUILD +	srcomp_enable();  	setup_clocks_for_console();  	gd = &gdata; @@ -235,10 +249,7 @@ int checkboard(void)   */  u32 get_device_type(void)  { -	struct omap_sys_ctrl_regs *ctrl = -		      (struct omap_sys_ctrl_regs *) SYSCTRL_GENERAL_CORE_BASE; - -	return (readl(&ctrl->control_status) & +	return (readl((*ctrl)->control_status) &  				      (DEVICE_TYPE_MASK)) >> DEVICE_TYPE_SHIFT;  } |