]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc: Conditionally compile bat_rw.c
authorPeter Tyser <ptyser@xes-inc.com>
Fri, 8 Oct 2010 03:32:48 +0000 (22:32 -0500)
committerWolfgang Denk <wd@denx.de>
Wed, 13 Oct 2010 19:44:10 +0000 (21:44 +0200)
Only a few PPC boards actually use the common BAT manipulation
functions, so only compile it for them.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
arch/powerpc/lib/Makefile
include/configs/Alaska8220.h
include/configs/MPC8610HPCD.h
include/configs/MPC8641HPCN.h
include/configs/XPEDITE5170.h
include/configs/Yukon8220.h
include/configs/sbc8641d.h

index 2065b6d807fc782c10a37c6d5762ef8b3544ca2c..cec7666b446c970119252b426b61623191c99ed6 100644 (file)
@@ -30,7 +30,7 @@ SOBJS-y       += ppcstring.o
 SOBJS-y        += ticks.o
 SOBJS-y        += reloc.o
 
-COBJS-y        += bat_rw.o
+COBJS-$(CONFIG_BAT_RW) += bat_rw.o
 COBJS-y        += board.o
 COBJS-y        += bootm.o
 COBJS-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount.o
index 576aa740625fab9c8ae55dbcfd076a51c21899b4..85b68be544179a2120b9cc44478d31c7af08dc3e 100644 (file)
@@ -31,6 +31,7 @@
 #define CONFIG_MPC8220         1
 #define CONFIG_ALASKA8220      1       /* ... on Alaska board  */
 
+#define CONFIG_BAT_RW          1       /* Use common BAT rw code */
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* Input clock running at 30Mhz, read Hid1 for the CPU multiplier to
index 645d947a5da646b92ac0dde8f8d323f26f28e33e..2b7b8b54badc6c47b6e4f6790891454720518504 100644 (file)
@@ -53,6 +53,7 @@
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_INTERRUPTS              /* enable pci, srio, ddr interrupts */
 
+#define CONFIG_BAT_RW          1       /* Use common BAT rw code */
 #define CONFIG_HIGH_BATS       1       /* High BATs supported & enabled */
 #define CONFIG_ALTIVEC         1
 
index 3b80d14e98a8e822b07c47acbea15c165547440c..d92b12df74808a8427b45bd17fba84dd1100627a 100644 (file)
@@ -68,6 +68,7 @@
 #define CONFIG_TSEC_ENET               /* tsec ethernet support */
 #define CONFIG_ENV_OVERWRITE
 
+#define CONFIG_BAT_RW          1       /* Use common BAT rw code */
 #define CONFIG_HIGH_BATS       1       /* High BATs supported and enabled */
 #define CONFIG_SYS_NUM_ADDR_MAP 8      /* Number of addr map slots = 8 dbats */
 
index 8770a8dab99e13d876baf7e0eea97d504e3d6c23..306baeda9da8de527b6f0da43e66768a49e4af63 100644 (file)
@@ -36,6 +36,7 @@
 #define CONFIG_SYS_BOARD_NAME  "XPedite5170"
 #define CONFIG_LINUX_RESET_VEC 0x100   /* Reset vector used by Linux */
 #define CONFIG_BOARD_EARLY_INIT_R      /* Call board_pre_init */
+#define CONFIG_BAT_RW          1       /* Use common BAT rw code */
 #define CONFIG_HIGH_BATS       1       /* High BATs supported and enabled */
 #define CONFIG_ALTIVEC         1
 
index c439068f533fc07bc32f264d98514748d92ce1bb..8ec6c84eb3155abd9843f5a1fb2612c11f4aefb7 100644 (file)
@@ -31,6 +31,7 @@
 #define CONFIG_MPC8220         1
 #define CONFIG_YUKON8220       1       /* ... on Yukon board   */
 
+#define CONFIG_BAT_RW          1       /* Use common BAT rw code */
 #define CONFIG_HIGH_BATS       1       /* High BATs supported */
 
 /* Input clock running at 30Mhz, read Hid1 for the CPU multiplier to
index a7831c05450d0c3ca858c0f0abd7703d68de12fe..490d4f548deca1bbb205de85a5953706c9bdc3d0 100644 (file)
@@ -64,6 +64,7 @@
 #define CONFIG_TSEC_ENET               /* tsec ethernet support */
 #define CONFIG_ENV_OVERWRITE
 
+#define CONFIG_BAT_RW          1       /* Use common BAT rw code */
 #define CONFIG_HIGH_BATS       1       /* High BATs supported and enabled */
 
 #undef CONFIG_SPD_EEPROM               /* Do not use SPD EEPROM for DDR setup*/