diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board.dts /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board.dts --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board.dts 2020-06-17 16:24:08.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board.dts 2020-06-30 12:04:31.931548582 +0200 @@ -86,6 +86,7 @@ gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>; states = <1800000 0x0 3300000 0x1>; + status = "disabled"; }; }; diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi 2020-06-17 16:24:08.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi 2020-06-30 12:10:30.001853010 +0200 @@ -335,7 +335,12 @@ cpsw-phy-sel@40f04040 { compatible = "ti,am654-cpsw-phy-sel"; reg= <0x0 0x40f04040 0x0 0x4>; - reg-names = "gmii-sel"; + reg-names = "gmii-sel"; + }; + + fixed-link{ + Speed = <1000>; + Full-duplex; }; }; diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi 2020-06-17 16:24:08.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-mcu-wakeup.dtsi 2020-06-30 12:21:06.709935750 +0200 @@ -132,17 +132,17 @@ mux-reg-masks = <0x4 0x2>; /* HBMC select */ }; - hbmc: hyperbus@47034000 { - compatible = "ti,j721e-hbmc", "ti,am654-hbmc"; - reg = <0x0 0x47034000 0x0 0x100>, - <0x5 0x00000000 0x1 0x0000000>; - power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>; - #address-cells = <2>; - #size-cells = <1>; - mux-controls = <&hbmc_mux 0>; - assigned-clocks = <&k3_clks 102 0>; - assigned-clock-rates = <250000000>; - }; +// hbmc: hyperbus@47034000 { +// compatible = "ti,j721e-hbmc", "ti,am654-hbmc"; +// reg = <0x0 0x47034000 0x0 0x100>, +// <0x5 0x00000000 0x1 0x0000000>; +// power-domains = <&k3_pds 102 TI_SCI_PD_EXCLUSIVE>; +// #address-cells = <2>; +// #size-cells = <1>; +// mux-controls = <&hbmc_mux 0>; +// assigned-clocks = <&k3_clks 102 0>; +// assigned-clock-rates = <250000000>; +// }; ospi0: spi@47040000 { compatible = "ti,am654-ospi"; diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-r5-common-proc-board.dts /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-r5-common-proc-board.dts --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-r5-common-proc-board.dts 2020-06-17 16:24:08.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-r5-common-proc-board.dts 2020-06-30 12:25:46.695728471 +0200 @@ -6,7 +6,7 @@ /dts-v1/; #include "k3-j721e-som-p0.dtsi" -#include "k3-j721e-ddr-evm-lp4-3733.dtsi" +#include "k3-j721e-ddr-evm-lp4-3733-zf.dtsi" #include "k3-j721e-ddr.dtsi" / { diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-som-p0.dtsi /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-som-p0.dtsi --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-som-p0.dtsi 2020-06-17 16:24:08.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/dts/k3-j721e-som-p0.dtsi 2020-06-30 12:29:11.445038999 +0200 @@ -10,9 +10,11 @@ / { memory@80000000 { device_type = "memory"; - /* 4G RAM */ - reg = <0x00000000 0x80000000 0x00000000 0x80000000>, - <0x00000008 0x80000000 0x00000000 0x80000000>; +// /* 4G RAM */ +// reg = <0x00000000 0x80000000 0x00000000 0x80000000>, +// <0x00000008 0x80000000 0x00000000 0x80000000>; + /* 1G RAM */ + reg = <0x00000000 0x80000000 0x00000000 0x40000000>; }; reserved_memory: reserved-memory { @@ -65,18 +67,18 @@ }; }; -&hbmc { - status = "disabled"; - pinctrl-names = "default"; - pinctrl-0 = <&mcu_fss0_hpb0_pins_default>; - ranges = <0x0 0x0 0x5 0x0 0x4000000>, /* 64MB Flash on CS0 */ - <0x1 0x0 0x5 0x4000000 0x800000>; /* 8MB RAM on CS1 */ - - flash@0,0 { - compatible = "cypress,hyperflash", "cfi-flash"; - reg = <0x0 0x0 0x4000000>; - }; -}; +// &hbmc { +// status = "disabled"; +// pinctrl-names = "default"; +// pinctrl-0 = <&mcu_fss0_hpb0_pins_default>; +// ranges = <0x0 0x0 0x5 0x0 0x4000000>, /* 64MB Flash on CS0 */ +// <0x1 0x0 0x5 0x4000000 0x800000>; /* 8MB RAM on CS1 */ + +// flash@0,0 { +// compatible = "cypress,hyperflash", "cfi-flash"; +// reg = <0x0 0x0 0x4000000>; +// }; +// }; &ospi0 { pinctrl-names = "default"; diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/arm64-mmu.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/arm64-mmu.c --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/arm64-mmu.c 2020-06-17 16:24:08.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/arch/arm/mach-k3/arm64-mmu.c 2020-06-30 12:38:27.028594064 +0200 @@ -14,7 +14,8 @@ #ifdef CONFIG_SOC_K3_AM6 /* NR_DRAM_BANKS + 32bit IO + 64bit IO + terminator */ -#define NR_MMU_REGIONS (CONFIG_NR_DRAM_BANKS + 5) +// #define NR_MMU_REGIONS (CONFIG_NR_DRAM_BANKS + 5) +#define NR_MMU_REGIONS (CONFIG_NR_DRAM_BANKS + 6) /* ToDo: Add 64bit IO */ struct mm_region am654_mem_map[NR_MMU_REGIONS] = { @@ -93,13 +94,14 @@ }, { .virt = 0xbbc00000UL, .phys = 0xbbc00000UL, - .size = 0x44400000UL, - .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | - PTE_BLOCK_INNER_SHARE - }, { - .virt = 0x880000000UL, - .phys = 0x880000000UL, - .size = 0x80000000UL, +// .size = 0x44400000UL, +// .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | +// PTE_BLOCK_INNER_SHARE +// }, { +// .virt = 0x880000000UL, +// .phys = 0x880000000UL, +// .size = 0x80000000UL, + .size = 0x04400000UL, .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_INNER_SHARE }, { diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/board/ti/j721e/evm.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/board/ti/j721e/evm.c --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/board/ti/j721e/evm.c 2020-06-17 16:24:09.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/board/ti/j721e/evm.c 2020-06-30 12:48:30.016451718 +0200 @@ -41,15 +41,16 @@ int dram_init(void) { -#ifdef CONFIG_PHYS_64BIT - gd->ram_size = 0x100000000; -#else - gd->ram_size = 0x80000000; -#endif - +// #ifdef CONFIG_PHYS_64BIT +// gd->ram_size = 0x100000000; +// #else +// gd->ram_size = 0x80000000; +// #endif + gd->ram_size = 0x40000000; return 0; } +#if 0 ulong board_get_usable_ram_top(ulong total_size) { #ifdef CONFIG_PHYS_64BIT @@ -60,21 +61,24 @@ return gd->ram_top; } +#endif int dram_init_banksize(void) { /* Bank 0 declares the memory available in the DDR low region */ gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE; - gd->bd->bi_dram[0].size = 0x80000000; - gd->ram_size = 0x80000000; +// gd->bd->bi_dram[0].size = 0x80000000; +// gd->ram_size = 0x80000000; -#ifdef CONFIG_PHYS_64BIT - /* Bank 1 declares the memory available in the DDR high region */ - gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1; - gd->bd->bi_dram[1].size = 0x80000000; - gd->ram_size = 0x100000000; -#endif +//#ifdef CONFIG_PHYS_64BIT +// /* Bank 1 declares the memory available in the DDR high region */ +// gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1; +// gd->bd->bi_dram[1].size = 0x80000000; +// gd->ram_size = 0x100000000; +// #endif + gd->bd->bi_dram[0].size = 0x40000000; + gd->ram_size = 0x40000000; return 0; } @@ -368,11 +372,11 @@ #endif int board_late_init(void) { - setup_board_eeprom_env(); - setup_serial(); +// setup_board_eeprom_env(); +// setup_serial(); /* Check for and probe any plugged-in daughtercards */ - probe_daughtercards(); +// probe_daughtercards(); return 0; } diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/configs/j721e_evm_a72_defconfig /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/configs/j721e_evm_a72_defconfig --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/configs/j721e_evm_a72_defconfig 2020-06-17 16:24:09.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/configs/j721e_evm_a72_defconfig 2020-06-30 12:50:26.121194469 +0200 @@ -12,7 +12,7 @@ CONFIG_ENV_SIZE=0x20000 CONFIG_ENV_OFFSET=0x680000 CONFIG_SPL_STACK_R_ADDR=0x82000000 -CONFIG_NR_DRAM_BANKS=2 +CONFIG_NR_DRAM_BANKS=1 CONFIG_SPL_FS_FAT=y CONFIG_SPL_LIBDISK_SUPPORT=y CONFIG_SPL_SPI_FLASH_SUPPORT=y @@ -110,10 +110,6 @@ CONFIG_MISC=y CONFIG_DM_MMC=y CONFIG_SUPPORT_EMMC_BOOT=y -CONFIG_MMC_IO_VOLTAGE=y -CONFIG_SPL_MMC_IO_VOLTAGE=y -CONFIG_MMC_UHS_SUPPORT=y -CONFIG_SPL_MMC_UHS_SUPPORT=y CONFIG_MMC_HS400_SUPPORT=y CONFIG_SPL_MMC_HS400_SUPPORT=y CONFIG_MMC_SDHCI=y diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/ram/k3-j721e/k3-j721e-ddrss.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/ram/k3-j721e/k3-j721e-ddrss.c --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/ram/k3-j721e/k3-j721e-ddrss.c 2020-06-17 16:24:09.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/ram/k3-j721e/k3-j721e-ddrss.c 2020-06-30 13:15:46.022917360 +0200 @@ -67,7 +67,8 @@ { unsigned int req_type, counter; - debug("--->>> LPDDR4 Initialization is in progress ... <<<---\n"); +// debug("--->>> LPDDR4 Initialization is in progress ... <<<---\n"); + printf("--->>> LPDDR4 Initialization is in progress ... <<<---\n"); for (counter = 0; counter < ddrss->ddr_fhs_cnt; counter++) { if (wait_for_bit_le32(ddrss->ddrss_ctrl_mmr + @@ -80,9 +81,9 @@ req_type = readl(ddrss->ddrss_ctrl_mmr + CTRLMMR_DDR4_FSP_CLKCHNG_REQ_OFFS) & 0x03; - debug("%s: received freq change req: req type = %d, req no. = %d \n", - __func__, req_type, counter); - +// debug("%s: received freq change req: req type = %d, req no. = %d \n", +// __func__, req_type, counter); + printf("%s: received freq change req: req type = %d, req no. = %d \n",__func__, req_type, counter); if (req_type == 1) clk_set_rate(&ddrss->ddr_clk, ddrss->ddr_freq1); else if (req_type == 2) @@ -119,8 +120,8 @@ { int ret; - debug("%s(ddrss=%p)\n", __func__, ddrss); - +// debug("%s(ddrss=%p)\n", __func__, ddrss); + printf("%s(ddrss=%p)\n", __func__, ddrss); ret = power_domain_on(&ddrss->ddrcfg_pwrdmn); if (ret) { dev_err(ddrss->dev, "power_domain_on() failed: %d\n", ret); @@ -142,7 +143,8 @@ phys_addr_t reg; int ret; - debug("%s(dev=%p)\n", __func__, dev); +// debug("%s(dev=%p)\n", __func__, dev); + printf("%s(dev=%p)\n", __func__, dev); reg = dev_read_addr_name(dev, "cfg"); if (reg == FDT_ADDR_T_NONE) { @@ -210,7 +212,8 @@ printf("LPDDR4_Probe: FAIL\n"); hang(); } else { - debug("LPDDR4_Probe: PASS\n"); +// debug("LPDDR4_Probe: PASS\n"); + printf("LPDDR4_Probe: PASS\n"); } } @@ -236,7 +239,8 @@ printf("LPDDR4_Init: FAIL\n"); hang(); } else { - debug("LPDDR4_Init: PASS\n"); +// debug("LPDDR4_Init: PASS\n"); + printf("LPDDR4_Init: PASS\n"); } } @@ -319,7 +323,8 @@ printf("LPDDR4_Start: FAIL\n"); hang(); } else { - debug("LPDDR4_Start: PASS\n"); +// debug("LPDDR4_Start: PASS\n"); + printf("LPDDR4_Start: PASS\n"); } } @@ -328,7 +333,8 @@ int ret; ddrss = dev_get_priv(dev); - debug("%s(dev=%p)\n", __func__, dev); +// debug("%s(dev=%p)\n", __func__, dev); + printf("%s(dev=%p)\n", __func__, dev); ret = j721e_ddrss_ofdata_to_priv(dev); if (ret) diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/remoteproc/ti_k3_dsp_rproc.c /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/remoteproc/ti_k3_dsp_rproc.c --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/remoteproc/ti_k3_dsp_rproc.c 2020-06-17 16:24:09.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/drivers/remoteproc/ti_k3_dsp_rproc.c 2020-06-30 13:29:23.988149868 +0200 @@ -59,6 +59,7 @@ struct k3_dsp_boot_data *data; struct k3_dsp_mem *mem; int num_mems; + ulong uses_lreset; }; /* @@ -204,6 +205,7 @@ dev_dbg(dev, "%s\n", __func__); ti_sci_proc_request(&dsp->tsp); + reset_assert(&dsp->dsp_rst); ti_sci_proc_power_domain_off(&dsp->tsp); ti_sci_proc_release(&dsp->tsp); diff -ruN /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/include/configs/j721e_evm.h /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/include/configs/j721e_evm.h --- /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/include/configs/j721e_evm.h 2020-06-17 16:24:09.000000000 +0200 +++ /home/user/ti-processor-sdk-linux-automotive-j7-evm-07_00_00_modified/board-support/u-boot-2020.01+gitAUTOINC+f9b0d030d3-gf9b0d030d3/include/configs/j721e_evm.h 2020-06-30 13:35:33.122511212 +0200 @@ -17,7 +17,7 @@ #include /* DDR Configuration */ -#define CONFIG_SYS_SDRAM_BASE1 0x880000000 +// #define CONFIG_SYS_SDRAM_BASE1 0x880000000 /* SPL Loader Configuration */ #ifdef CONFIG_TARGET_J721E_A72_EVM