diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/blackfin/cpu/.gitignore | 2 | ||||
| -rw-r--r-- | arch/blackfin/cpu/Makefile | 10 | ||||
| -rw-r--r-- | arch/blackfin/cpu/bootrom-asm-offsets.awk | 41 | ||||
| -rw-r--r-- | arch/blackfin/cpu/bootrom-asm-offsets.c.in | 12 | ||||
| -rw-r--r-- | arch/blackfin/cpu/gpio.c | 2 | ||||
| -rw-r--r-- | arch/blackfin/include/asm/gpio.h | 2 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc83xx/Makefile | 4 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/speed.c | 8 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/start.S | 4 | 
9 files changed, 15 insertions, 70 deletions
| diff --git a/arch/blackfin/cpu/.gitignore b/arch/blackfin/cpu/.gitignore index ba986d8ba..3df1fa21c 100644 --- a/arch/blackfin/cpu/.gitignore +++ b/arch/blackfin/cpu/.gitignore @@ -1,4 +1,2 @@ -bootrom-asm-offsets.[chs] -  init.lds  init.elf diff --git a/arch/blackfin/cpu/Makefile b/arch/blackfin/cpu/Makefile index 243dc22a0..a61594ab7 100644 --- a/arch/blackfin/cpu/Makefile +++ b/arch/blackfin/cpu/Makefile @@ -23,16 +23,6 @@ obj-y  += traps.o  extra-y += check_initcode -extra-y += bootrom-asm-offsets.h -$(obj)bootrom-asm-offsets.c: bootrom-asm-offsets.c.in bootrom-asm-offsets.awk -	echo '#include <asm/mach-common/bits/bootrom.h>' | $(CPP) $(CPPFLAGS) - | gawk -f ./bootrom-asm-offsets.awk > $@.tmp -	mv $@.tmp $@ -$(obj)bootrom-asm-offsets.s: $(obj)bootrom-asm-offsets.c -	$(CC) $(CFLAGS) -S $^ -o $@.tmp -	mv $@.tmp $@ -$(obj)bootrom-asm-offsets.h: $(obj)bootrom-asm-offsets.s -	sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" $^ > $@ -  # make sure our initcode (which goes into LDR) does not  # have relocs or external references  $(obj)initcode.o: CFLAGS += -fno-function-sections -fno-data-sections diff --git a/arch/blackfin/cpu/bootrom-asm-offsets.awk b/arch/blackfin/cpu/bootrom-asm-offsets.awk deleted file mode 100644 index 1d6182425..000000000 --- a/arch/blackfin/cpu/bootrom-asm-offsets.awk +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/gawk -f -BEGIN { -	print "/* DO NOT EDIT: AUTOMATICALLY GENERATED" -	print " * Input files: bootrom-asm-offsets.awk bootrom-asm-offsets.c.in" -	print " * DO NOT EDIT: AUTOMATICALLY GENERATED" -	print " */" -	print "" -	system("cat bootrom-asm-offsets.c.in") -	print "{" -} - -{ -	/* find a structure definition */ -	if ($0 ~ /typedef struct .* {/) { -		delete members; -		i = 0; - -		/* extract each member of the structure */ -		while (1) { -			getline -			if ($1 == "}") -				break; -			gsub(/[*;]/, ""); -			members[i++] = $NF; -		} - -		/* grab the structure's name */ -		struct = $NF; -		sub(/;$/, "", struct); - -		/* output the DEFINE() macros */ -		while (i-- > 0) -			print "\tDEFINE(" struct ", " members[i] ");" -		print "" -	} -} - -END { -	print "\treturn 0;" -	print "}" -} diff --git a/arch/blackfin/cpu/bootrom-asm-offsets.c.in b/arch/blackfin/cpu/bootrom-asm-offsets.c.in deleted file mode 100644 index 64c2f2412..000000000 --- a/arch/blackfin/cpu/bootrom-asm-offsets.c.in +++ /dev/null @@ -1,12 +0,0 @@ -/* A little trick taken from the kernel asm-offsets.h where we convert - * the C structures automatically into a bunch of defines for use in - * the assembly files. - */ - -#include <linux/stddef.h> -#include <asm/mach-common/bits/bootrom.h> - -#define _DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val)) -#define DEFINE(s, m) _DEFINE(offset_##s##_##m, offsetof(s, m)) - -int main(int argc, char * const argv[]) diff --git a/arch/blackfin/cpu/gpio.c b/arch/blackfin/cpu/gpio.c index 5e9c68af8..86da706f0 100644 --- a/arch/blackfin/cpu/gpio.c +++ b/arch/blackfin/cpu/gpio.c @@ -12,7 +12,7 @@  #include <asm/gpio.h>  #include <asm/portmux.h> -#ifdef CONFIG_ADI_GPIO1 +#ifndef CONFIG_ADI_GPIO2  #if ANOMALY_05000311 || ANOMALY_05000323  enum {  	AWA_data = SYSCR, diff --git a/arch/blackfin/include/asm/gpio.h b/arch/blackfin/include/asm/gpio.h index 376ec02b6..6ebcf01af 100644 --- a/arch/blackfin/include/asm/gpio.h +++ b/arch/blackfin/include/asm/gpio.h @@ -72,7 +72,7 @@  #ifndef __ASSEMBLY__ -#ifdef CONFIG_ADI_GPIO1 +#ifndef CONFIG_ADI_GPIO2  void set_gpio_dir(unsigned, unsigned short);  void set_gpio_inen(unsigned, unsigned short);  void set_gpio_polar(unsigned, unsigned short); diff --git a/arch/powerpc/cpu/mpc83xx/Makefile b/arch/powerpc/cpu/mpc83xx/Makefile index c345dd6ae..cf9116274 100644 --- a/arch/powerpc/cpu/mpc83xx/Makefile +++ b/arch/powerpc/cpu/mpc83xx/Makefile @@ -38,9 +38,7 @@ obj-$(CONFIG_OF_LIBFDT) += fdt.o  # Stub implementations of cache management functions for USB  obj-y += cache.o -ifdef CONFIG_SYS_FSL_DDR2 -obj-$(CONFIG_MPC8349) += $(SRCTREE)/drivers/ddr/fsl/mpc85xx_ddr_gen2.o -else +ifndef CONFIG_SYS_FSL_DDRC_GEN2  obj-y += spd_sdram.o  endif  obj-$(CONFIG_SYS_FSL_DDR2) += law.o diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c index 1a58a194f..46ae80c4d 100644 --- a/arch/powerpc/cpu/mpc85xx/speed.c +++ b/arch/powerpc/cpu/mpc85xx/speed.c @@ -86,6 +86,14 @@ void get_sys_info(sys_info_t *sys_info)  	mem_pll_rat = (in_be32(&gur->rcwsr[0]) >>  			FSL_CORENET_RCWSR0_MEM_PLL_RAT_SHIFT)  			& FSL_CORENET_RCWSR0_MEM_PLL_RAT_MASK; +	/* T4240/T4160 Rev2.0 MEM_PLL_RAT uses a value which is half of +	 * T4240/T4160 Rev1.0. eg. It's 12 in Rev1.0, however, for Rev2.0 +	 * it uses 6. +	 */ +#if defined(CONFIG_PPC_T4240) || defined(CONFIG_PPC_T4160) +	if (SVR_MAJ(get_svr()) >= 2) +		mem_pll_rat *= 2; +#endif  	if (mem_pll_rat > 2)  		sys_info->freq_ddrbus *= mem_pll_rat;  	else diff --git a/arch/powerpc/cpu/mpc85xx/start.S b/arch/powerpc/cpu/mpc85xx/start.S index 6a81fa73e..db84d10c5 100644 --- a/arch/powerpc/cpu/mpc85xx/start.S +++ b/arch/powerpc/cpu/mpc85xx/start.S @@ -886,7 +886,11 @@ delete_ccsr_l2_tlb:  	erratum_set_dcsr 0xb0008 0x00900000  	erratum_set_dcsr 0xb0e40 0xe00a0000  	erratum_set_ccsr 0x18600 CONFIG_SYS_FSL_CORENET_SNOOPVEC_COREONLY +#ifdef  CONFIG_RAMBOOT_PBL +	erratum_set_ccsr 0x10f00 0x495e5000 +#else  	erratum_set_ccsr 0x10f00 0x415e5000 +#endif  	erratum_set_ccsr 0x11f00 0x415e5000  	/* Make temp mapping uncacheable again, if it was initially */ |