Commit 4bf4abb8a4e9955556b120a1aafa30c03e74032a

Authored by Ed Swarthout
Committed by Andrew Fleming-AFLEMING
1 parent 7a1ac419fa
Exists in master and in 55 other branches 8qm-imx_v2020.04_5.4.70_2.3.0, emb_lf_v2022.04, emb_lf_v2023.04, imx_v2015.04_4.1.15_1.0.0_ga, pitx_8mp_lf_v2020.04, smarc-8m-android-10.0.0_2.6.0, smarc-8m-android-11.0.0_2.0.0, smarc-8mp-android-11.0.0_2.0.0, smarc-emmc-imx_v2014.04_3.10.53_1.1.0_ga, smarc-emmc-imx_v2014.04_3.14.28_1.0.0_ga, smarc-imx-l5.0.0_1.0.0-ga, smarc-imx6_v2018.03_4.14.98_2.0.0_ga, smarc-imx7_v2017.03_4.9.11_1.0.0_ga, smarc-imx7_v2018.03_4.14.98_2.0.0_ga, smarc-imx_v2014.04_3.14.28_1.0.0_ga, smarc-imx_v2015.04_4.1.15_1.0.0_ga, smarc-imx_v2017.03_4.9.11_1.0.0_ga, smarc-imx_v2017.03_4.9.88_2.0.0_ga, smarc-imx_v2017.03_o8.1.0_1.3.0_8m, smarc-imx_v2018.03_4.14.78_1.0.0_ga, smarc-m6.0.1_2.1.0-ga, smarc-n7.1.2_2.0.0-ga, smarc-rel_imx_4.1.15_2.0.0_ga, smarc_8m-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8m-imx_v2019.04_4.19.35_1.1.0, smarc_8m_00d0-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8mm-imx_v2018.03_4.14.98_2.0.0_ga, smarc_8mm-imx_v2019.04_4.19.35_1.1.0, smarc_8mm-imx_v2020.04_5.4.24_2.1.0, smarc_8mp_lf_v2020.04, smarc_8mq-imx_v2020.04_5.4.24_2.1.0, smarc_8mq_lf_v2020.04, ti-u-boot-2015.07, u-boot-2013.01.y, v2013.10, v2013.10-smarct33, v2013.10-smartmen, v2014.01, v2014.04, v2014.04-smarct33, v2014.04-smarct33-emmc, v2014.04-smartmen, v2014.07, v2014.07-smarct33, v2014.07-smartmen, v2015.07-smarct33, v2015.07-smarct33-emmc, v2015.07-smarct4x, v2016.05-dlt, v2016.05-smarct3x, v2016.05-smarct3x-emmc, v2016.05-smarct4x, v2017.01-smarct3x, v2017.01-smarct3x-emmc, v2017.01-smarct4x

8548cds fixes

Restore CONFIG_EXTRA_ENV_SETTINGS definition which contains the
correct consoledev needed for linux boot.
Standardize on fdt{file,addr} var to hold dtb file name.

Set PCI inbound memory region from CFG_MEMORY_{BUS,PHYS}.

Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>

Showing 2 changed files with 17 additions and 12 deletions Side-by-side Diff

board/cds/mpc8548cds/mpc8548cds.c
... ... @@ -362,20 +362,28 @@
362 362 );
363 363  
364 364  
365   - /* outbound memory */
  365 + /* inbound */
366 366 pci_set_region(hose->regions + 0,
  367 + CFG_PCI_MEMORY_BUS,
  368 + CFG_PCI_MEMORY_PHYS,
  369 + CFG_PCI_MEMORY_SIZE,
  370 + PCI_REGION_MEM | PCI_REGION_MEMORY);
  371 +
  372 +
  373 + /* outbound memory */
  374 + pci_set_region(hose->regions + 1,
367 375 CFG_PCI1_MEM_BASE,
368 376 CFG_PCI1_MEM_PHYS,
369 377 CFG_PCI1_MEM_SIZE,
370 378 PCI_REGION_MEM);
371 379  
372 380 /* outbound io */
373   - pci_set_region(hose->regions + 1,
  381 + pci_set_region(hose->regions + 2,
374 382 CFG_PCI1_IO_BASE,
375 383 CFG_PCI1_IO_PHYS,
376 384 CFG_PCI1_IO_SIZE,
377 385 PCI_REGION_IO);
378   - hose->region_count = 2;
  386 + hose->region_count = 3;
379 387  
380 388 /* relocate config table pointers */
381 389 hose->config_table = \
include/configs/MPC8548CDS.h
... ... @@ -633,7 +633,6 @@
633 633 #define ENET_ENV ""
634 634 #endif
635 635  
636   -#if 0
637 636 #define CONFIG_EXTRA_ENV_SETTINGS \
638 637 "netdev=eth0\0" \
639 638 "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \
... ... @@ -646,8 +645,8 @@
646 645 "consoledev=ttyS1\0" \
647 646 "ramdiskaddr=2000000\0" \
648 647 "ramdiskfile=ramdisk.uboot\0" \
649   - "dtbaddr=c00000\0" \
650   - "dtbfile=mpc8548cds.dtb\0" \
  648 + "fdtaddr=c00000\0" \
  649 + "fdtfile=mpc8548cds.dtb\0" \
651 650 "eoi=mw e00400b0 0\0" \
652 651 "iack=md e00400a0 1\0" \
653 652 "ddrreg=md ${a}000 8; md ${a}080 8;md ${a}100 d; md ${a}140 4; md ${a}bf0 4;" \
654 653  
655 654  
... ... @@ -669,17 +668,15 @@
669 668 PCI_ENV1 \
670 669 PCI_ENV2 \
671 670 ENET_ENV
672   -#endif
673 671  
674   -
675 672 #define CONFIG_NFSBOOTCOMMAND \
676 673 "setenv bootargs root=/dev/nfs rw " \
677 674 "nfsroot=$serverip:$rootpath " \
678 675 "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
679 676 "console=$consoledev,$baudrate $othbootargs;" \
680 677 "tftp $loadaddr $bootfile;" \
681   - "tftp $dtbaddr $dtbfile;" \
682   - "bootm $loadaddr - $dtbaddr"
  678 + "tftp $fdtaddr $fdtfile;" \
  679 + "bootm $loadaddr - $fdtaddr"
683 680  
684 681  
685 682 #define CONFIG_RAMBOOTCOMMAND \
... ... @@ -687,8 +684,8 @@
687 684 "console=$consoledev,$baudrate $othbootargs;" \
688 685 "tftp $ramdiskaddr $ramdiskfile;" \
689 686 "tftp $loadaddr $bootfile;" \
690   - "tftp $dtbaddr $dtbfile;" \
691   - "bootm $loadaddr $ramdiskaddr $dtbaddr"
  687 + "tftp $fdtaddr $fdtfile;" \
  688 + "bootm $loadaddr $ramdiskaddr $fdtaddr"
692 689  
693 690 #define CONFIG_BOOTCOMMAND CONFIG_NFSBOOTCOMMAND
694 691