tahvo-usb: Use platform device interface properly (don't crash)
[openwrt.git] / package / uboot-lantiq / patches / 100-ifx_targets.patch
1 --- a/MAKEALL
2 +++ b/MAKEALL
3 @@ -730,6 +730,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 @@ -761,6 +767,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 @@ -447,7 +447,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 @@ -3370,7 +3370,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 @@ -3411,6 +3411,50 @@ 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 +easy50812%config : unconfig
72 + @mkdir -p $(obj)include
73 + @mkdir -p $(obj)board/infineon/easy50812
74 + @[ -z "$(findstring ramboot,$@)" ] || \
75 + { echo "TEXT_BASE = 0xA0400000" >$(obj)board/infineon/easy50812/config.tmp ; \
76 + echo "#define CONFIG_SYS_RAMBOOT" >>$(obj)include/config.h ; \
77 + $(XECHO) "... with ramboot configuration" ; \
78 + }
79 + @if [ "$(findstring _DDR,$@)" ] ; then \
80 + echo "#define CONFIG_USE_DDR_RAM" >>$(obj)include/config.h ; \
81 + DDR=$(subst DDR,,$(filter DDR%,$(subst _, ,$@))); \
82 + case "$${DDR}" in \
83 + 111M|166M|e111M|e166M|promos400|samsung166|psc166) \
84 + $(XECHO) "... with DDR RAM config $${DDR}" ; \
85 + echo "#define CONFIG_USE_DDR_RAM_CFG_$${DDR}" >>$(obj)include/config.h ;; \
86 + *) $(XECHO) "... DDR RAM config \\\"$${DDR}\\\" unknown, use default"; \
87 + esac; \
88 + fi
89 + @$(MKCONFIG) -a $(word 1,$(subst _, ,$@)) mips mips easy50812 infineon ar9
90 +
91 +#########################################################################
92 ## MIPS32 AU1X00
93 #########################################################################
94
95 --- a/drivers/net/Makefile
96 +++ b/drivers/net/Makefile
97 @@ -43,6 +43,7 @@ COBJS-$(CONFIG_FEC_MXC) += fec_mxc.o
98 COBJS-$(CONFIG_FSLDMAFEC) += fsl_mcdmafec.o mcfmii.o
99 COBJS-$(CONFIG_FTMAC100) += ftmac100.o
100 COBJS-$(CONFIG_GRETH) += greth.o
101 +COBJS-$(CONFIG_IFX_ETOP) += ifx_etop.o
102 COBJS-$(CONFIG_INCA_IP_SWITCH) += inca-ip_sw.o
103 COBJS-$(CONFIG_KIRKWOOD_EGIGA) += kirkwood_egiga.o
104 COBJS-$(CONFIG_DRIVER_KS8695ETH) += ks8695eth.o
105 --- a/drivers/serial/Makefile
106 +++ b/drivers/serial/Makefile
107 @@ -28,6 +28,7 @@ LIB := $(obj)libserial.a
108 COBJS-$(CONFIG_ARM_DCC) += arm_dcc.o
109 COBJS-$(CONFIG_AT91RM9200_USART) += at91rm9200_usart.o
110 COBJS-$(CONFIG_ATMEL_USART) += atmel_usart.o
111 +COBJS-$(CONFIG_IFX_ASC) += ifx_asc.o
112 COBJS-$(CONFIG_MCFUART) += mcfuart.o
113 COBJS-$(CONFIG_NS9750_UART) += ns9750_serial.o
114 COBJS-$(CONFIG_SYS_NS16550) += ns16550.o
115 --- a/include/netdev.h
116 +++ b/include/netdev.h
117 @@ -57,6 +57,7 @@ int fecmxc_initialize (bd_t *bis);
118 int ftmac100_initialize(bd_t *bits);
119 int greth_initialize(bd_t *bis);
120 void gt6426x_eth_initialize(bd_t *bis);
121 +int ifx_etop_initialize(bd_t *bis);
122 int inca_switch_initialize(bd_t *bis);
123 int kirkwood_egiga_initialize(bd_t *bis);
124 int lan91c96_initialize(u8 dev_num, int base_addr);
125 @@ -85,6 +86,7 @@ int uec_standard_init(bd_t *bis);
126 int uli526x_initialize(bd_t *bis);
127 int sh_eth_initialize(bd_t *bis);
128 int dm9000_initialize(bd_t *bis);
129 +int lq_eth_initialize(bd_t * bis);
130
131 /* Boards with PCI network controllers can call this from their board_eth_init()
132 * function to initialize whatever's on board.
This page took 0.045645 seconds and 5 git commands to generate.