add uboot-lantiq (based on a patch contributed by Lantiq)
[openwrt/svn-archive/archive.git] / package / uboot-lantiq / patches / 100-ifx_targets.patch
1 --- a/MAKEALL
2 +++ b/MAKEALL
3 @@ -709,6 +709,12 @@ LIST_arm=" \
4 ## MIPS Systems (default = big endian)
5 #########################################################################
6
7 +LIST_ifxcpe=" \
8 + easy50712 \
9 + easy50712_DDR166M \
10 + easy50712_DDR166M_ramboot \
11 +"
12 +
13 LIST_mips4kc=" \
14 incaip \
15 qemu_mips \
16 @@ -740,6 +746,7 @@ LIST_au1xx0=" \
17 "
18
19 LIST_mips=" \
20 + ${LIST_ifxcpe} \
21 ${LIST_mips4kc} \
22 ${LIST_mips5kc} \
23 ${LIST_au1xx0} \
24 --- a/Makefile
25 +++ b/Makefile
26 @@ -474,7 +475,7 @@ $(obj)include/autoconf.mk: $(obj)include
27 set -e ; \
28 : Extract the config macros ; \
29 $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \
30 - sed -n -f tools/scripts/define2mk.sed > $@.tmp && \
31 + sed -n -f tools/scripts/define2mk.sed |sort > $@.tmp && \
32 mv $@.tmp $@
33
34 #########################################################################
35 @@ -3354,7 +3355,7 @@ incaip_config: unconfig
36 { echo "#define CPU_CLOCK_RATE 150000000" >>$(obj)include/config.h ; \
37 $(XECHO) "... with 150MHz system clock" ; \
38 }
39 - @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip
40 + @$(MKCONFIG) -a $(call xtract_incaip,$@) mips mips incaip infineon
41
42 tb0229_config: unconfig
43 @$(MKCONFIG) $(@:_config=) mips mips tb0229
44 @@ -3395,6 +3396,30 @@ vct_platinumavc_onenand_small_config: un
45 @$(MKCONFIG) -a vct mips mips vct micronas
46
47 #########################################################################
48 +## MIPS32 ifxcpe
49 +#########################################################################
50 +
51 +easy50712%config : unconfig
52 + @mkdir -p $(obj)include
53 + @mkdir -p $(obj)board/infineon/easy50712
54 + @[ -z "$(findstring ramboot,$@)" ] || \
55 + { echo "TEXT_BASE = 0xA0400000" >$(obj)board/infineon/easy50712/config.tmp ; \
56 + echo "#define CONFIG_SYS_RAMBOOT" >>$(obj)include/config.h ; \
57 + $(XECHO) "... with ramboot configuration" ; \
58 + }
59 + @if [ "$(findstring _DDR,$@)" ] ; then \
60 + echo "#define CONFIG_USE_DDR_RAM" >>$(obj)include/config.h ; \
61 + DDR=$(subst DDR,,$(filter DDR%,$(subst _, ,$@))); \
62 + case "$${DDR}" in \
63 + 111M|166M|e111M|e166M|promos400|samsung166|psc166) \
64 + $(XECHO) "... with DDR RAM config $${DDR}" ; \
65 + echo "#define CONFIG_USE_DDR_RAM_CFG_$${DDR}" >>$(obj)include/config.h ;; \
66 + *) $(XECHO) "... DDR RAM config \\\"$${DDR}\\\" unknown, use default"; \
67 + esac; \
68 + fi
69 + @$(MKCONFIG) -a $(word 1,$(subst _, ,$@)) mips mips easy50712 infineon danube
70 +
71 +#########################################################################
72 ## MIPS32 AU1X00
73 #########################################################################
74
75 --- a/drivers/serial/Makefile
76 +++ b/drivers/serial/Makefile
77 @@ -28,6 +28,7 @@ LIB := $(obj)libserial.a
78 COBJS-$(CONFIG_ARM_DCC) += arm_dcc.o
79 COBJS-$(CONFIG_AT91RM9200_USART) += at91rm9200_usart.o
80 COBJS-$(CONFIG_ATMEL_USART) += atmel_usart.o
81 +COBJS-$(CONFIG_IFX_ASC) += ifx_asc.o
82 COBJS-$(CONFIG_MCFUART) += mcfuart.o
83 COBJS-$(CONFIG_NS9750_UART) += ns9750_serial.o
84 COBJS-$(CONFIG_SYS_NS16550) += ns16550.o
85 --- a/drivers/net/Makefile
86 +++ b/drivers/net/Makefile
87 @@ -41,6 +41,7 @@ COBJS-$(CONFIG_FEC_MXC) += fec_mxc.o
88 COBJS-$(CONFIG_FSLDMAFEC) += fsl_mcdmafec.o mcfmii.o
89 COBJS-$(CONFIG_FTMAC100) += ftmac100.o
90 COBJS-$(CONFIG_GRETH) += greth.o
91 +COBJS-$(CONFIG_IFX_ETOP) += ifx_etop.o
92 COBJS-$(CONFIG_INCA_IP_SWITCH) += inca-ip_sw.o
93 COBJS-$(CONFIG_KIRKWOOD_EGIGA) += kirkwood_egiga.o
94 COBJS-$(CONFIG_DRIVER_KS8695ETH) += ks8695eth.o
95 --- a/include/netdev.h
96 +++ b/include/netdev.h
97 @@ -55,6 +55,7 @@ int fecmxc_initialize (bd_t *bis);
98 int ftmac100_initialize(bd_t *bits);
99 int greth_initialize(bd_t *bis);
100 void gt6426x_eth_initialize(bd_t *bis);
101 +int ifx_etop_initialize(bd_t *bis);
102 int inca_switch_initialize(bd_t *bis);
103 int kirkwood_egiga_initialize(bd_t *bis);
104 int macb_eth_initialize(int id, void *regs, unsigned int phy_addr);
105 @@ -82,6 +83,7 @@ int uec_standard_init(bd_t *bis);
106 int uli526x_initialize(bd_t *bis);
107 int sh_eth_initialize(bd_t *bis);
108 int dm9000_initialize(bd_t *bis);
109 +int lq_eth_initialize(bd_t * bis);
110
111 /* Boards with PCI network controllers can call this from their board_eth_init()
112 * function to initialize whatever's on board.