Skip to content
Snippets Groups Projects
Commit a796cdf9 authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Kim Phillips
Browse files

83xx: split COBJS onto separate lines


..plus get rid of some #ifdefs in the .c files.

Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
parent 46a3aeea
No related branches found
No related tags found
No related merge requests found
...@@ -28,9 +28,19 @@ include $(TOPDIR)/config.mk ...@@ -28,9 +28,19 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).a LIB = $(obj)lib$(CPU).a
START = start.o START = start.o
COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o \
spd_sdram.o ecc.o qe_io.o pci.o fdt.o
COBJS-y += traps.o
COBJS-y += cpu.o
COBJS-y += cpu_init.o
COBJS-y += speed.o
COBJS-y += interrupts.o
COBJS-y += spd_sdram.o
COBJS-y += ecc.o
COBJS-$(CONFIG_QE) += qe_io.o
COBJS-$(CONFIG_83XX_GENERIC_PCI) += pci.o
COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
COBJS := $(COBJS-y)
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
START := $(addprefix $(obj),$(START)) START := $(addprefix $(obj),$(START))
......
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
*/ */
#include <common.h> #include <common.h>
#if defined(CONFIG_OF_LIBFDT)
#include <libfdt.h> #include <libfdt.h>
#include <fdt_support.h> #include <fdt_support.h>
...@@ -68,4 +65,3 @@ void ft_cpu_setup(void *blob, bd_t *bd) ...@@ -68,4 +65,3 @@ void ft_cpu_setup(void *blob, bd_t *bd)
fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize); fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
} }
#endif /* CONFIG_OF_LIBFDT */
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include <asm/mpc8349_pci.h> #include <asm/mpc8349_pci.h>
#ifdef CONFIG_83XX_GENERIC_PCI
#define MAX_BUSES 2 #define MAX_BUSES 2
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -209,4 +208,3 @@ void ft_pci_setup(void *blob, bd_t *bd) ...@@ -209,4 +208,3 @@ void ft_pci_setup(void *blob, bd_t *bd)
} }
} }
#endif /* CONFIG_OF_LIBFDT */ #endif /* CONFIG_OF_LIBFDT */
#endif /* CONFIG_83XX_GENERIC_PCI */
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "asm/io.h" #include "asm/io.h"
#include "asm/immap_83xx.h" #include "asm/immap_83xx.h"
#if defined(CONFIG_QE)
#define NUM_OF_PINS 32 #define NUM_OF_PINS 32
void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign) void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
{ {
...@@ -81,5 +80,3 @@ void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign) ...@@ -81,5 +80,3 @@ void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
out_be32(&par_io->ioport[port].ppar1, pin_2bit_assign | tmp_val); out_be32(&par_io->ioport[port].ppar1, pin_2bit_assign | tmp_val);
} }
} }
#endif /* CONFIG_QE */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment