diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-03-21 21:07:59 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-03-22 13:22:06 +0100 |
commit | 7ebafb7ec1a0285af8380623c009576f92583b98 (patch) | |
tree | 9b528c7f1987245db991bb540473bd6f43fb2680 /cpu/arm926ejs/at91/Makefile | |
parent | 1332a2a0694c8e10a5bade397cf83645b2c3fd7e (diff) | |
download | u-boot-imx-7ebafb7ec1a0285af8380623c009576f92583b98.zip u-boot-imx-7ebafb7ec1a0285af8380623c009576f92583b98.tar.gz u-boot-imx-7ebafb7ec1a0285af8380623c009576f92583b98.tar.bz2 |
at91sam9/at91cap: move common spi initialisation to cpu
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'cpu/arm926ejs/at91/Makefile')
-rw-r--r-- | cpu/arm926ejs/at91/Makefile | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/cpu/arm926ejs/at91/Makefile b/cpu/arm926ejs/at91/Makefile index 66d4d6d..e547ab5 100644 --- a/cpu/arm926ejs/at91/Makefile +++ b/cpu/arm926ejs/at91/Makefile @@ -25,11 +25,26 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).a -COBJS-$(CONFIG_AT91CAP9) += at91cap9_serial.o -COBJS-$(CONFIG_AT91SAM9260) += at91sam9260_serial.o -COBJS-$(CONFIG_AT91SAM9261) += at91sam9261_serial.o -COBJS-$(CONFIG_AT91SAM9263) += at91sam9263_serial.o -COBJS-$(CONFIG_AT91SAM9RL) += at91sam9rl_serial.o +ifdef CONFIG_AT91CAP9 +COBJS-y += at91cap9_serial.o +COBJS-$(CONFIG_HAS_DATAFLASH) += at91cap9_spi.o +endif +ifdef CONFIG_AT91SAM9260 +COBJS-y += at91sam9260_serial.o +COBJS-$(CONFIG_HAS_DATAFLASH) += at91sam9260_spi.o +endif +ifdef CONFIG_AT91SAM9261 +COBJS-y += at91sam9261_serial.o +COBJS-$(CONFIG_HAS_DATAFLASH) += at91sam9261_spi.o +endif +ifdef CONFIG_AT91SAM9263 +COBJS-y += at91sam9263_serial.o +COBJS-$(CONFIG_HAS_DATAFLASH) += at91sam9263_spi.o +endif +ifdef CONFIG_AT91SAM9RL +COBJS-y += at91sam9rl_serial.o +COBJS-$(CONFIG_HAS_DATAFLASH) += at91sam9rl_spi.o +endif COBJS-$(CONFIG_HAS_DATAFLASH) += spi.o COBJS-y += timer.o COBJS-y += usb.o |