blob: dedf722c6957e818612f9fa011536d5256a3713b [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Shengzhou Liuc4d0e812013-11-22 17:39:11 +08002/*
3 * Copyright 2009-2013 Freescale Semiconductor, Inc.
Biwen Li8e4be6d2020-05-01 20:04:19 +08004 * Copyright 2020 NXP
Shengzhou Liuc4d0e812013-11-22 17:39:11 +08005 */
6
7#include <common.h>
8#include <command.h>
Simon Glass7b51b572019-08-01 09:46:52 -06009#include <env.h>
Simon Glass807765b2019-12-28 10:44:54 -070010#include <fdt_support.h>
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080011#include <i2c.h>
Simon Glass4d72caa2020-05-10 11:40:01 -060012#include <image.h>
Simon Glass52559322019-11-14 12:57:46 -070013#include <init.h>
Simon Glassf7ae49f2020-05-10 11:40:05 -060014#include <log.h>
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080015#include <netdev.h>
Simon Glass401d1c42020-10-30 21:38:53 -060016#include <asm/global_data.h>
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080017#include <linux/compiler.h>
18#include <asm/mmu.h>
19#include <asm/processor.h>
20#include <asm/immap_85xx.h>
21#include <asm/fsl_law.h>
22#include <asm/fsl_serdes.h>
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080023#include <asm/fsl_liodn.h>
24#include <fm_eth.h>
25
26#include "../common/qixis.h"
27#include "../common/vsc3316_3308.h"
Ying Zhang3ad27372014-10-31 18:06:18 +080028#include "../common/vid.h"
Shengzhou Liu254887a2014-02-21 13:16:19 +080029#include "t208xqds.h"
30#include "t208xqds_qixis.h"
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080031
32DECLARE_GLOBAL_DATA_PTR;
33
34int checkboard(void)
35{
36 char buf[64];
37 u8 sw;
38 struct cpu_type *cpu = gd->arch.cpu;
39 static const char *freq[4] = {
40 "100.00MHZ(from 8T49N222A)", "125.00MHz",
41 "156.25MHZ", "100.00MHz"
42 };
43
44 printf("Board: %sQDS, ", cpu->name);
45 sw = QIXIS_READ(arch);
46 printf("Sys ID: 0x%02x, Board Arch: V%d, ", QIXIS_READ(id), sw >> 4);
47 printf("Board Version: %c, boot from ", (sw & 0xf) + 'A' - 1);
48
Shengzhou Liu1576b552014-01-03 14:48:44 +080049#ifdef CONFIG_SDCARD
50 puts("SD/MMC\n");
51#elif CONFIG_SPIFLASH
52 puts("SPI\n");
53#else
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080054 sw = QIXIS_READ(brdcfg[0]);
55 sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT;
56
57 if (sw < 0x8)
58 printf("vBank%d\n", sw);
59 else if (sw == 0x8)
60 puts("Promjet\n");
61 else if (sw == 0x9)
62 puts("NAND\n");
63 else
64 printf("invalid setting of SW%u\n", QIXIS_LBMAP_SWITCH);
Shengzhou Liu1576b552014-01-03 14:48:44 +080065#endif
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080066
67 printf("FPGA: v%d (%s), build %d", (int)QIXIS_READ(scver),
68 qixis_read_tag(buf), (int)qixis_read_minor());
69 /* the timestamp string contains "\n" at the end */
70 printf(" on %s", qixis_read_time(buf));
71
72 puts("SERDES Reference Clocks:\n");
73 sw = QIXIS_READ(brdcfg[2]);
74 printf("SD1_CLK1=%s, SD1_CLK2=%s\n", freq[sw >> 6],
75 freq[(sw >> 4) & 0x3]);
76 printf("SD2_CLK1=%s, SD2_CLK2=%s\n", freq[(sw & 0xf) >> 2],
77 freq[sw & 0x3]);
78
79 return 0;
80}
81
Biwen Li8e4be6d2020-05-01 20:04:19 +080082int select_i2c_ch_pca9547(u8 ch, int bus_num)
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080083{
84 int ret;
85
Biwen Li8e4be6d2020-05-01 20:04:19 +080086#ifdef CONFIG_DM_I2C
87 struct udevice *dev;
88
89 ret = i2c_get_chip_for_busnum(bus_num, I2C_MUX_PCA_ADDR_PRI, 1, &dev);
90 if (ret) {
91 printf("%s: Cannot find udev for a bus %d\n", __func__,
92 bus_num);
93 return ret;
94 }
95 ret = dm_i2c_write(dev, 0, &ch, 1);
96#else
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080097 ret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &ch, 1);
Biwen Li8e4be6d2020-05-01 20:04:19 +080098#endif
Shengzhou Liuc4d0e812013-11-22 17:39:11 +080099 if (ret) {
100 puts("PCA: failed to select proper channel\n");
101 return ret;
102 }
103
104 return 0;
105}
106
Ying Zhang3ad27372014-10-31 18:06:18 +0800107int i2c_multiplexer_select_vid_channel(u8 channel)
108{
Biwen Li8e4be6d2020-05-01 20:04:19 +0800109 return select_i2c_ch_pca9547(channel, 0);
Ying Zhang3ad27372014-10-31 18:06:18 +0800110}
111
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800112int brd_mux_lane_to_slot(void)
113{
114 ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
Shengzhou Liu254887a2014-02-21 13:16:19 +0800115 u32 srds_prtcl_s1;
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800116
117 srds_prtcl_s1 = in_be32(&gur->rcwsr[4]) &
118 FSL_CORENET2_RCWSR4_SRDS1_PRTCL;
119 srds_prtcl_s1 >>= FSL_CORENET2_RCWSR4_SRDS1_PRTCL_SHIFT;
York Sun80d26182016-12-28 08:43:36 -0800120#if defined(CONFIG_TARGET_T2080QDS)
Shengzhou Liu254887a2014-02-21 13:16:19 +0800121 u32 srds_prtcl_s2 = in_be32(&gur->rcwsr[4]) &
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800122 FSL_CORENET2_RCWSR4_SRDS2_PRTCL;
123 srds_prtcl_s2 >>= FSL_CORENET2_RCWSR4_SRDS2_PRTCL_SHIFT;
Shengzhou Liu254887a2014-02-21 13:16:19 +0800124#endif
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800125
126 switch (srds_prtcl_s1) {
127 case 0:
128 /* SerDes1 is not enabled */
129 break;
York Sun80d26182016-12-28 08:43:36 -0800130#if defined(CONFIG_TARGET_T2080QDS)
Shengzhou Liu9752eb62014-05-15 19:24:11 +0800131 case 0x1b:
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800132 case 0x1c:
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800133 case 0xa2:
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800134 /* SD1(A:D) => SLOT3 SGMII
135 * SD1(G:H) => SLOT1 SGMII
136 */
Shengzhou Liu1576b552014-01-03 14:48:44 +0800137 QIXIS_WRITE(brdcfg[12], 0x1a);
138 break;
139 case 0x94:
140 case 0x95:
141 /* SD1(A:B) => SLOT3 SGMII@1.25bps
142 * SD1(C:D) => SFP Module, SGMII@3.125bps
143 * SD1(E:H) => SLOT1 SGMII@1.25bps
144 */
145 case 0x96:
146 /* SD1(A:B) => SLOT3 SGMII@1.25bps
147 * SD1(C) => SFP Module, SGMII@3.125bps
148 * SD1(D) => SFP Module, SGMII@1.25bps
149 * SD1(E:H) => SLOT1 PCIe4 x4
150 */
151 QIXIS_WRITE(brdcfg[12], 0x3a);
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800152 break;
Shengzhou Liu9752eb62014-05-15 19:24:11 +0800153 case 0x50:
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800154 case 0x51:
155 /* SD1(A:D) => SLOT3 XAUI
156 * SD1(E) => SLOT1 PCIe4
157 * SD1(F:H) => SLOT2 SGMII
158 */
159 QIXIS_WRITE(brdcfg[12], 0x15);
160 break;
161 case 0x66:
162 case 0x67:
163 /* SD1(A:D) => XFI cage
164 * SD1(E:H) => SLOT1 PCIe4
165 */
166 QIXIS_WRITE(brdcfg[12], 0xfe);
167 break;
Shengzhou Liu9752eb62014-05-15 19:24:11 +0800168 case 0x6a:
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800169 case 0x6b:
170 /* SD1(A:D) => XFI cage
171 * SD1(E) => SLOT1 PCIe4
172 * SD1(F:H) => SLOT2 SGMII
173 */
174 QIXIS_WRITE(brdcfg[12], 0xf1);
175 break;
176 case 0x6c:
177 case 0x6d:
178 /* SD1(A:B) => XFI cage
179 * SD1(C:D) => SLOT3 SGMII
180 * SD1(E:H) => SLOT1 PCIe4
181 */
182 QIXIS_WRITE(brdcfg[12], 0xda);
183 break;
Shengzhou Liu1576b552014-01-03 14:48:44 +0800184 case 0x6e:
185 /* SD1(A:B) => SFP Module, XFI
186 * SD1(C:D) => SLOT3 SGMII
187 * SD1(E:F) => SLOT1 PCIe4 x2
188 * SD1(G:H) => SLOT2 SGMII
189 */
190 QIXIS_WRITE(brdcfg[12], 0xd9);
191 break;
192 case 0xda:
193 /* SD1(A:H) => SLOT3 PCIe3 x8
194 */
195 QIXIS_WRITE(brdcfg[12], 0x0);
196 break;
197 case 0xc8:
198 /* SD1(A) => SLOT3 PCIe3 x1
199 * SD1(B) => SFP Module, SGMII@1.25bps
200 * SD1(C:D) => SFP Module, SGMII@3.125bps
201 * SD1(E:F) => SLOT1 PCIe4 x2
202 * SD1(G:H) => SLOT2 SGMII
203 */
204 QIXIS_WRITE(brdcfg[12], 0x79);
205 break;
206 case 0xab:
207 /* SD1(A:D) => SLOT3 PCIe3 x4
208 * SD1(E:H) => SLOT1 PCIe4 x4
209 */
210 QIXIS_WRITE(brdcfg[12], 0x1a);
211 break;
York Sun146ded42016-12-28 08:43:38 -0800212#elif defined(CONFIG_TARGET_T2081QDS)
Shengzhou Liu9752eb62014-05-15 19:24:11 +0800213 case 0x50:
Shengzhou Liu254887a2014-02-21 13:16:19 +0800214 case 0x51:
215 /* SD1(A:D) => SLOT2 XAUI
216 * SD1(E) => SLOT1 PCIe4 x1
217 * SD1(F:H) => SLOT3 SGMII
218 */
219 QIXIS_WRITE(brdcfg[12], 0x98);
220 QIXIS_WRITE(brdcfg[13], 0x70);
221 break;
Shengzhou Liu9752eb62014-05-15 19:24:11 +0800222 case 0x6a:
Shengzhou Liu254887a2014-02-21 13:16:19 +0800223 case 0x6b:
224 /* SD1(A:D) => XFI SFP Module
225 * SD1(E) => SLOT1 PCIe4 x1
226 * SD1(F:H) => SLOT3 SGMII
227 */
228 QIXIS_WRITE(brdcfg[12], 0x80);
229 QIXIS_WRITE(brdcfg[13], 0x70);
230 break;
231 case 0x6c:
Shengzhou Liu254887a2014-02-21 13:16:19 +0800232 case 0x6d:
233 /* SD1(A:B) => XFI SFP Module
234 * SD1(C:D) => SLOT2 SGMII
235 * SD1(E:H) => SLOT1 PCIe4 x4
236 */
237 QIXIS_WRITE(brdcfg[12], 0xe8);
238 QIXIS_WRITE(brdcfg[13], 0x0);
239 break;
240 case 0xaa:
241 case 0xab:
242 /* SD1(A:D) => SLOT2 PCIe3 x4
243 * SD1(F:H) => SLOT1 SGMI4 x4
244 */
245 QIXIS_WRITE(brdcfg[12], 0xf8);
246 QIXIS_WRITE(brdcfg[13], 0x0);
247 break;
248 case 0xca:
249 case 0xcb:
250 /* SD1(A) => SLOT2 PCIe3 x1
251 * SD1(B) => SLOT7 SGMII
252 * SD1(C) => SLOT6 SGMII
253 * SD1(D) => SLOT5 SGMII
254 * SD1(E) => SLOT1 PCIe4 x1
255 * SD1(F:H) => SLOT3 SGMII
256 */
257 QIXIS_WRITE(brdcfg[12], 0x80);
258 QIXIS_WRITE(brdcfg[13], 0x70);
259 break;
260 case 0xde:
261 case 0xdf:
262 /* SD1(A:D) => SLOT2 PCIe3 x4
263 * SD1(E) => SLOT1 PCIe4 x1
264 * SD1(F) => SLOT4 PCIe1 x1
265 * SD1(G) => SLOT3 PCIe2 x1
266 * SD1(H) => SLOT7 SGMII
267 */
268 QIXIS_WRITE(brdcfg[12], 0x98);
269 QIXIS_WRITE(brdcfg[13], 0x25);
270 break;
271 case 0xf2:
272 /* SD1(A) => SLOT2 PCIe3 x1
273 * SD1(B:D) => SLOT7 SGMII
274 * SD1(E) => SLOT1 PCIe4 x1
275 * SD1(F) => SLOT4 PCIe1 x1
276 * SD1(G) => SLOT3 PCIe2 x1
277 * SD1(H) => SLOT7 SGMII
278 */
279 QIXIS_WRITE(brdcfg[12], 0x81);
280 QIXIS_WRITE(brdcfg[13], 0xa5);
281 break;
282#endif
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800283 default:
284 printf("WARNING: unsupported for SerDes1 Protocol %d\n",
285 srds_prtcl_s1);
286 return -1;
287 }
288
York Sun80d26182016-12-28 08:43:36 -0800289#ifdef CONFIG_TARGET_T2080QDS
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800290 switch (srds_prtcl_s2) {
291 case 0:
292 /* SerDes2 is not enabled */
293 break;
294 case 0x01:
295 case 0x02:
296 /* SD2(A:H) => SLOT4 PCIe1 */
Shengzhou Liu1576b552014-01-03 14:48:44 +0800297 QIXIS_WRITE(brdcfg[13], 0x10);
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800298 break;
299 case 0x15:
300 case 0x16:
301 /*
302 * SD2(A:D) => SLOT4 PCIe1
303 * SD2(E:F) => SLOT5 PCIe2
304 * SD2(G:H) => SATA1,SATA2
305 */
306 QIXIS_WRITE(brdcfg[13], 0xb0);
307 break;
308 case 0x18:
309 /*
310 * SD2(A:D) => SLOT4 PCIe1
311 * SD2(E:F) => SLOT5 Aurora
312 * SD2(G:H) => SATA1,SATA2
313 */
Shengzhou Liu1576b552014-01-03 14:48:44 +0800314 QIXIS_WRITE(brdcfg[13], 0x78);
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800315 break;
316 case 0x1f:
317 /*
318 * SD2(A:D) => SLOT4 PCIe1
319 * SD2(E:H) => SLOT5 PCIe2
320 */
321 QIXIS_WRITE(brdcfg[13], 0xa0);
322 break;
323 case 0x29:
324 case 0x2d:
325 case 0x2e:
326 /*
327 * SD2(A:D) => SLOT4 SRIO2
328 * SD2(E:H) => SLOT5 SRIO1
329 */
Shengzhou Liu1576b552014-01-03 14:48:44 +0800330 QIXIS_WRITE(brdcfg[13], 0xa0);
331 break;
332 case 0x36:
333 /*
334 * SD2(A:D) => SLOT4 SRIO2
335 * SD2(E:F) => Aurora
336 * SD2(G:H) => SATA1,SATA2
337 */
338 QIXIS_WRITE(brdcfg[13], 0x78);
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800339 break;
340 default:
341 printf("WARNING: unsupported for SerDes2 Protocol %d\n",
342 srds_prtcl_s2);
343 return -1;
344 }
Shengzhou Liu254887a2014-02-21 13:16:19 +0800345#endif
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800346 return 0;
347}
348
Yangbo Lu39913ac2020-06-17 18:08:58 +0800349static void esdhc_adapter_card_ident(void)
350{
351 u8 card_id, value;
352
353 card_id = QIXIS_READ(present) & QIXIS_SDID_MASK;
354
355 switch (card_id) {
356 case QIXIS_ESDHC_ADAPTER_TYPE_EMMC45:
357 value = QIXIS_READ(brdcfg[5]);
358 value |= (QIXIS_DAT4 | QIXIS_DAT5_6_7);
359 QIXIS_WRITE(brdcfg[5], value);
360 break;
361 case QIXIS_ESDHC_ADAPTER_TYPE_SDMMC_LEGACY:
362 value = QIXIS_READ(pwr_ctl[1]);
363 value |= QIXIS_EVDD_BY_SDHC_VS;
364 QIXIS_WRITE(pwr_ctl[1], value);
365 break;
366 case QIXIS_ESDHC_ADAPTER_TYPE_EMMC44:
367 value = QIXIS_READ(brdcfg[5]);
368 value |= (QIXIS_SDCLKIN | QIXIS_SDCLKOUT);
369 QIXIS_WRITE(brdcfg[5], value);
370 break;
371 default:
372 break;
373 }
374}
375
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800376int board_early_init_r(void)
377{
378 const unsigned int flashbase = CONFIG_SYS_FLASH_BASE;
York Sun9d045682014-06-24 21:16:20 -0700379 int flash_esel = find_tlb_idx((void *)flashbase, 1);
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800380
381 /*
382 * Remap Boot flash + PROMJET region to caching-inhibited
383 * so that flash can be erased properly.
384 */
385
386 /* Flush d-cache and invalidate i-cache of any FLASH data */
387 flush_dcache();
388 invalidate_icache();
389
York Sun9d045682014-06-24 21:16:20 -0700390 if (flash_esel == -1) {
391 /* very unlikely unless something is messed up */
392 puts("Error: Could not find TLB for FLASH BASE\n");
393 flash_esel = 2; /* give our best effort to continue */
394 } else {
395 /* invalidate existing TLB entry for flash + promjet */
396 disable_tlb(flash_esel);
397 }
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800398
399 set_tlb(1, flashbase, CONFIG_SYS_FLASH_BASE_PHYS,
400 MAS3_SX|MAS3_SW|MAS3_SR, MAS2_I|MAS2_G,
401 0, flash_esel, BOOKE_PAGESZ_256M, 1);
402
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800403 /* Disable remote I2C connection to qixis fpga */
404 QIXIS_WRITE(brdcfg[5], QIXIS_READ(brdcfg[5]) & ~BRDCFG5_IRE);
405
Ying Zhang3ad27372014-10-31 18:06:18 +0800406 /*
407 * Adjust core voltage according to voltage ID
408 * This function changes I2C mux to channel 2.
409 */
410 if (adjust_vdd(0))
411 printf("Warning: Adjusting core voltage failed.\n");
412
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800413 brd_mux_lane_to_slot();
Biwen Li8e4be6d2020-05-01 20:04:19 +0800414 select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT, 0);
Yangbo Lu39913ac2020-06-17 18:08:58 +0800415 esdhc_adapter_card_ident();
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800416 return 0;
417}
418
419unsigned long get_board_sys_clk(void)
420{
421 u8 sysclk_conf = QIXIS_READ(brdcfg[1]);
422#ifdef CONFIG_FSL_QIXIS_CLOCK_MEASUREMENT
423 /* use accurate clock measurement */
424 int freq = QIXIS_READ(clk_freq[0]) << 8 | QIXIS_READ(clk_freq[1]);
425 int base = QIXIS_READ(clk_base[0]) << 8 | QIXIS_READ(clk_base[1]);
426 u32 val;
427
428 val = freq * base;
429 if (val) {
430 debug("SYS Clock measurement is: %d\n", val);
431 return val;
432 } else {
433 printf("Warning: SYS clock measurement is invalid, ");
434 printf("using value from brdcfg1.\n");
435 }
436#endif
437
438 switch (sysclk_conf & 0x0F) {
439 case QIXIS_SYSCLK_83:
440 return 83333333;
441 case QIXIS_SYSCLK_100:
442 return 100000000;
443 case QIXIS_SYSCLK_125:
444 return 125000000;
445 case QIXIS_SYSCLK_133:
446 return 133333333;
447 case QIXIS_SYSCLK_150:
448 return 150000000;
449 case QIXIS_SYSCLK_160:
450 return 160000000;
451 case QIXIS_SYSCLK_166:
452 return 166666666;
453 }
454 return 66666666;
455}
456
457unsigned long get_board_ddr_clk(void)
458{
459 u8 ddrclk_conf = QIXIS_READ(brdcfg[1]);
460#ifdef CONFIG_FSL_QIXIS_CLOCK_MEASUREMENT
461 /* use accurate clock measurement */
462 int freq = QIXIS_READ(clk_freq[2]) << 8 | QIXIS_READ(clk_freq[3]);
463 int base = QIXIS_READ(clk_base[0]) << 8 | QIXIS_READ(clk_base[1]);
464 u32 val;
465
466 val = freq * base;
467 if (val) {
468 debug("DDR Clock measurement is: %d\n", val);
469 return val;
470 } else {
471 printf("Warning: DDR clock measurement is invalid, ");
472 printf("using value from brdcfg1.\n");
473 }
474#endif
475
476 switch ((ddrclk_conf & 0x30) >> 4) {
477 case QIXIS_DDRCLK_100:
478 return 100000000;
479 case QIXIS_DDRCLK_125:
480 return 125000000;
481 case QIXIS_DDRCLK_133:
482 return 133333333;
483 }
484 return 66666666;
485}
486
487int misc_init_r(void)
488{
489 return 0;
490}
491
Masahiro Yamadab75d8dc2020-06-26 15:13:33 +0900492int ft_board_setup(void *blob, struct bd_info *bd)
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800493{
494 phys_addr_t base;
495 phys_size_t size;
496
497 ft_cpu_setup(blob, bd);
498
Simon Glass723806c2017-08-03 12:22:15 -0600499 base = env_get_bootm_low();
500 size = env_get_bootm_size();
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800501
502 fdt_fixup_memory(blob, (u64)base, (u64)size);
503
504#ifdef CONFIG_PCI
505 pci_of_setup(blob, bd);
506#endif
507
508 fdt_fixup_liodn(blob);
Sriram Dasha5c289b2016-09-16 17:12:15 +0530509 fsl_fdt_fixup_dr_usb(blob, bd);
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800510
511#ifdef CONFIG_SYS_DPAA_FMAN
Madalin Bucur564637a2020-04-30 15:59:58 +0300512#ifndef CONFIG_DM_ETH
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800513 fdt_fixup_fman_ethernet(blob);
Madalin Bucur564637a2020-04-30 15:59:58 +0300514#endif
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800515 fdt_fixup_board_enet(blob);
516#endif
Simon Glasse895a4b2014-10-23 18:58:47 -0600517
518 return 0;
Shengzhou Liuc4d0e812013-11-22 17:39:11 +0800519}