Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

AM623: mmc: deferred probe pending

Part Number: AM623

Tool/software:

I had the same probleam, I have try to  edit the DTS as same as above.

[ 1.181248] printk: console [ttyS2] enabled
[ 1.189761] printk: bootconsole [ns16550a0] disabled
[ 1.212703] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[ 1.220945] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
[ 1.265667] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 1.277602] mdio_bus 8000f00.mdio: MDIO device at address 1 is missing.
[ 1.284288] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver RTL8211F Gigabit Ethernet
[ 1.293743] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
[ 1.306758] am65-cpsw-nuss 8000000.ethernet: Use random MAC address
[ 1.313090] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
[ 1.320236] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
[ 1.326840] pps pps0: new PPS source ptp0
[ 1.331233] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1
[ 1.346904] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[ 1.358430] platform 31000000.usb: Fixed dependency cycle(s) with /bus@f0000/i2c@20000000/tps6598x@3f/connector
[ 1.374623] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 1.380228] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 1.388084] xhci-hcd xhci-hcd.0.auto: USB3 root hub has no ports
[ 1.394124] xhci-hcd xhci-hcd.0.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000008000000010
[ 1.403598] xhci-hcd xhci-hcd.0.auto: irq 253, io mem 0x31100000
[ 1.410567] hub 1-0:1.0: USB hub found
[ 1.414386] hub 1-0:1.0: 1 port detected
[ 1.420458] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1200000 KHz, changing to: 1000000 KHz
[ 1.434320] mmc0: CQHCI version 5.10
[ 1.447178] pinctrl-single f4000.pinctrl: pin PIN117 already requested by 2820000.serial; cannot claim for 1-0022
[ 1.457613] pinctrl-single f4000.pinctrl: pin-117 (1-0022) status -22
[ 1.464312] pinctrl-single f4000.pinctrl: could not request pin 117 (PIN117) from group main-gpio1-ioexp-intr-default-pins on device pinctrl-single
[ 1.477635] pca953x 1-0022: Error applying setting, reverse things back
[ 1.493921] clk: Disabling unused clocks
[ 1.502406] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
[ 1.513932] ALSA device list:
[ 1.516950] No soundcards found.
[ 1.521076] Waiting for root device PARTUUID=076c4a2a-02...
[ 1.607434] mmc0: Command Queue Engine enabled
[ 1.611916] mmc0: new HS200 MMC card at address 0001
[ 1.617865] mmcblk0: mmc0:0001 MMC8GB 7.30 GiB
[ 1.624701] mmcblk0boot0: mmc0:0001 MMC8GB 4.00 MiB
[ 1.631038] mmcblk0boot1: mmc0:0001 MMC8GB 4.00 MiB
[ 1.637121] mmcblk0rpmb: mmc0:0001 MMC8GB 4.00 MiB, chardev (239:0)
[ 11.662973] platform 2b300050.target-module: deferred probe pending
[ 11.669304] platform regulator-3: deferred probe pending
[ 11.674658] platform fa00000.mmc: deferred probe pending
[ 1.180910] printk: console [ttyS2] enabled
[ 1.189419] printk: bootconsole [ns16550a0] disabled
[ 1.212743] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[ 1.221000] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
[ 1.265646] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 1.277561] mdio_bus 8000f00.mdio: MDIO device at address 1 is missing.
[ 1.284281] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver RTL8211F Gigabit Ethernet
[ 1.293743] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
[ 1.306775] am65-cpsw-nuss 8000000.ethernet: Use random MAC address
[ 1.313081] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
[ 1.320225] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
[ 1.326825] pps pps0: new PPS source ptp0
[ 1.331212] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1
[ 1.346958] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
[ 1.358438] platform 31000000.usb: Fixed dependency cycle(s) with /bus@f0000/i2c@20000000/tps6598x@3f/connector
[ 1.374499] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 1.380111] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 1.387958] xhci-hcd xhci-hcd.0.auto: USB3 root hub has no ports
[ 1.393995] xhci-hcd xhci-hcd.0.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000008000000010
[ 1.403471] xhci-hcd xhci-hcd.0.auto: irq 253, io mem 0x31100000
[ 1.410445] hub 1-0:1.0: USB hub found
[ 1.414262] hub 1-0:1.0: 1 port detected
[ 1.420380] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1200000 KHz, changing to: 1000000 KHz
[ 1.434597] mmc0: CQHCI version 5.10
[ 1.447398] pinctrl-single f4000.pinctrl: pin PIN117 already requested by 2820000.serial; cannot claim for 1-0022
[ 1.458003] pinctrl-single f4000.pinctrl: pin-117 (1-0022) status -22
[ 1.464542] pinctrl-single f4000.pinctrl: could not request pin 117 (PIN117) from group main-gpio1-ioexp-intr-default-pins on device pinctrl-single
[ 1.478020] pca953x 1-0022: Error applying setting, reverse things back
[ 1.494394] clk: Disabling unused clocks
[ 1.501671] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
[ 1.514188] ALSA device list:
[ 1.517272] No soundcards found.
[ 1.521373] Waiting for root device PARTUUID=076c4a2a-02...
[ 1.607611] mmc0: Command Queue Engine enabled
[ 1.612090] mmc0: new HS200 MMC card at address 0001
[ 1.617982] mmcblk0: mmc0:0001 MMC8GB 7.30 GiB
[ 1.624857] mmcblk0boot0: mmc0:0001 MMC8GB 4.00 MiB
[ 1.631220] mmcblk0boot1: mmc0:0001 MMC8GB 4.00 MiB
[ 1.637319] mmcblk0rpmb: mmc0:0001 MMC8GB 4.00 MiB, chardev (239:0)

  • Hi,

    Could you please share us on what software version are you testing this with? SDK 10.0? Also are you seeing this issue on our EVM to better support you?

    Best Regards,

    Suren

  • The issue does not occur with the EVM probably due to that the EVM used AM6254 and our board used  AM6231. Refer https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1403580/am623-am623-deferred-issue

    I used Yocto environment for building image. The build step follow build instructions in https://software-dl.ti.com/cicd-report/linux/index.html?section=snapshot&platform=am62xx&snapshot=cicd.scarthgap.202409271545.

    And I have changed the u-boot and kernel follow https://www.ti.com/document-viewer/lit/html/spradd1.  Furthermore I have to use uart 2 because of the UART 0 pins is not pinned In the schematic.

  • Hi,

    I have routed your query to our expert. Please expect a response soon.

    Best Regards,

    Suren

  • Hello,

    I had the same probleam, I have try to  edit the DTS as same as above.

    Can you please share the changes & the full boot logs as well?

    Please attach the text logs using "Insert -> Code" feature for better readability.

    Thanks!

  • [    1.174342] printk: console [ttyS2] enabled
    [    1.182812] printk: bootconsole [ns16550a0] disabled
    [    1.200401] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
    [    1.208651] davinci_mdio 8000f00.mdio: Configuring MDIO in manual mode
    [    1.253361] davinci_mdio 8000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.265082] mdio_bus 8000f00.mdio: MDIO device at address 1 is missing.
    [    1.271789] davinci_mdio 8000f00.mdio: phy[0]: device 8000f00.mdio:00, driver RTL8211F Gigabit Ethernet
    [    1.281280] am65-cpsw-nuss 8000000.ethernet: initializing am65 cpsw nuss version 0x6BA01103, cpsw version 0x6BA81103 Ports: 3 quirks:00000006
    [    1.294319] am65-cpsw-nuss 8000000.ethernet: Use random MAC address
    [    1.300619] am65-cpsw-nuss 8000000.ethernet: initialized cpsw ale version 1.5
    [    1.307761] am65-cpsw-nuss 8000000.ethernet: ALE Table size 512
    [    1.314379] pps pps0: new PPS source ptp0
    [    1.318769] am65-cpsw-nuss 8000000.ethernet: CPTS ver 0x4e8a010c, freq:500000000, add_val:1 pps:1
    [    1.334460] am65-cpsw-nuss 8000000.ethernet: set new flow-id-base 19
    [    1.346000] platform 31000000.usb: Fixed dependency cycle(s) with /bus@f0000/i2c@20000000/tps6598x@3f/connector
    [    1.362215] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    [    1.367813] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    [    1.375657] xhci-hcd xhci-hcd.0.auto: USB3 root hub has no ports
    [    1.381668] xhci-hcd xhci-hcd.0.auto: hcc params 0x0258fe6d hci version 0x110 quirks 0x0000008000000010
    [    1.391164] xhci-hcd xhci-hcd.0.auto: irq 252, io mem 0x31100000
    [    1.398129] hub 1-0:1.0: USB hub found
    [    1.401953] hub 1-0:1.0: 1 port detected
    [    1.408062] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 1200000 KHz, changing to: 1000000 KHz
    [    1.422529] mmc0: CQHCI version 5.10
    [    1.435315] pinctrl-single f4000.pinctrl: pin PIN117 already requested by 2820000.serial; cannot claim for 1-0022
    [    1.445920] pinctrl-single f4000.pinctrl: pin-117 (1-0022) status -22
    [    1.452469] pinctrl-single f4000.pinctrl: could not request pin 117 (PIN117) from group main-gpio1-ioexp-intr-default-pins  on device pinctrl-single
    [    1.465904] pca953x 1-0022: Error applying setting, reverse things back
    [    1.482297] clk: Disabling unused clocks
    [    1.489442] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [    1.502383] ALSA device list:
    [    1.505476]   No soundcards found.
    [    1.509538] Waiting for root device PARTUUID=076c4a2a-02...
    [    1.595479] mmc0: Command Queue Engine enabled
    [    1.599946] mmc0: new HS200 MMC card at address 0001
    [    1.605819] mmcblk0: mmc0:0001 MMC8GB 7.30 GiB
    [    1.612797] mmcblk0boot0: mmc0:0001 MMC8GB 4.00 MiB
    [    1.619107] mmcblk0boot1: mmc0:0001 MMC8GB 4.00 MiB
    [    1.625200] mmcblk0rpmb: mmc0:0001 MMC8GB 4.00 MiB, chardev (239:0)
    [   11.662760] platform 2b300050.target-module: deferred probe pending
    [   11.669096] platform regulator-3: deferred probe pending
    [   11.674437] platform fa00000.mmc: deferred probe pending
    
    HI Prashant

    Because we did not connect UART0, we printed the log from UART2 instead, and the log only had these

  • diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
    index 4d03a0f5b30..89fda17225b 100644
    --- a/arch/arm/dts/Makefile
    +++ b/arch/arm/dts/Makefile
    @@ -1450,7 +1450,9 @@ dtb-$(CONFIG_SOC_K3_AM625) += k3-am625-sk.dtb \
     			      k3-am625-phyboard-lyra-rdk.dtb \
     			      k3-am625-r5-phycore-som-2gb.dtb \
     			      k3-am62-lp-sk.dtb \
    -			      k3-am62-r5-lp-sk.dtb
    +			      k3-am62-r5-lp-sk.dtb \
    +                  k3-am625-charge.dtb \
    +                  k3-am625-r5-charge.dtb
     
     dtb-$(CONFIG_SOC_K3_AM62A7) += k3-am62a7-sk.dtb \
     			      k3-am62a7-r5-sk.dtb
    diff --git a/arch/arm/dts/k3-am62-main.dtsi b/arch/arm/dts/k3-am62-main.dtsi
    index 4d8ad7bd47e..607a913cfc0 100644
    --- a/arch/arm/dts/k3-am62-main.dtsi
    +++ b/arch/arm/dts/k3-am62-main.dtsi
    @@ -606,16 +606,7 @@
     		bus-width = <4>;
     		ti,clkbuf-sel = <0x7>;
     		ti,otap-del-sel-legacy = <0x8>;
    -		ti,otap-del-sel-sd-hs = <0x0>;
    -		ti,otap-del-sel-sdr12 = <0x0>;
    -		ti,otap-del-sel-sdr25 = <0x0>;
    -		ti,otap-del-sel-sdr50 = <0x8>;
    -		ti,otap-del-sel-sdr104 = <0x7>;
    -		ti,otap-del-sel-ddr50 = <0x4>;
     		ti,itap-del-sel-legacy = <0xa>;
    -		ti,itap-del-sel-sd-hs = <0x1>;
    -		ti,itap-del-sel-sdr12 = <0xa>;
    -		ti,itap-del-sel-sdr25 = <0x1>;
     		status = "disabled";
     	};
     
    diff --git a/arch/arm/dts/k3-am625-charge-binman.dtsi b/arch/arm/dts/k3-am625-charge-binman.dtsi
    new file mode 100644
    index 00000000000..7d3ae71e5b3
    --- /dev/null
    +++ b/arch/arm/dts/k3-am625-charge-binman.dtsi
    @@ -0,0 +1,456 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#include "k3-binman.dtsi"
    +
    +#ifdef CONFIG_TARGET_AM625_R5_CHARGE
    +
    +&binman {
    +	tiboot3-am62x-hs-evm.bin {
    +		filename = "tiboot3-am62x-hs-evm.bin";
    +		ti-secure-rom {
    +			content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
    +				<&combined_dm_cfg>, <&sysfw_inner_cert>;
    +			combined;
    +			dm-data;
    +			sysfw-inner-cert;
    +			keyfile = "custMpk.pem";
    +			sw-rev = <1>;
    +			content-sbl = <&u_boot_spl>;
    +			content-sysfw = <&ti_fs_enc>;
    +			content-sysfw-data = <&combined_tifs_cfg>;
    +			content-sysfw-inner-cert = <&sysfw_inner_cert>;
    +			content-dm-data = <&combined_dm_cfg>;
    +			load = <0x43c00000>;
    +			load-sysfw = <0x40000>;
    +			load-sysfw-data = <0x67000>;
    +			load-dm-data = <0x43c3a800>;
    +		};
    +		u_boot_spl: u-boot-spl {
    +			no-expanded;
    +		};
    +		ti_fs_enc: ti-fs-enc.bin {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_tifs_cfg: combined-tifs-cfg.bin {
    +			filename = "combined-tifs-cfg.bin";
    +			type = "blob-ext";
    +		};
    +		sysfw_inner_cert: sysfw-inner-cert {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_dm_cfg: combined-dm-cfg.bin {
    +			filename = "combined-dm-cfg.bin";
    +			type = "blob-ext";
    +		};
    +	};
    +};
    +
    +&binman {
    +	tiboot3-am62x-hs-fs-evm.bin {
    +		filename = "tiboot3-am62x-hs-fs-evm.bin";
    +		symlink = "tiboot3.bin";
    +		ti-secure-rom {
    +			content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
    +				<&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
    +			combined;
    +			dm-data;
    +			sysfw-inner-cert;
    +			keyfile = "custMpk.pem";
    +			sw-rev = <1>;
    +			content-sbl = <&u_boot_spl_fs>;
    +			content-sysfw = <&ti_fs_enc_fs>;
    +			content-sysfw-data = <&combined_tifs_cfg_fs>;
    +			content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
    +			content-dm-data = <&combined_dm_cfg_fs>;
    +			load = <0x43c00000>;
    +			load-sysfw = <0x40000>;
    +			load-sysfw-data = <0x67000>;
    +			load-dm-data = <0x43c3a800>;
    +		};
    +		u_boot_spl_fs: u-boot-spl {
    +			no-expanded;
    +		};
    +		ti_fs_enc_fs: ti-fs-enc.bin {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_tifs_cfg_fs: combined-tifs-cfg.bin {
    +			filename = "combined-tifs-cfg.bin";
    +			type = "blob-ext";
    +		};
    +		sysfw_inner_cert_fs: sysfw-inner-cert {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_dm_cfg_fs: combined-dm-cfg.bin {
    +			filename = "combined-dm-cfg.bin";
    +			type = "blob-ext";
    +		};
    +	};
    +};
    +
    +&binman {
    +	tiboot3-am62x-gp-evm.bin {
    +		filename = "tiboot3-am62x-gp-evm.bin";
    +		ti-secure-rom {
    +			content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
    +				<&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
    +			combined;
    +			dm-data;
    +			content-sbl = <&u_boot_spl_unsigned>;
    +			load = <0x43c00000>;
    +			content-sysfw = <&ti_fs_gp>;
    +			load-sysfw = <0x40000>;
    +			content-sysfw-data = <&combined_tifs_cfg_gp>;
    +			load-sysfw-data = <0x67000>;
    +			content-dm-data = <&combined_dm_cfg_gp>;
    +			load-dm-data = <0x43c3a800>;
    +			sw-rev = <1>;
    +			keyfile = "ti-degenerate-key.pem";
    +		};
    +		u_boot_spl_unsigned: u-boot-spl {
    +			no-expanded;
    +		};
    +		ti_fs_gp: ti-fs-gp.bin {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
    +			filename = "combined-tifs-cfg.bin";
    +			type = "blob-ext";
    +		};
    +		combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
    +			filename = "combined-dm-cfg.bin";
    +			type = "blob-ext";
    +		};
    +
    +	};
    +};
    +
    +#endif
    +
    +#ifdef CONFIG_TARGET_AM625_A53_CHARGE
    +
    +#define SPL_AM625_SK_DTB "spl/dts/k3-am625-charge.dtb"
    +#define AM625_SK_DTB "u-boot.dtb"
    +
    +&binman {
    +	ti-dm {
    +		filename = "ti-dm.bin";
    +		blob-ext {
    +			filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
    +			optional;
    +		};
    +	};
    +
    +	tifsstub-hs {
    +		filename = "tifsstub.bin_hs";
    +		ti-secure-rom {
    +			content = <&tifsstub_hs_cert>;
    +			core = "secure";
    +			load = <0x40000>;
    +			sw-rev = <CONFIG_K3_X509_SWRV>;
    +			keyfile = "custMpk.pem";
    +			countersign;
    +			tifsstub;
    +		};
    +		tifsstub_hs_cert: tifsstub-hs-cert.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		tifsstub_hs_enc: tifsstub-hs-enc.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +	};
    +
    +	tifsstub-fs {
    +		filename = "tifsstub.bin_fs";
    +		tifsstub_fs_cert: tifsstub-fs-cert.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		tifsstub_fs_enc: tifsstub-fs-enc.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +
    +	};
    +
    +	tifsstub-gp {
    +		filename = "tifsstub.bin_gp";
    +		ti-secure-rom {
    +			content = <&tifsstub_gp>;
    +			core = "secure";
    +			load = <0x60000>;
    +			sw-rev = <CONFIG_K3_X509_SWRV>;
    +			keyfile = "ti-degenerate-key.pem";
    +			tifsstub;
    +		};
    +		tifsstub_gp: tifsstub-gp.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +	};
    +
    +	ti-spl {
    +		insert-template = <&ti_spl_template>;
    +
    +		fit {
    +			images {
    +
    +				tifsstub-hs {
    +					description = "TIFSSTUB";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-hs";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_hs";
    +					};
    +				};
    +
    +				tifsstub-fs {
    +					description = "TIFSSTUB";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-fs";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_fs";
    +					};
    +				};
    +
    +				tifsstub-gp {
    +					description = "TIFSSTUB";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-gp";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_gp";
    +					};
    +				};
    +
    +				dm {
    +					ti-secure {
    +						content = <&dm>;
    +						keyfile = "custMpk.pem";
    +					};
    +					dm: ti-dm {
    +						filename = "ti-dm.bin";
    +					};
    +				};
    +
    +				fdt-0 {
    +					description = "k3-am625-sk";
    +					type = "flat_dt";
    +					arch = "arm";
    +					compression = "none";
    +					ti-secure {
    +						content = <&spl_am625_sk_dtb>;
    +						keyfile = "custMpk.pem";
    +					};
    +					spl_am625_sk_dtb: blob-ext {
    +						filename = SPL_AM625_SK_DTB;
    +					};
    +
    +				};
    +
    +			};
    +
    +			configurations {
    +				default = "conf-0";
    +
    +				conf-0 {
    +					description = "k3-am625-sk";
    +					firmware = "atf";
    +					loadables = "tee", "tifsstub-hs", "tifsstub-fs",
    +					"tifsstub-gp", "dm", "spl";
    +					fdt = "fdt-0";
    +				};
    +			};
    +		};
    +	};
    +};
    +
    +&binman {
    +	u-boot {
    +		insert-template = <&u_boot_template>;
    +
    +		fit {
    +			images {
    +				uboot {
    +					description = "U-Boot for AM625 Board";
    +				};
    +
    +				fdt-0 {
    +					description = "k3-am625-sk";
    +					type = "flat_dt";
    +					arch = "arm";
    +					compression = "none";
    +					ti-secure {
    +						content = <&am625_sk_dtb>;
    +						keyfile = "custMpk.pem";
    +					};
    +					am625_sk_dtb: blob-ext {
    +						filename = AM625_SK_DTB;
    +					};
    +					hash {
    +						algo = "crc32";
    +					};
    +				};
    +			};
    +
    +			configurations {
    +				default = "conf-0";
    +
    +				conf-0 {
    +					description = "k3-am625-sk";
    +					firmware = "uboot";
    +					loadables = "uboot";
    +					fdt = "fdt-0";
    +				};
    +
    +			};
    +		};
    +	};
    +};
    +
    +&binman {
    +	ti-spl_unsigned {
    +		insert-template = <&ti_spl_unsigned_template>;
    +
    +		fit {
    +			images {
    +
    +				tifsstub-hs {
    +					description = "tifsstub";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-hs";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_hs";
    +					};
    +				};
    +
    +				tifsstub-fs {
    +					description = "tifsstub";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-fs";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_fs";
    +					};
    +				};
    +
    +				tifsstub-gp {
    +					description = "tifsstub";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-gp";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_gp";
    +					};
    +				};
    +
    +				dm {
    +					ti-dm {
    +						filename = "ti-dm.bin";
    +					};
    +				};
    +
    +				fdt-0 {
    +					description = "k3-am625-sk";
    +					type = "flat_dt";
    +					arch = "arm";
    +					compression = "none";
    +					spl_am625_sk_dtb_unsigned: blob {
    +						filename = SPL_AM625_SK_DTB;
    +					};
    +				};
    +			};
    +
    +			configurations {
    +				default = "conf-0";
    +
    +				conf-0 {
    +					description = "k3-am625-sk";
    +					firmware = "atf";
    +					loadables = "tee", "tifsstub-hs", "tifsstub-fs",
    +						  "tifsstub-gp", "dm", "spl";
    +					fdt = "fdt-0";
    +				};
    +			};
    +		};
    +	};
    +};
    +
    +&binman {
    +	u-boot_unsigned {
    +		insert-template = <&u_boot_unsigned_template>;
    +
    +		fit {
    +			images {
    +				uboot {
    +					description = "U-Boot for AM625 Board";
    +				};
    +
    +				fdt-0 {
    +					description = "k3-am625-sk";
    +					type = "flat_dt";
    +					arch = "arm";
    +					compression = "none";
    +					am625_sk_dtb_unsigned: blob {
    +						filename = AM625_SK_DTB;
    +					};
    +					hash {
    +						algo = "crc32";
    +					};
    +				};
    +			};
    +
    +			configurations {
    +				default = "conf-0";
    +
    +				conf-0 {
    +					description = "k3-am625-sk";
    +					firmware = "uboot";
    +					loadables = "uboot";
    +					fdt = "fdt-0";
    +				};
    +			};
    +		};
    +	};
    +};
    +#endif
    diff --git a/arch/arm/dts/k3-am625-charge-u-boot.dtsi b/arch/arm/dts/k3-am625-charge-u-boot.dtsi
    new file mode 100644
    index 00000000000..6b0723a62b9
    --- /dev/null
    +++ b/arch/arm/dts/k3-am625-charge-u-boot.dtsi
    @@ -0,0 +1,17 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * Common AM625 MINIMAL dts file for SPLs
    + * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#include "k3-am625-charge-binman.dtsi"
    +
    +/ {
    +	chosen {
    +		tick-timer = &main_timer0;
    +	};
    +};
    +
    +&main_timer0 {
    +	clock-frequency = <25000000>;
    +};
    diff --git a/arch/arm/dts/k3-am625-charge.dts b/arch/arm/dts/k3-am625-charge.dts
    new file mode 100644
    index 00000000000..690a06bb55d
    --- /dev/null
    +++ b/arch/arm/dts/k3-am625-charge.dts
    @@ -0,0 +1,191 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * AM625 Minimal
    + *
    + * DT supports loading U-Boot binaries via UART and kernel image,
    + * initramfs, and kernel devicetree through SD.
    + *
    + * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +/dts-v1/;
    +
    +#include "k3-am625.dtsi"
    +
    +/ {
    +	compatible = "liteon,am625-charge", "liteon,am625";
    +	model = "LITEON AM625 CHAGE";
    +
    +	aliases {
    +        serial2 = &main_uart2;
    +        mmc0 = &sdhci0;
    +        mmc1 = &sdhci1;
    +	};
    +
    +	chosen {
    +		stdout-path = "serial2:115200n8";
    +        bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02820000";
    +        tick-timer = &main_timer0;
    +	};
    +
    +	reserved-memory {
    +		#address-cells = <2>;
    +		#size-cells = <2>;
    +		ranges;
    +
    +		secure_tfa_ddr: tfa@80000000 {
    +			reg = <0x00 0x80000000 0x00 0x80000>;
    +			alignment = <0x1000>;
    +			no-map;
    +		};
    +
    +		secure_ddr: optee@9e800000 {
    +			reg = <0x00 0x9e800000 0x00 0x01800000>;
    +			alignment = <0x1000>;
    +			no-map;
    +		};
    +	};
    +};
    +
    +
    +&main_pmx0 {
    +
    +	main_i2c0_pins_default: main-i2c0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16/E12) I2C0_SCL */
    +			AM62X_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16/D14) I2C0_SDA */
    +		>;
    +	};
    +	mcan0_pins_default: mcan0-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x01dc, PIN_INPUT, 0) /* (E15) MCAN0_RX */
    +			AM62X_IOPAD(0x01d8, PIN_OUTPUT, 0) /* (C15) MCAN0_TX */
    +		>;
    +	};
    +
    +	main_mdio1_pins_default: main-mdio1-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x160, PIN_OUTPUT, 0) /* (AD24/V17) MDIO0_MDC */
    +			AM62X_IOPAD(0x15c, PIN_INPUT, 0) /* (AB22/U16) MDIO0_MDIO */
    +		>;
    +	};
    +
    +	main_mmc0_pins_default: main-mmc0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (Y3/V3) MMC0_CMD */
    +			AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (AB1/Y1) MMC0_CLK */
    +			AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (AA2/V2) MMC0_DAT0 */
    +			AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (AA1/V1) MMC0_DAT1 */
    +			AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (AA3/W2) MMC0_DAT2 */
    +			AM62X_IOPAD(0x208, PIN_INPUT, 0) /* (Y4/W1) MMC0_DAT3 */
    +			AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (AB2/Y2) MMC0_DAT4 */
    +			AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (AC1/W3) MMC0_DAT5 */
    +			AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (AD2/W4) MMC0_DAT6 */
    +			AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (AC2/V4) MMC0_DAT7 */
    +		>;
    +	};
    +
    +	main_mmc1_pins_default: main-mmc1-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x23c, PIN_INPUT, 0) /* (A21/C18) MMC1_CMD */
    +			AM62X_IOPAD(0x234, PIN_INPUT, 0) /* (B22/A20) MMC1_CLK */
    +			AM62X_IOPAD(0x230, PIN_INPUT, 0) /* (A22/A19) MMC1_DAT0 */
    +			AM62X_IOPAD(0x22c, PIN_INPUT, 0) /* (B21/B19) MMC1_DAT1 */
    +			AM62X_IOPAD(0x228, PIN_INPUT, 0) /* (C21/B20) MMC1_DAT2 */
    +			AM62X_IOPAD(0x224, PIN_INPUT, 0) /* (D22/C19) MMC1_DAT3 */
    +			AM62X_IOPAD(0x240, PIN_INPUT, 0) /* (D17/C15) MMC1_SDCD */
    +		>;
    +	};
    +
    +	main_rgmii1_pins_default: main-rgmii1-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x14c, PIN_INPUT, 0) /* (AB17/W15) RGMII1_RD0 */
    +			AM62X_IOPAD(0x150, PIN_INPUT, 0) /* (AC17/Y16) RGMII1_RD1 */
    +			AM62X_IOPAD(0x154, PIN_INPUT, 0) /* (AB16/AA17) RGMII1_RD2 */
    +			AM62X_IOPAD(0x158, PIN_INPUT, 0) /* (AA15/Y15) RGMII1_RD3 */
    +			AM62X_IOPAD(0x148, PIN_INPUT, 0) /* (AD17/AA16) RGMII1_RXC */
    +			AM62X_IOPAD(0x144, PIN_INPUT, 0) /* (AE17/W14) RGMII1_RX_CTL */
    +			AM62X_IOPAD(0x134, PIN_OUTPUT, 0) /* (AE20/U14) RGMII1_TD0 */
    +			AM62X_IOPAD(0x138, PIN_OUTPUT, 0) /* (AD20/AA19) RGMII1_TD1 */
    +			AM62X_IOPAD(0x13c, PIN_OUTPUT, 0) /* (AE18/Y17) RGMII1_TD2 */
    +			AM62X_IOPAD(0x140, PIN_OUTPUT, 0) /* (AD18/AA18) RGMII1_TD3 */
    +			AM62X_IOPAD(0x130, PIN_OUTPUT, 0) /* (AE19/W16) RGMII1_TXC */
    +			AM62X_IOPAD(0x12c, PIN_OUTPUT, 0) /* (AD19/V15) RGMII1_TX_CTL */
    +		>;
    +	};
    +
    +    main_uart0_pins_default: main-uart0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14/A13) UART0_RXD */
    +			AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14/E11) UART0_TXD */
    +		>;
    +	};
    +
    +    main_uart1_pins_default: main-uart1-default-pins {
    +		bootph-pre-ram;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1ac, PIN_INPUT, 2) /* (E19/D15) MCASP0_AFSR.UART1_RXD */
    +			AM62X_IOPAD(0x1b0, PIN_OUTPUT, 2) /* (A20/D16) MCASP0_ACLKR.UART1_TXD */
    +		>;
    +	};
    +
    +	main_uart2_pins_default: main-uart2-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x01d0, PIN_INPUT, 3) /* (A15) UART0_CTSn.UART2_RXD */
    +			AM62X_IOPAD(0x01d4, PIN_OUTPUT, 3) /* (B15) UART0_RTSn.UART2_TXD */
    +		>;
    +	};
    +	main_uart4_pins_default: main-uart4-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x00b0, PIN_INPUT, 3) /* (K22) GPMC0_CSn2.UART4_RXD */
    +			AM62X_IOPAD(0x00b4, PIN_OUTPUT, 3) /* (K24) GPMC0_CSn3.UART4_TXD */
    +		>;
    +	};
    +	main_uart6_pins_default: main-uart6-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x009c, PIN_INPUT, 3) /* (V25) GPMC0_WAIT1.UART6_RXD */
    +			AM62X_IOPAD(0x00a0, PIN_OUTPUT, 3) /* (K25) GPMC0_WPn.UART6_TXD */
    +		>;
    +	};
    +};
    +
    +&main_uart0 {
    +	bootph-all;
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart0_pins_default>;
    +	interrupts-extended = <&gic500 GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>,
    +			       <&main_pmx0 0x1c8>; /* (D14) UART0_RXD PADCONFIG114 */
    +	interrupt-names = "irq", "wakeup";
    +};
    +
    +&main_uart1 {
    +	/* Main UART1 is used by TIFS firmware */
    +	bootph-pre-ram;
    +	status = "reserved";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart1_pins_default>;
    +};
    +
    +&main_uart2 {
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart2_pins_default>;
    +};
    +
    +&sdhci1 {
    +	/* SD/MMC */
    +	bootph-all;
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_mmc1_pins_default>;
    +	disable-wp;
    +};
    +
    +&cpsw3g {
    +	status = "disabled";
    +};
    diff --git a/arch/arm/dts/k3-am625-r5-charge.dts b/arch/arm/dts/k3-am625-r5-charge.dts
    new file mode 100644
    index 00000000000..0e323757502
    --- /dev/null
    +++ b/arch/arm/dts/k3-am625-r5-charge.dts
    @@ -0,0 +1,84 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * AM625 MINIMAL dts file for R5 SPL
    + * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#include "k3-am625-charge.dts"
    +#include "k3-am62x-charge-ddr4-1600MTs.dtsi"
    +#include "k3-am62-ddr.dtsi"
    +
    +#include "k3-am625-charge-u-boot.dtsi"
    +
    +/ {
    +	aliases {
    +		remoteproc0 = &sysctrler;
    +		remoteproc1 = &a53_0;
    +	};
    +    
    +	a53_0: a53@0 {
    +		compatible = "ti,am654-rproc";
    +		reg = <0x00 0x00a90000 0x00 0x10>;
    +		power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
    +				<&k3_pds 135 TI_SCI_PD_EXCLUSIVE>,
    +				<&k3_pds 166 TI_SCI_PD_EXCLUSIVE>;
    +		resets = <&k3_reset 135 0>;
    +		clocks = <&k3_clks 61 0>;
    +		assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>;
    +		assigned-clock-parents = <&k3_clks 61 2>;
    +		assigned-clock-rates = <200000000>, <1200000000>;
    +		ti,sci = <&dmsc>;
    +		ti,sci-proc-id = <32>;
    +		ti,sci-host-id = <10>;
    +		bootph-pre-ram;
    +	};
    +
    +	dm_tifs: dm-tifs {
    +		compatible = "ti,j721e-dm-sci";
    +		ti,host-id = <36>;
    +		ti,secure-host;
    +		mbox-names = "rx", "tx";
    +		mboxes= <&secure_proxy_main 22>,
    +			<&secure_proxy_main 23>;
    +		bootph-pre-ram;
    +	};
    +};
    +
    +&dmsc {
    +	mboxes= <&secure_proxy_main 0>,
    +		<&secure_proxy_main 1>,
    +		<&secure_proxy_main 0>;
    +	mbox-names = "rx", "tx", "notify";
    +	ti,host-id = <35>;
    +	ti,secure-host;
    +};
    +
    +&secure_proxy_sa3 {
    +	/* We require this for boot handshake */
    +	status = "disabled";
    +};
    +
    +&cbass_main {
    +	sysctrler: sysctrler {
    +		compatible = "ti,am654-system-controller";
    +		mboxes= <&secure_proxy_main 1>, <&secure_proxy_main 0>, <&secure_proxy_sa3 0>;
    +		mbox-names = "tx", "rx", "boot_notify";
    +		bootph-pre-ram;
    +	};
    +};
    +
    +
    +/* WKUP UART0 is used for DM firmware logs */
    +&wkup_uart0 {
    +	status = "okay";
    +};
    +
    +/* Main UART1 is used for TIFS firmware logs */
    +&main_uart1 {
    +	status = "okay";
    +};
    +
    +&main_pktdma {
    +	ti,sci = <&dm_tifs>;
    +	bootph-all;
    +};
    \ No newline at end of file
    diff --git a/arch/arm/dts/k3-am62x-charge-ddr4-1600MTs.dtsi b/arch/arm/dts/k3-am62x-charge-ddr4-1600MTs.dtsi
    new file mode 100644
    index 00000000000..1a5322f5e4d
    --- /dev/null
    +++ b/arch/arm/dts/k3-am62x-charge-ddr4-1600MTs.dtsi
    @@ -0,0 +1,2193 @@
    +// SPDX-License-Identifier: GPL-2.0+
    +/*
    + * This file was generated with the
    + * AM623/AM625 SysConfig DDR Configuration Tool for AM64x, AM625, AM623, AM62Ax, AM62Px v0.10.02
    + * Thu Oct 31 2024 10:54:40 GMT+0800 (中国标准时间)
    + * DDR Type: DDR4
    + * Frequency = 800MHz (1600MTs)
    + * Density: 8Gb
    + * Number of Ranks: 1
    +*/
    +
    +
    +#define DDRSS_PLL_FHS_CNT 6
    +#define DDRSS_PLL_FREQUENCY_1 400000000
    +#define DDRSS_PLL_FREQUENCY_2 400000000
    +#define DDRSS_SDRAM_IDX 14
    +#define DDRSS_REGION_IDX 17
    +
    +
    +#define DDRSS_CTL_0_DATA 0x00000A00
    +#define DDRSS_CTL_1_DATA 0x00000000
    +#define DDRSS_CTL_2_DATA 0x00000000
    +#define DDRSS_CTL_3_DATA 0x00000000
    +#define DDRSS_CTL_4_DATA 0x00000000
    +#define DDRSS_CTL_5_DATA 0x00000000
    +#define DDRSS_CTL_6_DATA 0x00000000
    +#define DDRSS_CTL_7_DATA 0x000890B8
    +#define DDRSS_CTL_8_DATA 0x00000000
    +#define DDRSS_CTL_9_DATA 0x00000000
    +#define DDRSS_CTL_10_DATA 0x00000000
    +#define DDRSS_CTL_11_DATA 0x000890B8
    +#define DDRSS_CTL_12_DATA 0x00000000
    +#define DDRSS_CTL_13_DATA 0x00000000
    +#define DDRSS_CTL_14_DATA 0x00000000
    +#define DDRSS_CTL_15_DATA 0x000890B8
    +#define DDRSS_CTL_16_DATA 0x00000000
    +#define DDRSS_CTL_17_DATA 0x00000000
    +#define DDRSS_CTL_18_DATA 0x00000000
    +#define DDRSS_CTL_19_DATA 0x01010100
    +#define DDRSS_CTL_20_DATA 0x01000100
    +#define DDRSS_CTL_21_DATA 0x01000110
    +#define DDRSS_CTL_22_DATA 0x02010002
    +#define DDRSS_CTL_23_DATA 0x00027100
    +#define DDRSS_CTL_24_DATA 0x00061A80
    +#define DDRSS_CTL_25_DATA 0x02550255
    +#define DDRSS_CTL_26_DATA 0x00000255
    +#define DDRSS_CTL_27_DATA 0x00000000
    +#define DDRSS_CTL_28_DATA 0x00000000
    +#define DDRSS_CTL_29_DATA 0x00000000
    +#define DDRSS_CTL_30_DATA 0x00000000
    +#define DDRSS_CTL_31_DATA 0x00000000
    +#define DDRSS_CTL_32_DATA 0x00000000
    +#define DDRSS_CTL_33_DATA 0x00000000
    +#define DDRSS_CTL_34_DATA 0x00000000
    +#define DDRSS_CTL_35_DATA 0x00000000
    +#define DDRSS_CTL_36_DATA 0x00000000
    +#define DDRSS_CTL_37_DATA 0x00000000
    +#define DDRSS_CTL_38_DATA 0x0400091C
    +#define DDRSS_CTL_39_DATA 0x1C1C1C1C
    +#define DDRSS_CTL_40_DATA 0x0400091C
    +#define DDRSS_CTL_41_DATA 0x1C1C1C1C
    +#define DDRSS_CTL_42_DATA 0x0400091C
    +#define DDRSS_CTL_43_DATA 0x1C1C1C1C
    +#define DDRSS_CTL_44_DATA 0x05050404
    +#define DDRSS_CTL_45_DATA 0x00002706
    +#define DDRSS_CTL_46_DATA 0x0602001D
    +#define DDRSS_CTL_47_DATA 0x05001D0B
    +#define DDRSS_CTL_48_DATA 0x00270605
    +#define DDRSS_CTL_49_DATA 0x0602001D
    +#define DDRSS_CTL_50_DATA 0x05001D0B
    +#define DDRSS_CTL_51_DATA 0x00270605
    +#define DDRSS_CTL_52_DATA 0x0602001D
    +#define DDRSS_CTL_53_DATA 0x07001D0B
    +#define DDRSS_CTL_54_DATA 0x00180807
    +#define DDRSS_CTL_55_DATA 0x0400DB60
    +#define DDRSS_CTL_56_DATA 0x07070009
    +#define DDRSS_CTL_57_DATA 0x00001808
    +#define DDRSS_CTL_58_DATA 0x0400DB60
    +#define DDRSS_CTL_59_DATA 0x07070009
    +#define DDRSS_CTL_60_DATA 0x00001808
    +#define DDRSS_CTL_61_DATA 0x0400DB60
    +#define DDRSS_CTL_62_DATA 0x03000009
    +#define DDRSS_CTL_63_DATA 0x0D0C0002
    +#define DDRSS_CTL_64_DATA 0x0D0C0D0C
    +#define DDRSS_CTL_65_DATA 0x01010000
    +#define DDRSS_CTL_66_DATA 0x03191919
    +#define DDRSS_CTL_67_DATA 0x0B0B0B0B
    +#define DDRSS_CTL_68_DATA 0x00000B0B
    +#define DDRSS_CTL_69_DATA 0x00000101
    +#define DDRSS_CTL_70_DATA 0x00000000
    +#define DDRSS_CTL_71_DATA 0x01000000
    +#define DDRSS_CTL_72_DATA 0x01180803
    +#define DDRSS_CTL_73_DATA 0x00001860
    +#define DDRSS_CTL_74_DATA 0x00000118
    +#define DDRSS_CTL_75_DATA 0x00001860
    +#define DDRSS_CTL_76_DATA 0x00000118
    +#define DDRSS_CTL_77_DATA 0x00001860
    +#define DDRSS_CTL_78_DATA 0x00000005
    +#define DDRSS_CTL_79_DATA 0x00000000
    +#define DDRSS_CTL_80_DATA 0x00000000
    +#define DDRSS_CTL_81_DATA 0x00000000
    +#define DDRSS_CTL_82_DATA 0x00000000
    +#define DDRSS_CTL_83_DATA 0x00000000
    +#define DDRSS_CTL_84_DATA 0x00000000
    +#define DDRSS_CTL_85_DATA 0x00000000
    +#define DDRSS_CTL_86_DATA 0x00000000
    +#define DDRSS_CTL_87_DATA 0x00090009
    +#define DDRSS_CTL_88_DATA 0x00000009
    +#define DDRSS_CTL_89_DATA 0x00000000
    +#define DDRSS_CTL_90_DATA 0x00000000
    +#define DDRSS_CTL_91_DATA 0x00000000
    +#define DDRSS_CTL_92_DATA 0x00000000
    +#define DDRSS_CTL_93_DATA 0x00000000
    +#define DDRSS_CTL_94_DATA 0x00010001
    +#define DDRSS_CTL_95_DATA 0x00025501
    +#define DDRSS_CTL_96_DATA 0x02550120
    +#define DDRSS_CTL_97_DATA 0x02550120
    +#define DDRSS_CTL_98_DATA 0x01200120
    +#define DDRSS_CTL_99_DATA 0x01200120
    +#define DDRSS_CTL_100_DATA 0x00000000
    +#define DDRSS_CTL_101_DATA 0x00000000
    +#define DDRSS_CTL_102_DATA 0x00000000
    +#define DDRSS_CTL_103_DATA 0x00000000
    +#define DDRSS_CTL_104_DATA 0x00000000
    +#define DDRSS_CTL_105_DATA 0x00000000
    +#define DDRSS_CTL_106_DATA 0x03010000
    +#define DDRSS_CTL_107_DATA 0x00010000
    +#define DDRSS_CTL_108_DATA 0x00000000
    +#define DDRSS_CTL_109_DATA 0x01000000
    +#define DDRSS_CTL_110_DATA 0x80104002
    +#define DDRSS_CTL_111_DATA 0x00040003
    +#define DDRSS_CTL_112_DATA 0x00040005
    +#define DDRSS_CTL_113_DATA 0x00030000
    +#define DDRSS_CTL_114_DATA 0x00050004
    +#define DDRSS_CTL_115_DATA 0x00000004
    +#define DDRSS_CTL_116_DATA 0x00040003
    +#define DDRSS_CTL_117_DATA 0x00040005
    +#define DDRSS_CTL_118_DATA 0x00000000
    +#define DDRSS_CTL_119_DATA 0x00061800
    +#define DDRSS_CTL_120_DATA 0x00061800
    +#define DDRSS_CTL_121_DATA 0x00061800
    +#define DDRSS_CTL_122_DATA 0x00061800
    +#define DDRSS_CTL_123_DATA 0x00061800
    +#define DDRSS_CTL_124_DATA 0x00000000
    +#define DDRSS_CTL_125_DATA 0x0000AAA0
    +#define DDRSS_CTL_126_DATA 0x00061800
    +#define DDRSS_CTL_127_DATA 0x00061800
    +#define DDRSS_CTL_128_DATA 0x00061800
    +#define DDRSS_CTL_129_DATA 0x00061800
    +#define DDRSS_CTL_130_DATA 0x00061800
    +#define DDRSS_CTL_131_DATA 0x00000000
    +#define DDRSS_CTL_132_DATA 0x0000AAA0
    +#define DDRSS_CTL_133_DATA 0x00061800
    +#define DDRSS_CTL_134_DATA 0x00061800
    +#define DDRSS_CTL_135_DATA 0x00061800
    +#define DDRSS_CTL_136_DATA 0x00061800
    +#define DDRSS_CTL_137_DATA 0x00061800
    +#define DDRSS_CTL_138_DATA 0x00000000
    +#define DDRSS_CTL_139_DATA 0x0000AAA0
    +#define DDRSS_CTL_140_DATA 0x00000000
    +#define DDRSS_CTL_141_DATA 0x00000000
    +#define DDRSS_CTL_142_DATA 0x00000000
    +#define DDRSS_CTL_143_DATA 0x00000000
    +#define DDRSS_CTL_144_DATA 0x00000000
    +#define DDRSS_CTL_145_DATA 0x00000000
    +#define DDRSS_CTL_146_DATA 0x00000000
    +#define DDRSS_CTL_147_DATA 0x00000000
    +#define DDRSS_CTL_148_DATA 0x00000000
    +#define DDRSS_CTL_149_DATA 0x00000000
    +#define DDRSS_CTL_150_DATA 0x00000000
    +#define DDRSS_CTL_151_DATA 0x00000000
    +#define DDRSS_CTL_152_DATA 0x00000000
    +#define DDRSS_CTL_153_DATA 0x00000000
    +#define DDRSS_CTL_154_DATA 0x00000000
    +#define DDRSS_CTL_155_DATA 0x00000000
    +#define DDRSS_CTL_156_DATA 0x080C0000
    +#define DDRSS_CTL_157_DATA 0x080C080C
    +#define DDRSS_CTL_158_DATA 0x08000000
    +#define DDRSS_CTL_159_DATA 0x00000808
    +#define DDRSS_CTL_160_DATA 0x000E0000
    +#define DDRSS_CTL_161_DATA 0x00080808
    +#define DDRSS_CTL_162_DATA 0x0E000000
    +#define DDRSS_CTL_163_DATA 0x08080800
    +#define DDRSS_CTL_164_DATA 0x00000000
    +#define DDRSS_CTL_165_DATA 0x0000080E
    +#define DDRSS_CTL_166_DATA 0x00040003
    +#define DDRSS_CTL_167_DATA 0x00000007
    +#define DDRSS_CTL_168_DATA 0x00000000
    +#define DDRSS_CTL_169_DATA 0x00000000
    +#define DDRSS_CTL_170_DATA 0x00000000
    +#define DDRSS_CTL_171_DATA 0x00000000
    +#define DDRSS_CTL_172_DATA 0x00000000
    +#define DDRSS_CTL_173_DATA 0x00000000
    +#define DDRSS_CTL_174_DATA 0x01000000
    +#define DDRSS_CTL_175_DATA 0x00000000
    +#define DDRSS_CTL_176_DATA 0x00001500
    +#define DDRSS_CTL_177_DATA 0x0000100E
    +#define DDRSS_CTL_178_DATA 0x00000000
    +#define DDRSS_CTL_179_DATA 0x00000000
    +#define DDRSS_CTL_180_DATA 0x00000001
    +#define DDRSS_CTL_181_DATA 0x00000002
    +#define DDRSS_CTL_182_DATA 0x00000C00
    +#define DDRSS_CTL_183_DATA 0x00001000
    +#define DDRSS_CTL_184_DATA 0x00000C00
    +#define DDRSS_CTL_185_DATA 0x00001000
    +#define DDRSS_CTL_186_DATA 0x00000C00
    +#define DDRSS_CTL_187_DATA 0x00001000
    +#define DDRSS_CTL_188_DATA 0x00000000
    +#define DDRSS_CTL_189_DATA 0x00000000
    +#define DDRSS_CTL_190_DATA 0x00000000
    +#define DDRSS_CTL_191_DATA 0x00000000
    +#define DDRSS_CTL_192_DATA 0x00000000
    +#define DDRSS_CTL_193_DATA 0x00000000
    +#define DDRSS_CTL_194_DATA 0x00000000
    +#define DDRSS_CTL_195_DATA 0x00000000
    +#define DDRSS_CTL_196_DATA 0x00000000
    +#define DDRSS_CTL_197_DATA 0x00000000
    +#define DDRSS_CTL_198_DATA 0x00000000
    +#define DDRSS_CTL_199_DATA 0x00000000
    +#define DDRSS_CTL_200_DATA 0x00000000
    +#define DDRSS_CTL_201_DATA 0x00000000
    +#define DDRSS_CTL_202_DATA 0x00000000
    +#define DDRSS_CTL_203_DATA 0x00000000
    +#define DDRSS_CTL_204_DATA 0x00042400
    +#define DDRSS_CTL_205_DATA 0x00000301
    +#define DDRSS_CTL_206_DATA 0x00000000
    +#define DDRSS_CTL_207_DATA 0x00000424
    +#define DDRSS_CTL_208_DATA 0x00000301
    +#define DDRSS_CTL_209_DATA 0x00000000
    +#define DDRSS_CTL_210_DATA 0x00000424
    +#define DDRSS_CTL_211_DATA 0x00000301
    +#define DDRSS_CTL_212_DATA 0x00000000
    +#define DDRSS_CTL_213_DATA 0x00000424
    +#define DDRSS_CTL_214_DATA 0x00000301
    +#define DDRSS_CTL_215_DATA 0x00000000
    +#define DDRSS_CTL_216_DATA 0x00000424
    +#define DDRSS_CTL_217_DATA 0x00000301
    +#define DDRSS_CTL_218_DATA 0x00000000
    +#define DDRSS_CTL_219_DATA 0x00000424
    +#define DDRSS_CTL_220_DATA 0x00000301
    +#define DDRSS_CTL_221_DATA 0x00000000
    +#define DDRSS_CTL_222_DATA 0x00000000
    +#define DDRSS_CTL_223_DATA 0x00000000
    +#define DDRSS_CTL_224_DATA 0x00000000
    +#define DDRSS_CTL_225_DATA 0x00000000
    +#define DDRSS_CTL_226_DATA 0x00000000
    +#define DDRSS_CTL_227_DATA 0x00000000
    +#define DDRSS_CTL_228_DATA 0x00000000
    +#define DDRSS_CTL_229_DATA 0x00000000
    +#define DDRSS_CTL_230_DATA 0x00000000
    +#define DDRSS_CTL_231_DATA 0x00000000
    +#define DDRSS_CTL_232_DATA 0x00000000
    +#define DDRSS_CTL_233_DATA 0x00000000
    +#define DDRSS_CTL_234_DATA 0x00000000
    +#define DDRSS_CTL_235_DATA 0x00000000
    +#define DDRSS_CTL_236_DATA 0x00001401
    +#define DDRSS_CTL_237_DATA 0x00001401
    +#define DDRSS_CTL_238_DATA 0x00001401
    +#define DDRSS_CTL_239_DATA 0x00001401
    +#define DDRSS_CTL_240_DATA 0x00001401
    +#define DDRSS_CTL_241_DATA 0x00001401
    +#define DDRSS_CTL_242_DATA 0x00000493
    +#define DDRSS_CTL_243_DATA 0x00000493
    +#define DDRSS_CTL_244_DATA 0x00000493
    +#define DDRSS_CTL_245_DATA 0x00000493
    +#define DDRSS_CTL_246_DATA 0x00000493
    +#define DDRSS_CTL_247_DATA 0x00000493
    +#define DDRSS_CTL_248_DATA 0x00000000
    +#define DDRSS_CTL_249_DATA 0x00000000
    +#define DDRSS_CTL_250_DATA 0x00000000
    +#define DDRSS_CTL_251_DATA 0x00000000
    +#define DDRSS_CTL_252_DATA 0x00000000
    +#define DDRSS_CTL_253_DATA 0x00000000
    +#define DDRSS_CTL_254_DATA 0x00000000
    +#define DDRSS_CTL_255_DATA 0x00000000
    +#define DDRSS_CTL_256_DATA 0x00000000
    +#define DDRSS_CTL_257_DATA 0x00000000
    +#define DDRSS_CTL_258_DATA 0x00000000
    +#define DDRSS_CTL_259_DATA 0x00000000
    +#define DDRSS_CTL_260_DATA 0x00000000
    +#define DDRSS_CTL_261_DATA 0x00000000
    +#define DDRSS_CTL_262_DATA 0x00000000
    +#define DDRSS_CTL_263_DATA 0x00000000
    +#define DDRSS_CTL_264_DATA 0x00000000
    +#define DDRSS_CTL_265_DATA 0x00000000
    +#define DDRSS_CTL_266_DATA 0x00000000
    +#define DDRSS_CTL_267_DATA 0x00000000
    +#define DDRSS_CTL_268_DATA 0x00000000
    +#define DDRSS_CTL_269_DATA 0x00000000
    +#define DDRSS_CTL_270_DATA 0x00000000
    +#define DDRSS_CTL_271_DATA 0x00000000
    +#define DDRSS_CTL_272_DATA 0x00000000
    +#define DDRSS_CTL_273_DATA 0x00000000
    +#define DDRSS_CTL_274_DATA 0x00000000
    +#define DDRSS_CTL_275_DATA 0x00000000
    +#define DDRSS_CTL_276_DATA 0x00000000
    +#define DDRSS_CTL_277_DATA 0x00010000
    +#define DDRSS_CTL_278_DATA 0x00000000
    +#define DDRSS_CTL_279_DATA 0x00000000
    +#define DDRSS_CTL_280_DATA 0x00000000
    +#define DDRSS_CTL_281_DATA 0x00000101
    +#define DDRSS_CTL_282_DATA 0x00000000
    +#define DDRSS_CTL_283_DATA 0x00000000
    +#define DDRSS_CTL_284_DATA 0x00000000
    +#define DDRSS_CTL_285_DATA 0x00000000
    +#define DDRSS_CTL_286_DATA 0x00000000
    +#define DDRSS_CTL_287_DATA 0x00000000
    +#define DDRSS_CTL_288_DATA 0x00000000
    +#define DDRSS_CTL_289_DATA 0x00000000
    +#define DDRSS_CTL_290_DATA 0x0C181511
    +#define DDRSS_CTL_291_DATA 0x00000304
    +#define DDRSS_CTL_292_DATA 0x00000000
    +#define DDRSS_CTL_293_DATA 0x00000000
    +#define DDRSS_CTL_294_DATA 0x00000000
    +#define DDRSS_CTL_295_DATA 0x00000000
    +#define DDRSS_CTL_296_DATA 0x00000000
    +#define DDRSS_CTL_297_DATA 0x00000000
    +#define DDRSS_CTL_298_DATA 0x00000000
    +#define DDRSS_CTL_299_DATA 0x00000000
    +#define DDRSS_CTL_300_DATA 0x00000000
    +#define DDRSS_CTL_301_DATA 0x00000000
    +#define DDRSS_CTL_302_DATA 0x00000000
    +#define DDRSS_CTL_303_DATA 0x00000000
    +#define DDRSS_CTL_304_DATA 0x00000000
    +#define DDRSS_CTL_305_DATA 0x00040000
    +#define DDRSS_CTL_306_DATA 0x00800200
    +#define DDRSS_CTL_307_DATA 0x00000000
    +#define DDRSS_CTL_308_DATA 0x02000400
    +#define DDRSS_CTL_309_DATA 0x00000080
    +#define DDRSS_CTL_310_DATA 0x00040000
    +#define DDRSS_CTL_311_DATA 0x00800200
    +#define DDRSS_CTL_312_DATA 0x00000000
    +#define DDRSS_CTL_313_DATA 0x00000000
    +#define DDRSS_CTL_314_DATA 0x00000000
    +#define DDRSS_CTL_315_DATA 0x00000100
    +#define DDRSS_CTL_316_DATA 0x01010000
    +#define DDRSS_CTL_317_DATA 0x00000101
    +#define DDRSS_CTL_318_DATA 0x1FFF0000
    +#define DDRSS_CTL_319_DATA 0x000FFF00
    +#define DDRSS_CTL_320_DATA 0xFFFFFFFF
    +#define DDRSS_CTL_321_DATA 0x00FFFF00
    +#define DDRSS_CTL_322_DATA 0x0A000000
    +#define DDRSS_CTL_323_DATA 0x0001FFFF
    +#define DDRSS_CTL_324_DATA 0x01010101
    +#define DDRSS_CTL_325_DATA 0x01010101
    +#define DDRSS_CTL_326_DATA 0x00000118
    +#define DDRSS_CTL_327_DATA 0x00000C01
    +#define DDRSS_CTL_328_DATA 0x00000000
    +#define DDRSS_CTL_329_DATA 0x00000000
    +#define DDRSS_CTL_330_DATA 0x00000000
    +#define DDRSS_CTL_331_DATA 0x01000000
    +#define DDRSS_CTL_332_DATA 0x00000100
    +#define DDRSS_CTL_333_DATA 0x00010000
    +#define DDRSS_CTL_334_DATA 0x00000000
    +#define DDRSS_CTL_335_DATA 0x00000000
    +#define DDRSS_CTL_336_DATA 0x00000000
    +#define DDRSS_CTL_337_DATA 0x00000000
    +#define DDRSS_CTL_338_DATA 0x00000000
    +#define DDRSS_CTL_339_DATA 0x00000000
    +#define DDRSS_CTL_340_DATA 0x00000000
    +#define DDRSS_CTL_341_DATA 0x00000000
    +#define DDRSS_CTL_342_DATA 0x00000000
    +#define DDRSS_CTL_343_DATA 0x00000000
    +#define DDRSS_CTL_344_DATA 0x00000000
    +#define DDRSS_CTL_345_DATA 0x00000000
    +#define DDRSS_CTL_346_DATA 0x00000000
    +#define DDRSS_CTL_347_DATA 0x00000000
    +#define DDRSS_CTL_348_DATA 0x00000000
    +#define DDRSS_CTL_349_DATA 0x00000000
    +#define DDRSS_CTL_350_DATA 0x00000000
    +#define DDRSS_CTL_351_DATA 0x00000000
    +#define DDRSS_CTL_352_DATA 0x00000000
    +#define DDRSS_CTL_353_DATA 0x00000000
    +#define DDRSS_CTL_354_DATA 0x00000000
    +#define DDRSS_CTL_355_DATA 0x00000000
    +#define DDRSS_CTL_356_DATA 0x00000000
    +#define DDRSS_CTL_357_DATA 0x00000000
    +#define DDRSS_CTL_358_DATA 0x00000000
    +#define DDRSS_CTL_359_DATA 0x00000000
    +#define DDRSS_CTL_360_DATA 0x00000000
    +#define DDRSS_CTL_361_DATA 0x00000000
    +#define DDRSS_CTL_362_DATA 0x00000000
    +#define DDRSS_CTL_363_DATA 0x00000000
    +#define DDRSS_CTL_364_DATA 0x00000000
    +#define DDRSS_CTL_365_DATA 0x00000000
    +#define DDRSS_CTL_366_DATA 0x00000000
    +#define DDRSS_CTL_367_DATA 0x00000000
    +#define DDRSS_CTL_368_DATA 0x00000000
    +#define DDRSS_CTL_369_DATA 0x00000000
    +#define DDRSS_CTL_370_DATA 0x0C000000
    +#define DDRSS_CTL_371_DATA 0x060C0606
    +#define DDRSS_CTL_372_DATA 0x06060C06
    +#define DDRSS_CTL_373_DATA 0x00010101
    +#define DDRSS_CTL_374_DATA 0x02000000
    +#define DDRSS_CTL_375_DATA 0x05020101
    +#define DDRSS_CTL_376_DATA 0x00000505
    +#define DDRSS_CTL_377_DATA 0x02020200
    +#define DDRSS_CTL_378_DATA 0x02020202
    +#define DDRSS_CTL_379_DATA 0x02020202
    +#define DDRSS_CTL_380_DATA 0x02020202
    +#define DDRSS_CTL_381_DATA 0x00000000
    +#define DDRSS_CTL_382_DATA 0x00000000
    +#define DDRSS_CTL_383_DATA 0x04000100
    +#define DDRSS_CTL_384_DATA 0x1E000004
    +#define DDRSS_CTL_385_DATA 0x000030C0
    +#define DDRSS_CTL_386_DATA 0x00000200
    +#define DDRSS_CTL_387_DATA 0x00000200
    +#define DDRSS_CTL_388_DATA 0x00000200
    +#define DDRSS_CTL_389_DATA 0x00000200
    +#define DDRSS_CTL_390_DATA 0x0000DB60
    +#define DDRSS_CTL_391_DATA 0x0001E780
    +#define DDRSS_CTL_392_DATA 0x0C0D0302
    +#define DDRSS_CTL_393_DATA 0x001E090A
    +#define DDRSS_CTL_394_DATA 0x000030C0
    +#define DDRSS_CTL_395_DATA 0x00000200
    +#define DDRSS_CTL_396_DATA 0x00000200
    +#define DDRSS_CTL_397_DATA 0x00000200
    +#define DDRSS_CTL_398_DATA 0x00000200
    +#define DDRSS_CTL_399_DATA 0x0000DB60
    +#define DDRSS_CTL_400_DATA 0x0001E780
    +#define DDRSS_CTL_401_DATA 0x0C0D0302
    +#define DDRSS_CTL_402_DATA 0x001E090A
    +#define DDRSS_CTL_403_DATA 0x000030C0
    +#define DDRSS_CTL_404_DATA 0x00000200
    +#define DDRSS_CTL_405_DATA 0x00000200
    +#define DDRSS_CTL_406_DATA 0x00000200
    +#define DDRSS_CTL_407_DATA 0x00000200
    +#define DDRSS_CTL_408_DATA 0x0000DB60
    +#define DDRSS_CTL_409_DATA 0x0001E780
    +#define DDRSS_CTL_410_DATA 0x0C0D0302
    +#define DDRSS_CTL_411_DATA 0x0000090A
    +#define DDRSS_CTL_412_DATA 0x00000000
    +#define DDRSS_CTL_413_DATA 0x0302000A
    +#define DDRSS_CTL_414_DATA 0x01000500
    +#define DDRSS_CTL_415_DATA 0x01010001
    +#define DDRSS_CTL_416_DATA 0x00010001
    +#define DDRSS_CTL_417_DATA 0x01010001
    +#define DDRSS_CTL_418_DATA 0x02010000
    +#define DDRSS_CTL_419_DATA 0x00000200
    +#define DDRSS_CTL_420_DATA 0x02000201
    +#define DDRSS_CTL_421_DATA 0x00000000
    +#define DDRSS_CTL_422_DATA 0x00202020
    +#define DDRSS_PI_0_DATA 0x00000A00
    +#define DDRSS_PI_1_DATA 0x00000000
    +#define DDRSS_PI_2_DATA 0x00000000
    +#define DDRSS_PI_3_DATA 0x01000000
    +#define DDRSS_PI_4_DATA 0x00000001
    +#define DDRSS_PI_5_DATA 0x00010064
    +#define DDRSS_PI_6_DATA 0x00000000
    +#define DDRSS_PI_7_DATA 0x00000000
    +#define DDRSS_PI_8_DATA 0x00000000
    +#define DDRSS_PI_9_DATA 0x00000000
    +#define DDRSS_PI_10_DATA 0x00000000
    +#define DDRSS_PI_11_DATA 0x00000000
    +#define DDRSS_PI_12_DATA 0x00000000
    +#define DDRSS_PI_13_DATA 0x00010001
    +#define DDRSS_PI_14_DATA 0x00000000
    +#define DDRSS_PI_15_DATA 0x00010001
    +#define DDRSS_PI_16_DATA 0x00000005
    +#define DDRSS_PI_17_DATA 0x00000000
    +#define DDRSS_PI_18_DATA 0x00000000
    +#define DDRSS_PI_19_DATA 0x00000000
    +#define DDRSS_PI_20_DATA 0x00000000
    +#define DDRSS_PI_21_DATA 0x00000000
    +#define DDRSS_PI_22_DATA 0x00000000
    +#define DDRSS_PI_23_DATA 0x00000000
    +#define DDRSS_PI_24_DATA 0x280D0001
    +#define DDRSS_PI_25_DATA 0x00000000
    +#define DDRSS_PI_26_DATA 0x00010000
    +#define DDRSS_PI_27_DATA 0x00003200
    +#define DDRSS_PI_28_DATA 0x00000000
    +#define DDRSS_PI_29_DATA 0x00000000
    +#define DDRSS_PI_30_DATA 0x00060602
    +#define DDRSS_PI_31_DATA 0x00000000
    +#define DDRSS_PI_32_DATA 0x00000000
    +#define DDRSS_PI_33_DATA 0x00000000
    +#define DDRSS_PI_34_DATA 0x00000001
    +#define DDRSS_PI_35_DATA 0x00000055
    +#define DDRSS_PI_36_DATA 0x000000AA
    +#define DDRSS_PI_37_DATA 0x000000AD
    +#define DDRSS_PI_38_DATA 0x00000052
    +#define DDRSS_PI_39_DATA 0x0000006A
    +#define DDRSS_PI_40_DATA 0x00000095
    +#define DDRSS_PI_41_DATA 0x00000095
    +#define DDRSS_PI_42_DATA 0x000000AD
    +#define DDRSS_PI_43_DATA 0x00000000
    +#define DDRSS_PI_44_DATA 0x00000000
    +#define DDRSS_PI_45_DATA 0x00010100
    +#define DDRSS_PI_46_DATA 0x00000014
    +#define DDRSS_PI_47_DATA 0x000007D0
    +#define DDRSS_PI_48_DATA 0x00000300
    +#define DDRSS_PI_49_DATA 0x00000000
    +#define DDRSS_PI_50_DATA 0x00000000
    +#define DDRSS_PI_51_DATA 0x01000000
    +#define DDRSS_PI_52_DATA 0x00010101
    +#define DDRSS_PI_53_DATA 0x01000000
    +#define DDRSS_PI_54_DATA 0x00000000
    +#define DDRSS_PI_55_DATA 0x00010000
    +#define DDRSS_PI_56_DATA 0x00000000
    +#define DDRSS_PI_57_DATA 0x00000000
    +#define DDRSS_PI_58_DATA 0x00000000
    +#define DDRSS_PI_59_DATA 0x00000000
    +#define DDRSS_PI_60_DATA 0x00001400
    +#define DDRSS_PI_61_DATA 0x00000000
    +#define DDRSS_PI_62_DATA 0x01000000
    +#define DDRSS_PI_63_DATA 0x00000404
    +#define DDRSS_PI_64_DATA 0x00000001
    +#define DDRSS_PI_65_DATA 0x0001010E
    +#define DDRSS_PI_66_DATA 0x02040100
    +#define DDRSS_PI_67_DATA 0x00010000
    +#define DDRSS_PI_68_DATA 0x00000034
    +#define DDRSS_PI_69_DATA 0x00000000
    +#define DDRSS_PI_70_DATA 0x00000000
    +#define DDRSS_PI_71_DATA 0x00000000
    +#define DDRSS_PI_72_DATA 0x00000000
    +#define DDRSS_PI_73_DATA 0x00000000
    +#define DDRSS_PI_74_DATA 0x00000000
    +#define DDRSS_PI_75_DATA 0x00000005
    +#define DDRSS_PI_76_DATA 0x01000000
    +#define DDRSS_PI_77_DATA 0x04010100
    +#define DDRSS_PI_78_DATA 0x00020000
    +#define DDRSS_PI_79_DATA 0x00010002
    +#define DDRSS_PI_80_DATA 0x00000001
    +#define DDRSS_PI_81_DATA 0x00020001
    +#define DDRSS_PI_82_DATA 0x00020002
    +#define DDRSS_PI_83_DATA 0x00000000
    +#define DDRSS_PI_84_DATA 0x00000000
    +#define DDRSS_PI_85_DATA 0x00000000
    +#define DDRSS_PI_86_DATA 0x00000000
    +#define DDRSS_PI_87_DATA 0x00000000
    +#define DDRSS_PI_88_DATA 0x00000000
    +#define DDRSS_PI_89_DATA 0x00000000
    +#define DDRSS_PI_90_DATA 0x00000000
    +#define DDRSS_PI_91_DATA 0x00000300
    +#define DDRSS_PI_92_DATA 0x0A090B0C
    +#define DDRSS_PI_93_DATA 0x04060708
    +#define DDRSS_PI_94_DATA 0x01000005
    +#define DDRSS_PI_95_DATA 0x00000800
    +#define DDRSS_PI_96_DATA 0x00000000
    +#define DDRSS_PI_97_DATA 0x00010008
    +#define DDRSS_PI_98_DATA 0x00000000
    +#define DDRSS_PI_99_DATA 0x0000AA00
    +#define DDRSS_PI_100_DATA 0x00000000
    +#define DDRSS_PI_101_DATA 0x00010000
    +#define DDRSS_PI_102_DATA 0x00000000
    +#define DDRSS_PI_103_DATA 0x00000000
    +#define DDRSS_PI_104_DATA 0x00000000
    +#define DDRSS_PI_105_DATA 0x00000000
    +#define DDRSS_PI_106_DATA 0x00000000
    +#define DDRSS_PI_107_DATA 0x00000000
    +#define DDRSS_PI_108_DATA 0x00000000
    +#define DDRSS_PI_109_DATA 0x00000000
    +#define DDRSS_PI_110_DATA 0x00000000
    +#define DDRSS_PI_111_DATA 0x00000000
    +#define DDRSS_PI_112_DATA 0x00000000
    +#define DDRSS_PI_113_DATA 0x00000000
    +#define DDRSS_PI_114_DATA 0x00000000
    +#define DDRSS_PI_115_DATA 0x00000000
    +#define DDRSS_PI_116_DATA 0x00000000
    +#define DDRSS_PI_117_DATA 0x00000000
    +#define DDRSS_PI_118_DATA 0x00000000
    +#define DDRSS_PI_119_DATA 0x00000000
    +#define DDRSS_PI_120_DATA 0x00000000
    +#define DDRSS_PI_121_DATA 0x00000000
    +#define DDRSS_PI_122_DATA 0x00000000
    +#define DDRSS_PI_123_DATA 0x00000000
    +#define DDRSS_PI_124_DATA 0x00000008
    +#define DDRSS_PI_125_DATA 0x00000000
    +#define DDRSS_PI_126_DATA 0x00000000
    +#define DDRSS_PI_127_DATA 0x00000000
    +#define DDRSS_PI_128_DATA 0x00000000
    +#define DDRSS_PI_129_DATA 0x00000000
    +#define DDRSS_PI_130_DATA 0x00000000
    +#define DDRSS_PI_131_DATA 0x00000000
    +#define DDRSS_PI_132_DATA 0x00000000
    +#define DDRSS_PI_133_DATA 0x00010100
    +#define DDRSS_PI_134_DATA 0x00000000
    +#define DDRSS_PI_135_DATA 0x00000000
    +#define DDRSS_PI_136_DATA 0x00027100
    +#define DDRSS_PI_137_DATA 0x00061A80
    +#define DDRSS_PI_138_DATA 0x00000100
    +#define DDRSS_PI_139_DATA 0x00000000
    +#define DDRSS_PI_140_DATA 0x00000000
    +#define DDRSS_PI_141_DATA 0x00000000
    +#define DDRSS_PI_142_DATA 0x00000000
    +#define DDRSS_PI_143_DATA 0x00000000
    +#define DDRSS_PI_144_DATA 0x01000000
    +#define DDRSS_PI_145_DATA 0x00010003
    +#define DDRSS_PI_146_DATA 0x02000101
    +#define DDRSS_PI_147_DATA 0x01030001
    +#define DDRSS_PI_148_DATA 0x00010400
    +#define DDRSS_PI_149_DATA 0x06000105
    +#define DDRSS_PI_150_DATA 0x01070001
    +#define DDRSS_PI_151_DATA 0x00000000
    +#define DDRSS_PI_152_DATA 0x00000000
    +#define DDRSS_PI_153_DATA 0x00000000
    +#define DDRSS_PI_154_DATA 0x00010000
    +#define DDRSS_PI_155_DATA 0x00000000
    +#define DDRSS_PI_156_DATA 0x00000000
    +#define DDRSS_PI_157_DATA 0x00000000
    +#define DDRSS_PI_158_DATA 0x00000000
    +#define DDRSS_PI_159_DATA 0x00010000
    +#define DDRSS_PI_160_DATA 0x00000004
    +#define DDRSS_PI_161_DATA 0x00000000
    +#define DDRSS_PI_162_DATA 0x00000000
    +#define DDRSS_PI_163_DATA 0x00000000
    +#define DDRSS_PI_164_DATA 0x00007800
    +#define DDRSS_PI_165_DATA 0x00780078
    +#define DDRSS_PI_166_DATA 0x00141414
    +#define DDRSS_PI_167_DATA 0x0000003A
    +#define DDRSS_PI_168_DATA 0x0000003A
    +#define DDRSS_PI_169_DATA 0x0004003A
    +#define DDRSS_PI_170_DATA 0x04000400
    +#define DDRSS_PI_171_DATA 0xC8040009
    +#define DDRSS_PI_172_DATA 0x0400091C
    +#define DDRSS_PI_173_DATA 0x00091CC8
    +#define DDRSS_PI_174_DATA 0x001CC804
    +#define DDRSS_PI_175_DATA 0x00000118
    +#define DDRSS_PI_176_DATA 0x00001860
    +#define DDRSS_PI_177_DATA 0x00000118
    +#define DDRSS_PI_178_DATA 0x00001860
    +#define DDRSS_PI_179_DATA 0x00000118
    +#define DDRSS_PI_180_DATA 0x04001860
    +#define DDRSS_PI_181_DATA 0x01010404
    +#define DDRSS_PI_182_DATA 0x00001901
    +#define DDRSS_PI_183_DATA 0x00190019
    +#define DDRSS_PI_184_DATA 0x010C010C
    +#define DDRSS_PI_185_DATA 0x0000010C
    +#define DDRSS_PI_186_DATA 0x00000000
    +#define DDRSS_PI_187_DATA 0x05000000
    +#define DDRSS_PI_188_DATA 0x01010505
    +#define DDRSS_PI_189_DATA 0x01010101
    +#define DDRSS_PI_190_DATA 0x00181818
    +#define DDRSS_PI_191_DATA 0x00000000
    +#define DDRSS_PI_192_DATA 0x00000000
    +#define DDRSS_PI_193_DATA 0x0D000000
    +#define DDRSS_PI_194_DATA 0x0A0A0D0D
    +#define DDRSS_PI_195_DATA 0x0303030A
    +#define DDRSS_PI_196_DATA 0x00000000
    +#define DDRSS_PI_197_DATA 0x00000000
    +#define DDRSS_PI_198_DATA 0x00000000
    +#define DDRSS_PI_199_DATA 0x00000000
    +#define DDRSS_PI_200_DATA 0x00000000
    +#define DDRSS_PI_201_DATA 0x00000000
    +#define DDRSS_PI_202_DATA 0x00000000
    +#define DDRSS_PI_203_DATA 0x00000000
    +#define DDRSS_PI_204_DATA 0x00000000
    +#define DDRSS_PI_205_DATA 0x00000000
    +#define DDRSS_PI_206_DATA 0x00000000
    +#define DDRSS_PI_207_DATA 0x00000000
    +#define DDRSS_PI_208_DATA 0x00000000
    +#define DDRSS_PI_209_DATA 0x0D090000
    +#define DDRSS_PI_210_DATA 0x0D09000D
    +#define DDRSS_PI_211_DATA 0x0D09000D
    +#define DDRSS_PI_212_DATA 0x0000000D
    +#define DDRSS_PI_213_DATA 0x00000000
    +#define DDRSS_PI_214_DATA 0x00000000
    +#define DDRSS_PI_215_DATA 0x00000000
    +#define DDRSS_PI_216_DATA 0x00000000
    +#define DDRSS_PI_217_DATA 0x16000000
    +#define DDRSS_PI_218_DATA 0x001600C8
    +#define DDRSS_PI_219_DATA 0x001600C8
    +#define DDRSS_PI_220_DATA 0x010100C8
    +#define DDRSS_PI_221_DATA 0x00001B01
    +#define DDRSS_PI_222_DATA 0x1F0F0053
    +#define DDRSS_PI_223_DATA 0x05000001
    +#define DDRSS_PI_224_DATA 0x001B0A0D
    +#define DDRSS_PI_225_DATA 0x1F0F0053
    +#define DDRSS_PI_226_DATA 0x05000001
    +#define DDRSS_PI_227_DATA 0x001B0A0D
    +#define DDRSS_PI_228_DATA 0x1F0F0053
    +#define DDRSS_PI_229_DATA 0x05000001
    +#define DDRSS_PI_230_DATA 0x00010A0D
    +#define DDRSS_PI_231_DATA 0x0C0B0700
    +#define DDRSS_PI_232_DATA 0x000D0605
    +#define DDRSS_PI_233_DATA 0x0000C570
    +#define DDRSS_PI_234_DATA 0x0000001D
    +#define DDRSS_PI_235_DATA 0x180A0800
    +#define DDRSS_PI_236_DATA 0x0B071C1C
    +#define DDRSS_PI_237_DATA 0x0D06050C
    +#define DDRSS_PI_238_DATA 0x0000C570
    +#define DDRSS_PI_239_DATA 0x0000001D
    +#define DDRSS_PI_240_DATA 0x180A0800
    +#define DDRSS_PI_241_DATA 0x0B071C1C
    +#define DDRSS_PI_242_DATA 0x0D06050C
    +#define DDRSS_PI_243_DATA 0x0000C570
    +#define DDRSS_PI_244_DATA 0x0000001D
    +#define DDRSS_PI_245_DATA 0x180A0800
    +#define DDRSS_PI_246_DATA 0x00001C1C
    +#define DDRSS_PI_247_DATA 0x000030C0
    +#define DDRSS_PI_248_DATA 0x0001E780
    +#define DDRSS_PI_249_DATA 0x000030C0
    +#define DDRSS_PI_250_DATA 0x0001E780
    +#define DDRSS_PI_251_DATA 0x000030C0
    +#define DDRSS_PI_252_DATA 0x0001E780
    +#define DDRSS_PI_253_DATA 0x02550255
    +#define DDRSS_PI_254_DATA 0x03030255
    +#define DDRSS_PI_255_DATA 0x00025503
    +#define DDRSS_PI_256_DATA 0x02550255
    +#define DDRSS_PI_257_DATA 0x0C080C08
    +#define DDRSS_PI_258_DATA 0x00000C08
    +#define DDRSS_PI_259_DATA 0x000890B8
    +#define DDRSS_PI_260_DATA 0x00000000
    +#define DDRSS_PI_261_DATA 0x00000000
    +#define DDRSS_PI_262_DATA 0x00000000
    +#define DDRSS_PI_263_DATA 0x00000120
    +#define DDRSS_PI_264_DATA 0x000890B8
    +#define DDRSS_PI_265_DATA 0x00000000
    +#define DDRSS_PI_266_DATA 0x00000000
    +#define DDRSS_PI_267_DATA 0x00000000
    +#define DDRSS_PI_268_DATA 0x00000120
    +#define DDRSS_PI_269_DATA 0x000890B8
    +#define DDRSS_PI_270_DATA 0x00000000
    +#define DDRSS_PI_271_DATA 0x00000000
    +#define DDRSS_PI_272_DATA 0x00000000
    +#define DDRSS_PI_273_DATA 0x02000120
    +#define DDRSS_PI_274_DATA 0x00000080
    +#define DDRSS_PI_275_DATA 0x00020000
    +#define DDRSS_PI_276_DATA 0x00000080
    +#define DDRSS_PI_277_DATA 0x00020000
    +#define DDRSS_PI_278_DATA 0x00000080
    +#define DDRSS_PI_279_DATA 0x00000000
    +#define DDRSS_PI_280_DATA 0x00000000
    +#define DDRSS_PI_281_DATA 0x00040404
    +#define DDRSS_PI_282_DATA 0x00000000
    +#define DDRSS_PI_283_DATA 0x02010102
    +#define DDRSS_PI_284_DATA 0x67676767
    +#define DDRSS_PI_285_DATA 0x00000202
    +#define DDRSS_PI_286_DATA 0x00000000
    +#define DDRSS_PI_287_DATA 0x00000000
    +#define DDRSS_PI_288_DATA 0x00000000
    +#define DDRSS_PI_289_DATA 0x00000000
    +#define DDRSS_PI_290_DATA 0x00000000
    +#define DDRSS_PI_291_DATA 0x0D100F00
    +#define DDRSS_PI_292_DATA 0x0003020E
    +#define DDRSS_PI_293_DATA 0x00000001
    +#define DDRSS_PI_294_DATA 0x01000000
    +#define DDRSS_PI_295_DATA 0x00020201
    +#define DDRSS_PI_296_DATA 0x00000000
    +#define DDRSS_PI_297_DATA 0x00000424
    +#define DDRSS_PI_298_DATA 0x00000301
    +#define DDRSS_PI_299_DATA 0x00000000
    +#define DDRSS_PI_300_DATA 0x00000000
    +#define DDRSS_PI_301_DATA 0x00000000
    +#define DDRSS_PI_302_DATA 0x00001401
    +#define DDRSS_PI_303_DATA 0x00000493
    +#define DDRSS_PI_304_DATA 0x00000000
    +#define DDRSS_PI_305_DATA 0x00000424
    +#define DDRSS_PI_306_DATA 0x00000301
    +#define DDRSS_PI_307_DATA 0x00000000
    +#define DDRSS_PI_308_DATA 0x00000000
    +#define DDRSS_PI_309_DATA 0x00000000
    +#define DDRSS_PI_310_DATA 0x00001401
    +#define DDRSS_PI_311_DATA 0x00000493
    +#define DDRSS_PI_312_DATA 0x00000000
    +#define DDRSS_PI_313_DATA 0x00000424
    +#define DDRSS_PI_314_DATA 0x00000301
    +#define DDRSS_PI_315_DATA 0x00000000
    +#define DDRSS_PI_316_DATA 0x00000000
    +#define DDRSS_PI_317_DATA 0x00000000
    +#define DDRSS_PI_318_DATA 0x00001401
    +#define DDRSS_PI_319_DATA 0x00000493
    +#define DDRSS_PI_320_DATA 0x00000000
    +#define DDRSS_PI_321_DATA 0x00000424
    +#define DDRSS_PI_322_DATA 0x00000301
    +#define DDRSS_PI_323_DATA 0x00000000
    +#define DDRSS_PI_324_DATA 0x00000000
    +#define DDRSS_PI_325_DATA 0x00000000
    +#define DDRSS_PI_326_DATA 0x00001401
    +#define DDRSS_PI_327_DATA 0x00000493
    +#define DDRSS_PI_328_DATA 0x00000000
    +#define DDRSS_PI_329_DATA 0x00000424
    +#define DDRSS_PI_330_DATA 0x00000301
    +#define DDRSS_PI_331_DATA 0x00000000
    +#define DDRSS_PI_332_DATA 0x00000000
    +#define DDRSS_PI_333_DATA 0x00000000
    +#define DDRSS_PI_334_DATA 0x00001401
    +#define DDRSS_PI_335_DATA 0x00000493
    +#define DDRSS_PI_336_DATA 0x00000000
    +#define DDRSS_PI_337_DATA 0x00000424
    +#define DDRSS_PI_338_DATA 0x00000301
    +#define DDRSS_PI_339_DATA 0x00000000
    +#define DDRSS_PI_340_DATA 0x00000000
    +#define DDRSS_PI_341_DATA 0x00000000
    +#define DDRSS_PI_342_DATA 0x00001401
    +#define DDRSS_PI_343_DATA 0x00000493
    +#define DDRSS_PI_344_DATA 0x00000000
    +#define DDRSS_PHY_0_DATA 0x04C00000
    +#define DDRSS_PHY_1_DATA 0x00000000
    +#define DDRSS_PHY_2_DATA 0x00000200
    +#define DDRSS_PHY_3_DATA 0x00000000
    +#define DDRSS_PHY_4_DATA 0x00000000
    +#define DDRSS_PHY_5_DATA 0x00000000
    +#define DDRSS_PHY_6_DATA 0x00000000
    +#define DDRSS_PHY_7_DATA 0x00000000
    +#define DDRSS_PHY_8_DATA 0x00000001
    +#define DDRSS_PHY_9_DATA 0x00000000
    +#define DDRSS_PHY_10_DATA 0x00000000
    +#define DDRSS_PHY_11_DATA 0x010101FF
    +#define DDRSS_PHY_12_DATA 0x00010000
    +#define DDRSS_PHY_13_DATA 0x00C00004
    +#define DDRSS_PHY_14_DATA 0x00CC0008
    +#define DDRSS_PHY_15_DATA 0x00660201
    +#define DDRSS_PHY_16_DATA 0x00000000
    +#define DDRSS_PHY_17_DATA 0x00000000
    +#define DDRSS_PHY_18_DATA 0x00000000
    +#define DDRSS_PHY_19_DATA 0x0000AAAA
    +#define DDRSS_PHY_20_DATA 0x00005555
    +#define DDRSS_PHY_21_DATA 0x0000B5B5
    +#define DDRSS_PHY_22_DATA 0x00004A4A
    +#define DDRSS_PHY_23_DATA 0x00005656
    +#define DDRSS_PHY_24_DATA 0x0000A9A9
    +#define DDRSS_PHY_25_DATA 0x0000B7B7
    +#define DDRSS_PHY_26_DATA 0x00004848
    +#define DDRSS_PHY_27_DATA 0x00000000
    +#define DDRSS_PHY_28_DATA 0x00000000
    +#define DDRSS_PHY_29_DATA 0x08000000
    +#define DDRSS_PHY_30_DATA 0x0F000008
    +#define DDRSS_PHY_31_DATA 0x00000F0F
    +#define DDRSS_PHY_32_DATA 0x00E4E400
    +#define DDRSS_PHY_33_DATA 0x00070820
    +#define DDRSS_PHY_34_DATA 0x000C0020
    +#define DDRSS_PHY_35_DATA 0x00062000
    +#define DDRSS_PHY_36_DATA 0x00000000
    +#define DDRSS_PHY_37_DATA 0x55555555
    +#define DDRSS_PHY_38_DATA 0xAAAAAAAA
    +#define DDRSS_PHY_39_DATA 0x55555555
    +#define DDRSS_PHY_40_DATA 0xAAAAAAAA
    +#define DDRSS_PHY_41_DATA 0x00005555
    +#define DDRSS_PHY_42_DATA 0x01000100
    +#define DDRSS_PHY_43_DATA 0x00800180
    +#define DDRSS_PHY_44_DATA 0x00000000
    +#define DDRSS_PHY_45_DATA 0x00000000
    +#define DDRSS_PHY_46_DATA 0x00000000
    +#define DDRSS_PHY_47_DATA 0x00000000
    +#define DDRSS_PHY_48_DATA 0x00000000
    +#define DDRSS_PHY_49_DATA 0x00000000
    +#define DDRSS_PHY_50_DATA 0x00000000
    +#define DDRSS_PHY_51_DATA 0x00000000
    +#define DDRSS_PHY_52_DATA 0x00000000
    +#define DDRSS_PHY_53_DATA 0x00000000
    +#define DDRSS_PHY_54_DATA 0x00000000
    +#define DDRSS_PHY_55_DATA 0x00000000
    +#define DDRSS_PHY_56_DATA 0x00000000
    +#define DDRSS_PHY_57_DATA 0x00000000
    +#define DDRSS_PHY_58_DATA 0x00000000
    +#define DDRSS_PHY_59_DATA 0x00000000
    +#define DDRSS_PHY_60_DATA 0x00000000
    +#define DDRSS_PHY_61_DATA 0x00000000
    +#define DDRSS_PHY_62_DATA 0x00000000
    +#define DDRSS_PHY_63_DATA 0x00000000
    +#define DDRSS_PHY_64_DATA 0x00000000
    +#define DDRSS_PHY_65_DATA 0x00000004
    +#define DDRSS_PHY_66_DATA 0x00000000
    +#define DDRSS_PHY_67_DATA 0x00000000
    +#define DDRSS_PHY_68_DATA 0x00000000
    +#define DDRSS_PHY_69_DATA 0x00000000
    +#define DDRSS_PHY_70_DATA 0x00000000
    +#define DDRSS_PHY_71_DATA 0x00000000
    +#define DDRSS_PHY_72_DATA 0x041F07FF
    +#define DDRSS_PHY_73_DATA 0x00000000
    +#define DDRSS_PHY_74_DATA 0x01CCB001
    +#define DDRSS_PHY_75_DATA 0x2000CCB0
    +#define DDRSS_PHY_76_DATA 0x20000140
    +#define DDRSS_PHY_77_DATA 0x07FF0200
    +#define DDRSS_PHY_78_DATA 0x0000DD01
    +#define DDRSS_PHY_79_DATA 0x10100303
    +#define DDRSS_PHY_80_DATA 0x10101010
    +#define DDRSS_PHY_81_DATA 0x10101010
    +#define DDRSS_PHY_82_DATA 0x00021010
    +#define DDRSS_PHY_83_DATA 0x00100010
    +#define DDRSS_PHY_84_DATA 0x00100010
    +#define DDRSS_PHY_85_DATA 0x00100010
    +#define DDRSS_PHY_86_DATA 0x00100010
    +#define DDRSS_PHY_87_DATA 0x02020010
    +#define DDRSS_PHY_88_DATA 0x51515041
    +#define DDRSS_PHY_89_DATA 0x31804000
    +#define DDRSS_PHY_90_DATA 0x04BF0340
    +#define DDRSS_PHY_91_DATA 0x01008080
    +#define DDRSS_PHY_92_DATA 0x04050001
    +#define DDRSS_PHY_93_DATA 0x00000504
    +#define DDRSS_PHY_94_DATA 0x42100010
    +#define DDRSS_PHY_95_DATA 0x010C053E
    +#define DDRSS_PHY_96_DATA 0x000F0C14
    +#define DDRSS_PHY_97_DATA 0x01000140
    +#define DDRSS_PHY_98_DATA 0x007A0120
    +#define DDRSS_PHY_99_DATA 0x00000C00
    +#define DDRSS_PHY_100_DATA 0x000001CC
    +#define DDRSS_PHY_101_DATA 0x20100200
    +#define DDRSS_PHY_102_DATA 0x00000005
    +#define DDRSS_PHY_103_DATA 0x76543210
    +#define DDRSS_PHY_104_DATA 0x00000008
    +#define DDRSS_PHY_105_DATA 0x02800280
    +#define DDRSS_PHY_106_DATA 0x02800280
    +#define DDRSS_PHY_107_DATA 0x02800280
    +#define DDRSS_PHY_108_DATA 0x02800280
    +#define DDRSS_PHY_109_DATA 0x00000280
    +#define DDRSS_PHY_110_DATA 0x00008000
    +#define DDRSS_PHY_111_DATA 0x00800080
    +#define DDRSS_PHY_112_DATA 0x00800080
    +#define DDRSS_PHY_113_DATA 0x00800080
    +#define DDRSS_PHY_114_DATA 0x00800080
    +#define DDRSS_PHY_115_DATA 0x00800080
    +#define DDRSS_PHY_116_DATA 0x00800080
    +#define DDRSS_PHY_117_DATA 0x00800080
    +#define DDRSS_PHY_118_DATA 0x00800080
    +#define DDRSS_PHY_119_DATA 0x01000080
    +#define DDRSS_PHY_120_DATA 0x01000000
    +#define DDRSS_PHY_121_DATA 0x00000000
    +#define DDRSS_PHY_122_DATA 0x00000000
    +#define DDRSS_PHY_123_DATA 0x00080200
    +#define DDRSS_PHY_124_DATA 0x00000000
    +#define DDRSS_PHY_125_DATA 0x00000000
    +#define DDRSS_PHY_126_DATA 0x00000000
    +#define DDRSS_PHY_127_DATA 0x00000000
    +#define DDRSS_PHY_128_DATA 0x00000000
    +#define DDRSS_PHY_129_DATA 0x00000000
    +#define DDRSS_PHY_130_DATA 0x00000000
    +#define DDRSS_PHY_131_DATA 0x00000000
    +#define DDRSS_PHY_132_DATA 0x00000000
    +#define DDRSS_PHY_133_DATA 0x00000000
    +#define DDRSS_PHY_134_DATA 0x00000000
    +#define DDRSS_PHY_135_DATA 0x00000000
    +#define DDRSS_PHY_136_DATA 0x00000000
    +#define DDRSS_PHY_137_DATA 0x00000000
    +#define DDRSS_PHY_138_DATA 0x00000000
    +#define DDRSS_PHY_139_DATA 0x00000000
    +#define DDRSS_PHY_140_DATA 0x00000000
    +#define DDRSS_PHY_141_DATA 0x00000000
    +#define DDRSS_PHY_142_DATA 0x00000000
    +#define DDRSS_PHY_143_DATA 0x00000000
    +#define DDRSS_PHY_144_DATA 0x00000000
    +#define DDRSS_PHY_145_DATA 0x00000000
    +#define DDRSS_PHY_146_DATA 0x00000000
    +#define DDRSS_PHY_147_DATA 0x00000000
    +#define DDRSS_PHY_148_DATA 0x00000000
    +#define DDRSS_PHY_149_DATA 0x00000000
    +#define DDRSS_PHY_150_DATA 0x00000000
    +#define DDRSS_PHY_151_DATA 0x00000000
    +#define DDRSS_PHY_152_DATA 0x00000000
    +#define DDRSS_PHY_153_DATA 0x00000000
    +#define DDRSS_PHY_154_DATA 0x00000000
    +#define DDRSS_PHY_155_DATA 0x00000000
    +#define DDRSS_PHY_156_DATA 0x00000000
    +#define DDRSS_PHY_157_DATA 0x00000000
    +#define DDRSS_PHY_158_DATA 0x00000000
    +#define DDRSS_PHY_159_DATA 0x00000000
    +#define DDRSS_PHY_160_DATA 0x00000000
    +#define DDRSS_PHY_161_DATA 0x00000000
    +#define DDRSS_PHY_162_DATA 0x00000000
    +#define DDRSS_PHY_163_DATA 0x00000000
    +#define DDRSS_PHY_164_DATA 0x00000000
    +#define DDRSS_PHY_165_DATA 0x00000000
    +#define DDRSS_PHY_166_DATA 0x00000000
    +#define DDRSS_PHY_167_DATA 0x00000000
    +#define DDRSS_PHY_168_DATA 0x00000000
    +#define DDRSS_PHY_169_DATA 0x00000000
    +#define DDRSS_PHY_170_DATA 0x00000000
    +#define DDRSS_PHY_171_DATA 0x00000000
    +#define DDRSS_PHY_172_DATA 0x00000000
    +#define DDRSS_PHY_173_DATA 0x00000000
    +#define DDRSS_PHY_174_DATA 0x00000000
    +#define DDRSS_PHY_175_DATA 0x00000000
    +#define DDRSS_PHY_176_DATA 0x00000000
    +#define DDRSS_PHY_177_DATA 0x00000000
    +#define DDRSS_PHY_178_DATA 0x00000000
    +#define DDRSS_PHY_179_DATA 0x00000000
    +#define DDRSS_PHY_180_DATA 0x00000000
    +#define DDRSS_PHY_181_DATA 0x00000000
    +#define DDRSS_PHY_182_DATA 0x00000000
    +#define DDRSS_PHY_183_DATA 0x00000000
    +#define DDRSS_PHY_184_DATA 0x00000000
    +#define DDRSS_PHY_185_DATA 0x00000000
    +#define DDRSS_PHY_186_DATA 0x00000000
    +#define DDRSS_PHY_187_DATA 0x00000000
    +#define DDRSS_PHY_188_DATA 0x00000000
    +#define DDRSS_PHY_189_DATA 0x00000000
    +#define DDRSS_PHY_190_DATA 0x00000000
    +#define DDRSS_PHY_191_DATA 0x00000000
    +#define DDRSS_PHY_192_DATA 0x00000000
    +#define DDRSS_PHY_193_DATA 0x00000000
    +#define DDRSS_PHY_194_DATA 0x00000000
    +#define DDRSS_PHY_195_DATA 0x00000000
    +#define DDRSS_PHY_196_DATA 0x00000000
    +#define DDRSS_PHY_197_DATA 0x00000000
    +#define DDRSS_PHY_198_DATA 0x00000000
    +#define DDRSS_PHY_199_DATA 0x00000000
    +#define DDRSS_PHY_200_DATA 0x00000000
    +#define DDRSS_PHY_201_DATA 0x00000000
    +#define DDRSS_PHY_202_DATA 0x00000000
    +#define DDRSS_PHY_203_DATA 0x00000000
    +#define DDRSS_PHY_204_DATA 0x00000000
    +#define DDRSS_PHY_205_DATA 0x00000000
    +#define DDRSS_PHY_206_DATA 0x00000000
    +#define DDRSS_PHY_207_DATA 0x00000000
    +#define DDRSS_PHY_208_DATA 0x00000000
    +#define DDRSS_PHY_209_DATA 0x00000000
    +#define DDRSS_PHY_210_DATA 0x00000000
    +#define DDRSS_PHY_211_DATA 0x00000000
    +#define DDRSS_PHY_212_DATA 0x00000000
    +#define DDRSS_PHY_213_DATA 0x00000000
    +#define DDRSS_PHY_214_DATA 0x00000000
    +#define DDRSS_PHY_215_DATA 0x00000000
    +#define DDRSS_PHY_216_DATA 0x00000000
    +#define DDRSS_PHY_217_DATA 0x00000000
    +#define DDRSS_PHY_218_DATA 0x00000000
    +#define DDRSS_PHY_219_DATA 0x00000000
    +#define DDRSS_PHY_220_DATA 0x00000000
    +#define DDRSS_PHY_221_DATA 0x00000000
    +#define DDRSS_PHY_222_DATA 0x00000000
    +#define DDRSS_PHY_223_DATA 0x00000000
    +#define DDRSS_PHY_224_DATA 0x00000000
    +#define DDRSS_PHY_225_DATA 0x00000000
    +#define DDRSS_PHY_226_DATA 0x00000000
    +#define DDRSS_PHY_227_DATA 0x00000000
    +#define DDRSS_PHY_228_DATA 0x00000000
    +#define DDRSS_PHY_229_DATA 0x00000000
    +#define DDRSS_PHY_230_DATA 0x00000000
    +#define DDRSS_PHY_231_DATA 0x00000000
    +#define DDRSS_PHY_232_DATA 0x00000000
    +#define DDRSS_PHY_233_DATA 0x00000000
    +#define DDRSS_PHY_234_DATA 0x00000000
    +#define DDRSS_PHY_235_DATA 0x00000000
    +#define DDRSS_PHY_236_DATA 0x00000000
    +#define DDRSS_PHY_237_DATA 0x00000000
    +#define DDRSS_PHY_238_DATA 0x00000000
    +#define DDRSS_PHY_239_DATA 0x00000000
    +#define DDRSS_PHY_240_DATA 0x00000000
    +#define DDRSS_PHY_241_DATA 0x00000000
    +#define DDRSS_PHY_242_DATA 0x00000000
    +#define DDRSS_PHY_243_DATA 0x00000000
    +#define DDRSS_PHY_244_DATA 0x00000000
    +#define DDRSS_PHY_245_DATA 0x00000000
    +#define DDRSS_PHY_246_DATA 0x00000000
    +#define DDRSS_PHY_247_DATA 0x00000000
    +#define DDRSS_PHY_248_DATA 0x00000000
    +#define DDRSS_PHY_249_DATA 0x00000000
    +#define DDRSS_PHY_250_DATA 0x00000000
    +#define DDRSS_PHY_251_DATA 0x00000000
    +#define DDRSS_PHY_252_DATA 0x00000000
    +#define DDRSS_PHY_253_DATA 0x00000000
    +#define DDRSS_PHY_254_DATA 0x00000000
    +#define DDRSS_PHY_255_DATA 0x00000000
    +#define DDRSS_PHY_256_DATA 0x04C00000
    +#define DDRSS_PHY_257_DATA 0x00000000
    +#define DDRSS_PHY_258_DATA 0x00000200
    +#define DDRSS_PHY_259_DATA 0x00000000
    +#define DDRSS_PHY_260_DATA 0x00000000
    +#define DDRSS_PHY_261_DATA 0x00000000
    +#define DDRSS_PHY_262_DATA 0x00000000
    +#define DDRSS_PHY_263_DATA 0x00000000
    +#define DDRSS_PHY_264_DATA 0x00000001
    +#define DDRSS_PHY_265_DATA 0x00000000
    +#define DDRSS_PHY_266_DATA 0x00000000
    +#define DDRSS_PHY_267_DATA 0x010101FF
    +#define DDRSS_PHY_268_DATA 0x00010000
    +#define DDRSS_PHY_269_DATA 0x00C00004
    +#define DDRSS_PHY_270_DATA 0x00CC0008
    +#define DDRSS_PHY_271_DATA 0x00660201
    +#define DDRSS_PHY_272_DATA 0x00000000
    +#define DDRSS_PHY_273_DATA 0x00000000
    +#define DDRSS_PHY_274_DATA 0x00000000
    +#define DDRSS_PHY_275_DATA 0x0000AAAA
    +#define DDRSS_PHY_276_DATA 0x00005555
    +#define DDRSS_PHY_277_DATA 0x0000B5B5
    +#define DDRSS_PHY_278_DATA 0x00004A4A
    +#define DDRSS_PHY_279_DATA 0x00005656
    +#define DDRSS_PHY_280_DATA 0x0000A9A9
    +#define DDRSS_PHY_281_DATA 0x0000B7B7
    +#define DDRSS_PHY_282_DATA 0x00004848
    +#define DDRSS_PHY_283_DATA 0x00000000
    +#define DDRSS_PHY_284_DATA 0x00000000
    +#define DDRSS_PHY_285_DATA 0x08000000
    +#define DDRSS_PHY_286_DATA 0x0F000008
    +#define DDRSS_PHY_287_DATA 0x00000F0F
    +#define DDRSS_PHY_288_DATA 0x00E4E400
    +#define DDRSS_PHY_289_DATA 0x00070820
    +#define DDRSS_PHY_290_DATA 0x000C0020
    +#define DDRSS_PHY_291_DATA 0x00062000
    +#define DDRSS_PHY_292_DATA 0x00000000
    +#define DDRSS_PHY_293_DATA 0x55555555
    +#define DDRSS_PHY_294_DATA 0xAAAAAAAA
    +#define DDRSS_PHY_295_DATA 0x55555555
    +#define DDRSS_PHY_296_DATA 0xAAAAAAAA
    +#define DDRSS_PHY_297_DATA 0x00005555
    +#define DDRSS_PHY_298_DATA 0x01000100
    +#define DDRSS_PHY_299_DATA 0x00800180
    +#define DDRSS_PHY_300_DATA 0x00000000
    +#define DDRSS_PHY_301_DATA 0x00000000
    +#define DDRSS_PHY_302_DATA 0x00000000
    +#define DDRSS_PHY_303_DATA 0x00000000
    +#define DDRSS_PHY_304_DATA 0x00000000
    +#define DDRSS_PHY_305_DATA 0x00000000
    +#define DDRSS_PHY_306_DATA 0x00000000
    +#define DDRSS_PHY_307_DATA 0x00000000
    +#define DDRSS_PHY_308_DATA 0x00000000
    +#define DDRSS_PHY_309_DATA 0x00000000
    +#define DDRSS_PHY_310_DATA 0x00000000
    +#define DDRSS_PHY_311_DATA 0x00000000
    +#define DDRSS_PHY_312_DATA 0x00000000
    +#define DDRSS_PHY_313_DATA 0x00000000
    +#define DDRSS_PHY_314_DATA 0x00000000
    +#define DDRSS_PHY_315_DATA 0x00000000
    +#define DDRSS_PHY_316_DATA 0x00000000
    +#define DDRSS_PHY_317_DATA 0x00000000
    +#define DDRSS_PHY_318_DATA 0x00000000
    +#define DDRSS_PHY_319_DATA 0x00000000
    +#define DDRSS_PHY_320_DATA 0x00000000
    +#define DDRSS_PHY_321_DATA 0x00000004
    +#define DDRSS_PHY_322_DATA 0x00000000
    +#define DDRSS_PHY_323_DATA 0x00000000
    +#define DDRSS_PHY_324_DATA 0x00000000
    +#define DDRSS_PHY_325_DATA 0x00000000
    +#define DDRSS_PHY_326_DATA 0x00000000
    +#define DDRSS_PHY_327_DATA 0x00000000
    +#define DDRSS_PHY_328_DATA 0x041F07FF
    +#define DDRSS_PHY_329_DATA 0x00000000
    +#define DDRSS_PHY_330_DATA 0x01CCB001
    +#define DDRSS_PHY_331_DATA 0x2000CCB0
    +#define DDRSS_PHY_332_DATA 0x20000140
    +#define DDRSS_PHY_333_DATA 0x07FF0200
    +#define DDRSS_PHY_334_DATA 0x0000DD01
    +#define DDRSS_PHY_335_DATA 0x10100303
    +#define DDRSS_PHY_336_DATA 0x10101010
    +#define DDRSS_PHY_337_DATA 0x10101010
    +#define DDRSS_PHY_338_DATA 0x00021010
    +#define DDRSS_PHY_339_DATA 0x00100010
    +#define DDRSS_PHY_340_DATA 0x00100010
    +#define DDRSS_PHY_341_DATA 0x00100010
    +#define DDRSS_PHY_342_DATA 0x00100010
    +#define DDRSS_PHY_343_DATA 0x02020010
    +#define DDRSS_PHY_344_DATA 0x51515041
    +#define DDRSS_PHY_345_DATA 0x31804000
    +#define DDRSS_PHY_346_DATA 0x04BF0340
    +#define DDRSS_PHY_347_DATA 0x01008080
    +#define DDRSS_PHY_348_DATA 0x04050001
    +#define DDRSS_PHY_349_DATA 0x00000504
    +#define DDRSS_PHY_350_DATA 0x42100010
    +#define DDRSS_PHY_351_DATA 0x010C053E
    +#define DDRSS_PHY_352_DATA 0x000F0C14
    +#define DDRSS_PHY_353_DATA 0x01000140
    +#define DDRSS_PHY_354_DATA 0x007A0120
    +#define DDRSS_PHY_355_DATA 0x00000C00
    +#define DDRSS_PHY_356_DATA 0x000001CC
    +#define DDRSS_PHY_357_DATA 0x20100200
    +#define DDRSS_PHY_358_DATA 0x00000005
    +#define DDRSS_PHY_359_DATA 0x76543210
    +#define DDRSS_PHY_360_DATA 0x00000008
    +#define DDRSS_PHY_361_DATA 0x02800280
    +#define DDRSS_PHY_362_DATA 0x02800280
    +#define DDRSS_PHY_363_DATA 0x02800280
    +#define DDRSS_PHY_364_DATA 0x02800280
    +#define DDRSS_PHY_365_DATA 0x00000280
    +#define DDRSS_PHY_366_DATA 0x00008000
    +#define DDRSS_PHY_367_DATA 0x00800080
    +#define DDRSS_PHY_368_DATA 0x00800080
    +#define DDRSS_PHY_369_DATA 0x00800080
    +#define DDRSS_PHY_370_DATA 0x00800080
    +#define DDRSS_PHY_371_DATA 0x00800080
    +#define DDRSS_PHY_372_DATA 0x00800080
    +#define DDRSS_PHY_373_DATA 0x00800080
    +#define DDRSS_PHY_374_DATA 0x00800080
    +#define DDRSS_PHY_375_DATA 0x01000080
    +#define DDRSS_PHY_376_DATA 0x01000000
    +#define DDRSS_PHY_377_DATA 0x00000000
    +#define DDRSS_PHY_378_DATA 0x00000000
    +#define DDRSS_PHY_379_DATA 0x00080200
    +#define DDRSS_PHY_380_DATA 0x00000000
    +#define DDRSS_PHY_381_DATA 0x00000000
    +#define DDRSS_PHY_382_DATA 0x00000000
    +#define DDRSS_PHY_383_DATA 0x00000000
    +#define DDRSS_PHY_384_DATA 0x00000000
    +#define DDRSS_PHY_385_DATA 0x00000000
    +#define DDRSS_PHY_386_DATA 0x00000000
    +#define DDRSS_PHY_387_DATA 0x00000000
    +#define DDRSS_PHY_388_DATA 0x00000000
    +#define DDRSS_PHY_389_DATA 0x00000000
    +#define DDRSS_PHY_390_DATA 0x00000000
    +#define DDRSS_PHY_391_DATA 0x00000000
    +#define DDRSS_PHY_392_DATA 0x00000000
    +#define DDRSS_PHY_393_DATA 0x00000000
    +#define DDRSS_PHY_394_DATA 0x00000000
    +#define DDRSS_PHY_395_DATA 0x00000000
    +#define DDRSS_PHY_396_DATA 0x00000000
    +#define DDRSS_PHY_397_DATA 0x00000000
    +#define DDRSS_PHY_398_DATA 0x00000000
    +#define DDRSS_PHY_399_DATA 0x00000000
    +#define DDRSS_PHY_400_DATA 0x00000000
    +#define DDRSS_PHY_401_DATA 0x00000000
    +#define DDRSS_PHY_402_DATA 0x00000000
    +#define DDRSS_PHY_403_DATA 0x00000000
    +#define DDRSS_PHY_404_DATA 0x00000000
    +#define DDRSS_PHY_405_DATA 0x00000000
    +#define DDRSS_PHY_406_DATA 0x00000000
    +#define DDRSS_PHY_407_DATA 0x00000000
    +#define DDRSS_PHY_408_DATA 0x00000000
    +#define DDRSS_PHY_409_DATA 0x00000000
    +#define DDRSS_PHY_410_DATA 0x00000000
    +#define DDRSS_PHY_411_DATA 0x00000000
    +#define DDRSS_PHY_412_DATA 0x00000000
    +#define DDRSS_PHY_413_DATA 0x00000000
    +#define DDRSS_PHY_414_DATA 0x00000000
    +#define DDRSS_PHY_415_DATA 0x00000000
    +#define DDRSS_PHY_416_DATA 0x00000000
    +#define DDRSS_PHY_417_DATA 0x00000000
    +#define DDRSS_PHY_418_DATA 0x00000000
    +#define DDRSS_PHY_419_DATA 0x00000000
    +#define DDRSS_PHY_420_DATA 0x00000000
    +#define DDRSS_PHY_421_DATA 0x00000000
    +#define DDRSS_PHY_422_DATA 0x00000000
    +#define DDRSS_PHY_423_DATA 0x00000000
    +#define DDRSS_PHY_424_DATA 0x00000000
    +#define DDRSS_PHY_425_DATA 0x00000000
    +#define DDRSS_PHY_426_DATA 0x00000000
    +#define DDRSS_PHY_427_DATA 0x00000000
    +#define DDRSS_PHY_428_DATA 0x00000000
    +#define DDRSS_PHY_429_DATA 0x00000000
    +#define DDRSS_PHY_430_DATA 0x00000000
    +#define DDRSS_PHY_431_DATA 0x00000000
    +#define DDRSS_PHY_432_DATA 0x00000000
    +#define DDRSS_PHY_433_DATA 0x00000000
    +#define DDRSS_PHY_434_DATA 0x00000000
    +#define DDRSS_PHY_435_DATA 0x00000000
    +#define DDRSS_PHY_436_DATA 0x00000000
    +#define DDRSS_PHY_437_DATA 0x00000000
    +#define DDRSS_PHY_438_DATA 0x00000000
    +#define DDRSS_PHY_439_DATA 0x00000000
    +#define DDRSS_PHY_440_DATA 0x00000000
    +#define DDRSS_PHY_441_DATA 0x00000000
    +#define DDRSS_PHY_442_DATA 0x00000000
    +#define DDRSS_PHY_443_DATA 0x00000000
    +#define DDRSS_PHY_444_DATA 0x00000000
    +#define DDRSS_PHY_445_DATA 0x00000000
    +#define DDRSS_PHY_446_DATA 0x00000000
    +#define DDRSS_PHY_447_DATA 0x00000000
    +#define DDRSS_PHY_448_DATA 0x00000000
    +#define DDRSS_PHY_449_DATA 0x00000000
    +#define DDRSS_PHY_450_DATA 0x00000000
    +#define DDRSS_PHY_451_DATA 0x00000000
    +#define DDRSS_PHY_452_DATA 0x00000000
    +#define DDRSS_PHY_453_DATA 0x00000000
    +#define DDRSS_PHY_454_DATA 0x00000000
    +#define DDRSS_PHY_455_DATA 0x00000000
    +#define DDRSS_PHY_456_DATA 0x00000000
    +#define DDRSS_PHY_457_DATA 0x00000000
    +#define DDRSS_PHY_458_DATA 0x00000000
    +#define DDRSS_PHY_459_DATA 0x00000000
    +#define DDRSS_PHY_460_DATA 0x00000000
    +#define DDRSS_PHY_461_DATA 0x00000000
    +#define DDRSS_PHY_462_DATA 0x00000000
    +#define DDRSS_PHY_463_DATA 0x00000000
    +#define DDRSS_PHY_464_DATA 0x00000000
    +#define DDRSS_PHY_465_DATA 0x00000000
    +#define DDRSS_PHY_466_DATA 0x00000000
    +#define DDRSS_PHY_467_DATA 0x00000000
    +#define DDRSS_PHY_468_DATA 0x00000000
    +#define DDRSS_PHY_469_DATA 0x00000000
    +#define DDRSS_PHY_470_DATA 0x00000000
    +#define DDRSS_PHY_471_DATA 0x00000000
    +#define DDRSS_PHY_472_DATA 0x00000000
    +#define DDRSS_PHY_473_DATA 0x00000000
    +#define DDRSS_PHY_474_DATA 0x00000000
    +#define DDRSS_PHY_475_DATA 0x00000000
    +#define DDRSS_PHY_476_DATA 0x00000000
    +#define DDRSS_PHY_477_DATA 0x00000000
    +#define DDRSS_PHY_478_DATA 0x00000000
    +#define DDRSS_PHY_479_DATA 0x00000000
    +#define DDRSS_PHY_480_DATA 0x00000000
    +#define DDRSS_PHY_481_DATA 0x00000000
    +#define DDRSS_PHY_482_DATA 0x00000000
    +#define DDRSS_PHY_483_DATA 0x00000000
    +#define DDRSS_PHY_484_DATA 0x00000000
    +#define DDRSS_PHY_485_DATA 0x00000000
    +#define DDRSS_PHY_486_DATA 0x00000000
    +#define DDRSS_PHY_487_DATA 0x00000000
    +#define DDRSS_PHY_488_DATA 0x00000000
    +#define DDRSS_PHY_489_DATA 0x00000000
    +#define DDRSS_PHY_490_DATA 0x00000000
    +#define DDRSS_PHY_491_DATA 0x00000000
    +#define DDRSS_PHY_492_DATA 0x00000000
    +#define DDRSS_PHY_493_DATA 0x00000000
    +#define DDRSS_PHY_494_DATA 0x00000000
    +#define DDRSS_PHY_495_DATA 0x00000000
    +#define DDRSS_PHY_496_DATA 0x00000000
    +#define DDRSS_PHY_497_DATA 0x00000000
    +#define DDRSS_PHY_498_DATA 0x00000000
    +#define DDRSS_PHY_499_DATA 0x00000000
    +#define DDRSS_PHY_500_DATA 0x00000000
    +#define DDRSS_PHY_501_DATA 0x00000000
    +#define DDRSS_PHY_502_DATA 0x00000000
    +#define DDRSS_PHY_503_DATA 0x00000000
    +#define DDRSS_PHY_504_DATA 0x00000000
    +#define DDRSS_PHY_505_DATA 0x00000000
    +#define DDRSS_PHY_506_DATA 0x00000000
    +#define DDRSS_PHY_507_DATA 0x00000000
    +#define DDRSS_PHY_508_DATA 0x00000000
    +#define DDRSS_PHY_509_DATA 0x00000000
    +#define DDRSS_PHY_510_DATA 0x00000000
    +#define DDRSS_PHY_511_DATA 0x00000000
    +#define DDRSS_PHY_512_DATA 0x00000100
    +#define DDRSS_PHY_513_DATA 0x00000000
    +#define DDRSS_PHY_514_DATA 0x00000000
    +#define DDRSS_PHY_515_DATA 0x00000000
    +#define DDRSS_PHY_516_DATA 0x00000000
    +#define DDRSS_PHY_517_DATA 0x00000100
    +#define DDRSS_PHY_518_DATA 0x00000000
    +#define DDRSS_PHY_519_DATA 0x00000000
    +#define DDRSS_PHY_520_DATA 0x00000000
    +#define DDRSS_PHY_521_DATA 0x00000000
    +#define DDRSS_PHY_522_DATA 0x00000000
    +#define DDRSS_PHY_523_DATA 0x00000000
    +#define DDRSS_PHY_524_DATA 0x00000000
    +#define DDRSS_PHY_525_DATA 0x00DCBA98
    +#define DDRSS_PHY_526_DATA 0x00000000
    +#define DDRSS_PHY_527_DATA 0x00000000
    +#define DDRSS_PHY_528_DATA 0x00000000
    +#define DDRSS_PHY_529_DATA 0x00000000
    +#define DDRSS_PHY_530_DATA 0x00000000
    +#define DDRSS_PHY_531_DATA 0x00000000
    +#define DDRSS_PHY_532_DATA 0x00000000
    +#define DDRSS_PHY_533_DATA 0x00000000
    +#define DDRSS_PHY_534_DATA 0x00000000
    +#define DDRSS_PHY_535_DATA 0x00000000
    +#define DDRSS_PHY_536_DATA 0x00000000
    +#define DDRSS_PHY_537_DATA 0x00000000
    +#define DDRSS_PHY_538_DATA 0x00000000
    +#define DDRSS_PHY_539_DATA 0x00000000
    +#define DDRSS_PHY_540_DATA 0x0A418820
    +#define DDRSS_PHY_541_DATA 0x103F0000
    +#define DDRSS_PHY_542_DATA 0x000F0100
    +#define DDRSS_PHY_543_DATA 0x0000000F
    +#define DDRSS_PHY_544_DATA 0x020002CC
    +#define DDRSS_PHY_545_DATA 0x00030000
    +#define DDRSS_PHY_546_DATA 0x00000300
    +#define DDRSS_PHY_547_DATA 0x00000300
    +#define DDRSS_PHY_548_DATA 0x00000300
    +#define DDRSS_PHY_549_DATA 0x00000300
    +#define DDRSS_PHY_550_DATA 0x00000300
    +#define DDRSS_PHY_551_DATA 0x42080010
    +#define DDRSS_PHY_552_DATA 0x0000003E
    +#define DDRSS_PHY_553_DATA 0x00000000
    +#define DDRSS_PHY_554_DATA 0x00000000
    +#define DDRSS_PHY_555_DATA 0x00000000
    +#define DDRSS_PHY_556_DATA 0x00000000
    +#define DDRSS_PHY_557_DATA 0x00000000
    +#define DDRSS_PHY_558_DATA 0x00000000
    +#define DDRSS_PHY_559_DATA 0x00000000
    +#define DDRSS_PHY_560_DATA 0x00000000
    +#define DDRSS_PHY_561_DATA 0x00000000
    +#define DDRSS_PHY_562_DATA 0x00000000
    +#define DDRSS_PHY_563_DATA 0x00000000
    +#define DDRSS_PHY_564_DATA 0x00000000
    +#define DDRSS_PHY_565_DATA 0x00000000
    +#define DDRSS_PHY_566_DATA 0x00000000
    +#define DDRSS_PHY_567_DATA 0x00000000
    +#define DDRSS_PHY_568_DATA 0x00000000
    +#define DDRSS_PHY_569_DATA 0x00000000
    +#define DDRSS_PHY_570_DATA 0x00000000
    +#define DDRSS_PHY_571_DATA 0x00000000
    +#define DDRSS_PHY_572_DATA 0x00000000
    +#define DDRSS_PHY_573_DATA 0x00000000
    +#define DDRSS_PHY_574_DATA 0x00000000
    +#define DDRSS_PHY_575_DATA 0x00000000
    +#define DDRSS_PHY_576_DATA 0x00000000
    +#define DDRSS_PHY_577_DATA 0x00000000
    +#define DDRSS_PHY_578_DATA 0x00000000
    +#define DDRSS_PHY_579_DATA 0x00000000
    +#define DDRSS_PHY_580_DATA 0x00000000
    +#define DDRSS_PHY_581_DATA 0x00000000
    +#define DDRSS_PHY_582_DATA 0x00000000
    +#define DDRSS_PHY_583_DATA 0x00000000
    +#define DDRSS_PHY_584_DATA 0x00000000
    +#define DDRSS_PHY_585_DATA 0x00000000
    +#define DDRSS_PHY_586_DATA 0x00000000
    +#define DDRSS_PHY_587_DATA 0x00000000
    +#define DDRSS_PHY_588_DATA 0x00000000
    +#define DDRSS_PHY_589_DATA 0x00000000
    +#define DDRSS_PHY_590_DATA 0x00000000
    +#define DDRSS_PHY_591_DATA 0x00000000
    +#define DDRSS_PHY_592_DATA 0x00000000
    +#define DDRSS_PHY_593_DATA 0x00000000
    +#define DDRSS_PHY_594_DATA 0x00000000
    +#define DDRSS_PHY_595_DATA 0x00000000
    +#define DDRSS_PHY_596_DATA 0x00000000
    +#define DDRSS_PHY_597_DATA 0x00000000
    +#define DDRSS_PHY_598_DATA 0x00000000
    +#define DDRSS_PHY_599_DATA 0x00000000
    +#define DDRSS_PHY_600_DATA 0x00000000
    +#define DDRSS_PHY_601_DATA 0x00000000
    +#define DDRSS_PHY_602_DATA 0x00000000
    +#define DDRSS_PHY_603_DATA 0x00000000
    +#define DDRSS_PHY_604_DATA 0x00000000
    +#define DDRSS_PHY_605_DATA 0x00000000
    +#define DDRSS_PHY_606_DATA 0x00000000
    +#define DDRSS_PHY_607_DATA 0x00000000
    +#define DDRSS_PHY_608_DATA 0x00000000
    +#define DDRSS_PHY_609_DATA 0x00000000
    +#define DDRSS_PHY_610_DATA 0x00000000
    +#define DDRSS_PHY_611_DATA 0x00000000
    +#define DDRSS_PHY_612_DATA 0x00000000
    +#define DDRSS_PHY_613_DATA 0x00000000
    +#define DDRSS_PHY_614_DATA 0x00000000
    +#define DDRSS_PHY_615_DATA 0x00000000
    +#define DDRSS_PHY_616_DATA 0x00000000
    +#define DDRSS_PHY_617_DATA 0x00000000
    +#define DDRSS_PHY_618_DATA 0x00000000
    +#define DDRSS_PHY_619_DATA 0x00000000
    +#define DDRSS_PHY_620_DATA 0x00000000
    +#define DDRSS_PHY_621_DATA 0x00000000
    +#define DDRSS_PHY_622_DATA 0x00000000
    +#define DDRSS_PHY_623_DATA 0x00000000
    +#define DDRSS_PHY_624_DATA 0x00000000
    +#define DDRSS_PHY_625_DATA 0x00000000
    +#define DDRSS_PHY_626_DATA 0x00000000
    +#define DDRSS_PHY_627_DATA 0x00000000
    +#define DDRSS_PHY_628_DATA 0x00000000
    +#define DDRSS_PHY_629_DATA 0x00000000
    +#define DDRSS_PHY_630_DATA 0x00000000
    +#define DDRSS_PHY_631_DATA 0x00000000
    +#define DDRSS_PHY_632_DATA 0x00000000
    +#define DDRSS_PHY_633_DATA 0x00000000
    +#define DDRSS_PHY_634_DATA 0x00000000
    +#define DDRSS_PHY_635_DATA 0x00000000
    +#define DDRSS_PHY_636_DATA 0x00000000
    +#define DDRSS_PHY_637_DATA 0x00000000
    +#define DDRSS_PHY_638_DATA 0x00000000
    +#define DDRSS_PHY_639_DATA 0x00000000
    +#define DDRSS_PHY_640_DATA 0x00000000
    +#define DDRSS_PHY_641_DATA 0x00000000
    +#define DDRSS_PHY_642_DATA 0x00000000
    +#define DDRSS_PHY_643_DATA 0x00000000
    +#define DDRSS_PHY_644_DATA 0x00000000
    +#define DDRSS_PHY_645_DATA 0x00000000
    +#define DDRSS_PHY_646_DATA 0x00000000
    +#define DDRSS_PHY_647_DATA 0x00000000
    +#define DDRSS_PHY_648_DATA 0x00000000
    +#define DDRSS_PHY_649_DATA 0x00000000
    +#define DDRSS_PHY_650_DATA 0x00000000
    +#define DDRSS_PHY_651_DATA 0x00000000
    +#define DDRSS_PHY_652_DATA 0x00000000
    +#define DDRSS_PHY_653_DATA 0x00000000
    +#define DDRSS_PHY_654_DATA 0x00000000
    +#define DDRSS_PHY_655_DATA 0x00000000
    +#define DDRSS_PHY_656_DATA 0x00000000
    +#define DDRSS_PHY_657_DATA 0x00000000
    +#define DDRSS_PHY_658_DATA 0x00000000
    +#define DDRSS_PHY_659_DATA 0x00000000
    +#define DDRSS_PHY_660_DATA 0x00000000
    +#define DDRSS_PHY_661_DATA 0x00000000
    +#define DDRSS_PHY_662_DATA 0x00000000
    +#define DDRSS_PHY_663_DATA 0x00000000
    +#define DDRSS_PHY_664_DATA 0x00000000
    +#define DDRSS_PHY_665_DATA 0x00000000
    +#define DDRSS_PHY_666_DATA 0x00000000
    +#define DDRSS_PHY_667_DATA 0x00000000
    +#define DDRSS_PHY_668_DATA 0x00000000
    +#define DDRSS_PHY_669_DATA 0x00000000
    +#define DDRSS_PHY_670_DATA 0x00000000
    +#define DDRSS_PHY_671_DATA 0x00000000
    +#define DDRSS_PHY_672_DATA 0x00000000
    +#define DDRSS_PHY_673_DATA 0x00000000
    +#define DDRSS_PHY_674_DATA 0x00000000
    +#define DDRSS_PHY_675_DATA 0x00000000
    +#define DDRSS_PHY_676_DATA 0x00000000
    +#define DDRSS_PHY_677_DATA 0x00000000
    +#define DDRSS_PHY_678_DATA 0x00000000
    +#define DDRSS_PHY_679_DATA 0x00000000
    +#define DDRSS_PHY_680_DATA 0x00000000
    +#define DDRSS_PHY_681_DATA 0x00000000
    +#define DDRSS_PHY_682_DATA 0x00000000
    +#define DDRSS_PHY_683_DATA 0x00000000
    +#define DDRSS_PHY_684_DATA 0x00000000
    +#define DDRSS_PHY_685_DATA 0x00000000
    +#define DDRSS_PHY_686_DATA 0x00000000
    +#define DDRSS_PHY_687_DATA 0x00000000
    +#define DDRSS_PHY_688_DATA 0x00000000
    +#define DDRSS_PHY_689_DATA 0x00000000
    +#define DDRSS_PHY_690_DATA 0x00000000
    +#define DDRSS_PHY_691_DATA 0x00000000
    +#define DDRSS_PHY_692_DATA 0x00000000
    +#define DDRSS_PHY_693_DATA 0x00000000
    +#define DDRSS_PHY_694_DATA 0x00000000
    +#define DDRSS_PHY_695_DATA 0x00000000
    +#define DDRSS_PHY_696_DATA 0x00000000
    +#define DDRSS_PHY_697_DATA 0x00000000
    +#define DDRSS_PHY_698_DATA 0x00000000
    +#define DDRSS_PHY_699_DATA 0x00000000
    +#define DDRSS_PHY_700_DATA 0x00000000
    +#define DDRSS_PHY_701_DATA 0x00000000
    +#define DDRSS_PHY_702_DATA 0x00000000
    +#define DDRSS_PHY_703_DATA 0x00000000
    +#define DDRSS_PHY_704_DATA 0x00000000
    +#define DDRSS_PHY_705_DATA 0x00000000
    +#define DDRSS_PHY_706_DATA 0x00000000
    +#define DDRSS_PHY_707_DATA 0x00000000
    +#define DDRSS_PHY_708_DATA 0x00000000
    +#define DDRSS_PHY_709_DATA 0x00000000
    +#define DDRSS_PHY_710_DATA 0x00000000
    +#define DDRSS_PHY_711_DATA 0x00000000
    +#define DDRSS_PHY_712_DATA 0x00000000
    +#define DDRSS_PHY_713_DATA 0x00000000
    +#define DDRSS_PHY_714_DATA 0x00000000
    +#define DDRSS_PHY_715_DATA 0x00000000
    +#define DDRSS_PHY_716_DATA 0x00000000
    +#define DDRSS_PHY_717_DATA 0x00000000
    +#define DDRSS_PHY_718_DATA 0x00000000
    +#define DDRSS_PHY_719_DATA 0x00000000
    +#define DDRSS_PHY_720_DATA 0x00000000
    +#define DDRSS_PHY_721_DATA 0x00000000
    +#define DDRSS_PHY_722_DATA 0x00000000
    +#define DDRSS_PHY_723_DATA 0x00000000
    +#define DDRSS_PHY_724_DATA 0x00000000
    +#define DDRSS_PHY_725_DATA 0x00000000
    +#define DDRSS_PHY_726_DATA 0x00000000
    +#define DDRSS_PHY_727_DATA 0x00000000
    +#define DDRSS_PHY_728_DATA 0x00000000
    +#define DDRSS_PHY_729_DATA 0x00000000
    +#define DDRSS_PHY_730_DATA 0x00000000
    +#define DDRSS_PHY_731_DATA 0x00000000
    +#define DDRSS_PHY_732_DATA 0x00000000
    +#define DDRSS_PHY_733_DATA 0x00000000
    +#define DDRSS_PHY_734_DATA 0x00000000
    +#define DDRSS_PHY_735_DATA 0x00000000
    +#define DDRSS_PHY_736_DATA 0x00000000
    +#define DDRSS_PHY_737_DATA 0x00000000
    +#define DDRSS_PHY_738_DATA 0x00000000
    +#define DDRSS_PHY_739_DATA 0x00000000
    +#define DDRSS_PHY_740_DATA 0x00000000
    +#define DDRSS_PHY_741_DATA 0x00000000
    +#define DDRSS_PHY_742_DATA 0x00000000
    +#define DDRSS_PHY_743_DATA 0x00000000
    +#define DDRSS_PHY_744_DATA 0x00000000
    +#define DDRSS_PHY_745_DATA 0x00000000
    +#define DDRSS_PHY_746_DATA 0x00000000
    +#define DDRSS_PHY_747_DATA 0x00000000
    +#define DDRSS_PHY_748_DATA 0x00000000
    +#define DDRSS_PHY_749_DATA 0x00000000
    +#define DDRSS_PHY_750_DATA 0x00000000
    +#define DDRSS_PHY_751_DATA 0x00000000
    +#define DDRSS_PHY_752_DATA 0x00000000
    +#define DDRSS_PHY_753_DATA 0x00000000
    +#define DDRSS_PHY_754_DATA 0x00000000
    +#define DDRSS_PHY_755_DATA 0x00000000
    +#define DDRSS_PHY_756_DATA 0x00000000
    +#define DDRSS_PHY_757_DATA 0x00000000
    +#define DDRSS_PHY_758_DATA 0x00000000
    +#define DDRSS_PHY_759_DATA 0x00000000
    +#define DDRSS_PHY_760_DATA 0x00000000
    +#define DDRSS_PHY_761_DATA 0x00000000
    +#define DDRSS_PHY_762_DATA 0x00000000
    +#define DDRSS_PHY_763_DATA 0x00000000
    +#define DDRSS_PHY_764_DATA 0x00000000
    +#define DDRSS_PHY_765_DATA 0x00000000
    +#define DDRSS_PHY_766_DATA 0x00000000
    +#define DDRSS_PHY_767_DATA 0x00000000
    +#define DDRSS_PHY_768_DATA 0x00000100
    +#define DDRSS_PHY_769_DATA 0x00000000
    +#define DDRSS_PHY_770_DATA 0x00000000
    +#define DDRSS_PHY_771_DATA 0x00000000
    +#define DDRSS_PHY_772_DATA 0x00000000
    +#define DDRSS_PHY_773_DATA 0x00000100
    +#define DDRSS_PHY_774_DATA 0x00000000
    +#define DDRSS_PHY_775_DATA 0x00000000
    +#define DDRSS_PHY_776_DATA 0x00000000
    +#define DDRSS_PHY_777_DATA 0x00000000
    +#define DDRSS_PHY_778_DATA 0x00000000
    +#define DDRSS_PHY_779_DATA 0x00000000
    +#define DDRSS_PHY_780_DATA 0x00000000
    +#define DDRSS_PHY_781_DATA 0x00DCBA98
    +#define DDRSS_PHY_782_DATA 0x00000000
    +#define DDRSS_PHY_783_DATA 0x00000000
    +#define DDRSS_PHY_784_DATA 0x00000000
    +#define DDRSS_PHY_785_DATA 0x00000000
    +#define DDRSS_PHY_786_DATA 0x00000000
    +#define DDRSS_PHY_787_DATA 0x00000000
    +#define DDRSS_PHY_788_DATA 0x00000000
    +#define DDRSS_PHY_789_DATA 0x00000000
    +#define DDRSS_PHY_790_DATA 0x00000000
    +#define DDRSS_PHY_791_DATA 0x00000000
    +#define DDRSS_PHY_792_DATA 0x00000000
    +#define DDRSS_PHY_793_DATA 0x00000000
    +#define DDRSS_PHY_794_DATA 0x00000000
    +#define DDRSS_PHY_795_DATA 0x00000000
    +#define DDRSS_PHY_796_DATA 0x16A4A0E6
    +#define DDRSS_PHY_797_DATA 0x103F0000
    +#define DDRSS_PHY_798_DATA 0x000F0000
    +#define DDRSS_PHY_799_DATA 0x0000000F
    +#define DDRSS_PHY_800_DATA 0x020002CC
    +#define DDRSS_PHY_801_DATA 0x00030000
    +#define DDRSS_PHY_802_DATA 0x00000300
    +#define DDRSS_PHY_803_DATA 0x00000300
    +#define DDRSS_PHY_804_DATA 0x00000300
    +#define DDRSS_PHY_805_DATA 0x00000300
    +#define DDRSS_PHY_806_DATA 0x00000300
    +#define DDRSS_PHY_807_DATA 0x42080010
    +#define DDRSS_PHY_808_DATA 0x0000003E
    +#define DDRSS_PHY_809_DATA 0x00000000
    +#define DDRSS_PHY_810_DATA 0x00000000
    +#define DDRSS_PHY_811_DATA 0x00000000
    +#define DDRSS_PHY_812_DATA 0x00000000
    +#define DDRSS_PHY_813_DATA 0x00000000
    +#define DDRSS_PHY_814_DATA 0x00000000
    +#define DDRSS_PHY_815_DATA 0x00000000
    +#define DDRSS_PHY_816_DATA 0x00000000
    +#define DDRSS_PHY_817_DATA 0x00000000
    +#define DDRSS_PHY_818_DATA 0x00000000
    +#define DDRSS_PHY_819_DATA 0x00000000
    +#define DDRSS_PHY_820_DATA 0x00000000
    +#define DDRSS_PHY_821_DATA 0x00000000
    +#define DDRSS_PHY_822_DATA 0x00000000
    +#define DDRSS_PHY_823_DATA 0x00000000
    +#define DDRSS_PHY_824_DATA 0x00000000
    +#define DDRSS_PHY_825_DATA 0x00000000
    +#define DDRSS_PHY_826_DATA 0x00000000
    +#define DDRSS_PHY_827_DATA 0x00000000
    +#define DDRSS_PHY_828_DATA 0x00000000
    +#define DDRSS_PHY_829_DATA 0x00000000
    +#define DDRSS_PHY_830_DATA 0x00000000
    +#define DDRSS_PHY_831_DATA 0x00000000
    +#define DDRSS_PHY_832_DATA 0x00000000
    +#define DDRSS_PHY_833_DATA 0x00000000
    +#define DDRSS_PHY_834_DATA 0x00000000
    +#define DDRSS_PHY_835_DATA 0x00000000
    +#define DDRSS_PHY_836_DATA 0x00000000
    +#define DDRSS_PHY_837_DATA 0x00000000
    +#define DDRSS_PHY_838_DATA 0x00000000
    +#define DDRSS_PHY_839_DATA 0x00000000
    +#define DDRSS_PHY_840_DATA 0x00000000
    +#define DDRSS_PHY_841_DATA 0x00000000
    +#define DDRSS_PHY_842_DATA 0x00000000
    +#define DDRSS_PHY_843_DATA 0x00000000
    +#define DDRSS_PHY_844_DATA 0x00000000
    +#define DDRSS_PHY_845_DATA 0x00000000
    +#define DDRSS_PHY_846_DATA 0x00000000
    +#define DDRSS_PHY_847_DATA 0x00000000
    +#define DDRSS_PHY_848_DATA 0x00000000
    +#define DDRSS_PHY_849_DATA 0x00000000
    +#define DDRSS_PHY_850_DATA 0x00000000
    +#define DDRSS_PHY_851_DATA 0x00000000
    +#define DDRSS_PHY_852_DATA 0x00000000
    +#define DDRSS_PHY_853_DATA 0x00000000
    +#define DDRSS_PHY_854_DATA 0x00000000
    +#define DDRSS_PHY_855_DATA 0x00000000
    +#define DDRSS_PHY_856_DATA 0x00000000
    +#define DDRSS_PHY_857_DATA 0x00000000
    +#define DDRSS_PHY_858_DATA 0x00000000
    +#define DDRSS_PHY_859_DATA 0x00000000
    +#define DDRSS_PHY_860_DATA 0x00000000
    +#define DDRSS_PHY_861_DATA 0x00000000
    +#define DDRSS_PHY_862_DATA 0x00000000
    +#define DDRSS_PHY_863_DATA 0x00000000
    +#define DDRSS_PHY_864_DATA 0x00000000
    +#define DDRSS_PHY_865_DATA 0x00000000
    +#define DDRSS_PHY_866_DATA 0x00000000
    +#define DDRSS_PHY_867_DATA 0x00000000
    +#define DDRSS_PHY_868_DATA 0x00000000
    +#define DDRSS_PHY_869_DATA 0x00000000
    +#define DDRSS_PHY_870_DATA 0x00000000
    +#define DDRSS_PHY_871_DATA 0x00000000
    +#define DDRSS_PHY_872_DATA 0x00000000
    +#define DDRSS_PHY_873_DATA 0x00000000
    +#define DDRSS_PHY_874_DATA 0x00000000
    +#define DDRSS_PHY_875_DATA 0x00000000
    +#define DDRSS_PHY_876_DATA 0x00000000
    +#define DDRSS_PHY_877_DATA 0x00000000
    +#define DDRSS_PHY_878_DATA 0x00000000
    +#define DDRSS_PHY_879_DATA 0x00000000
    +#define DDRSS_PHY_880_DATA 0x00000000
    +#define DDRSS_PHY_881_DATA 0x00000000
    +#define DDRSS_PHY_882_DATA 0x00000000
    +#define DDRSS_PHY_883_DATA 0x00000000
    +#define DDRSS_PHY_884_DATA 0x00000000
    +#define DDRSS_PHY_885_DATA 0x00000000
    +#define DDRSS_PHY_886_DATA 0x00000000
    +#define DDRSS_PHY_887_DATA 0x00000000
    +#define DDRSS_PHY_888_DATA 0x00000000
    +#define DDRSS_PHY_889_DATA 0x00000000
    +#define DDRSS_PHY_890_DATA 0x00000000
    +#define DDRSS_PHY_891_DATA 0x00000000
    +#define DDRSS_PHY_892_DATA 0x00000000
    +#define DDRSS_PHY_893_DATA 0x00000000
    +#define DDRSS_PHY_894_DATA 0x00000000
    +#define DDRSS_PHY_895_DATA 0x00000000
    +#define DDRSS_PHY_896_DATA 0x00000000
    +#define DDRSS_PHY_897_DATA 0x00000000
    +#define DDRSS_PHY_898_DATA 0x00000000
    +#define DDRSS_PHY_899_DATA 0x00000000
    +#define DDRSS_PHY_900_DATA 0x00000000
    +#define DDRSS_PHY_901_DATA 0x00000000
    +#define DDRSS_PHY_902_DATA 0x00000000
    +#define DDRSS_PHY_903_DATA 0x00000000
    +#define DDRSS_PHY_904_DATA 0x00000000
    +#define DDRSS_PHY_905_DATA 0x00000000
    +#define DDRSS_PHY_906_DATA 0x00000000
    +#define DDRSS_PHY_907_DATA 0x00000000
    +#define DDRSS_PHY_908_DATA 0x00000000
    +#define DDRSS_PHY_909_DATA 0x00000000
    +#define DDRSS_PHY_910_DATA 0x00000000
    +#define DDRSS_PHY_911_DATA 0x00000000
    +#define DDRSS_PHY_912_DATA 0x00000000
    +#define DDRSS_PHY_913_DATA 0x00000000
    +#define DDRSS_PHY_914_DATA 0x00000000
    +#define DDRSS_PHY_915_DATA 0x00000000
    +#define DDRSS_PHY_916_DATA 0x00000000
    +#define DDRSS_PHY_917_DATA 0x00000000
    +#define DDRSS_PHY_918_DATA 0x00000000
    +#define DDRSS_PHY_919_DATA 0x00000000
    +#define DDRSS_PHY_920_DATA 0x00000000
    +#define DDRSS_PHY_921_DATA 0x00000000
    +#define DDRSS_PHY_922_DATA 0x00000000
    +#define DDRSS_PHY_923_DATA 0x00000000
    +#define DDRSS_PHY_924_DATA 0x00000000
    +#define DDRSS_PHY_925_DATA 0x00000000
    +#define DDRSS_PHY_926_DATA 0x00000000
    +#define DDRSS_PHY_927_DATA 0x00000000
    +#define DDRSS_PHY_928_DATA 0x00000000
    +#define DDRSS_PHY_929_DATA 0x00000000
    +#define DDRSS_PHY_930_DATA 0x00000000
    +#define DDRSS_PHY_931_DATA 0x00000000
    +#define DDRSS_PHY_932_DATA 0x00000000
    +#define DDRSS_PHY_933_DATA 0x00000000
    +#define DDRSS_PHY_934_DATA 0x00000000
    +#define DDRSS_PHY_935_DATA 0x00000000
    +#define DDRSS_PHY_936_DATA 0x00000000
    +#define DDRSS_PHY_937_DATA 0x00000000
    +#define DDRSS_PHY_938_DATA 0x00000000
    +#define DDRSS_PHY_939_DATA 0x00000000
    +#define DDRSS_PHY_940_DATA 0x00000000
    +#define DDRSS_PHY_941_DATA 0x00000000
    +#define DDRSS_PHY_942_DATA 0x00000000
    +#define DDRSS_PHY_943_DATA 0x00000000
    +#define DDRSS_PHY_944_DATA 0x00000000
    +#define DDRSS_PHY_945_DATA 0x00000000
    +#define DDRSS_PHY_946_DATA 0x00000000
    +#define DDRSS_PHY_947_DATA 0x00000000
    +#define DDRSS_PHY_948_DATA 0x00000000
    +#define DDRSS_PHY_949_DATA 0x00000000
    +#define DDRSS_PHY_950_DATA 0x00000000
    +#define DDRSS_PHY_951_DATA 0x00000000
    +#define DDRSS_PHY_952_DATA 0x00000000
    +#define DDRSS_PHY_953_DATA 0x00000000
    +#define DDRSS_PHY_954_DATA 0x00000000
    +#define DDRSS_PHY_955_DATA 0x00000000
    +#define DDRSS_PHY_956_DATA 0x00000000
    +#define DDRSS_PHY_957_DATA 0x00000000
    +#define DDRSS_PHY_958_DATA 0x00000000
    +#define DDRSS_PHY_959_DATA 0x00000000
    +#define DDRSS_PHY_960_DATA 0x00000000
    +#define DDRSS_PHY_961_DATA 0x00000000
    +#define DDRSS_PHY_962_DATA 0x00000000
    +#define DDRSS_PHY_963_DATA 0x00000000
    +#define DDRSS_PHY_964_DATA 0x00000000
    +#define DDRSS_PHY_965_DATA 0x00000000
    +#define DDRSS_PHY_966_DATA 0x00000000
    +#define DDRSS_PHY_967_DATA 0x00000000
    +#define DDRSS_PHY_968_DATA 0x00000000
    +#define DDRSS_PHY_969_DATA 0x00000000
    +#define DDRSS_PHY_970_DATA 0x00000000
    +#define DDRSS_PHY_971_DATA 0x00000000
    +#define DDRSS_PHY_972_DATA 0x00000000
    +#define DDRSS_PHY_973_DATA 0x00000000
    +#define DDRSS_PHY_974_DATA 0x00000000
    +#define DDRSS_PHY_975_DATA 0x00000000
    +#define DDRSS_PHY_976_DATA 0x00000000
    +#define DDRSS_PHY_977_DATA 0x00000000
    +#define DDRSS_PHY_978_DATA 0x00000000
    +#define DDRSS_PHY_979_DATA 0x00000000
    +#define DDRSS_PHY_980_DATA 0x00000000
    +#define DDRSS_PHY_981_DATA 0x00000000
    +#define DDRSS_PHY_982_DATA 0x00000000
    +#define DDRSS_PHY_983_DATA 0x00000000
    +#define DDRSS_PHY_984_DATA 0x00000000
    +#define DDRSS_PHY_985_DATA 0x00000000
    +#define DDRSS_PHY_986_DATA 0x00000000
    +#define DDRSS_PHY_987_DATA 0x00000000
    +#define DDRSS_PHY_988_DATA 0x00000000
    +#define DDRSS_PHY_989_DATA 0x00000000
    +#define DDRSS_PHY_990_DATA 0x00000000
    +#define DDRSS_PHY_991_DATA 0x00000000
    +#define DDRSS_PHY_992_DATA 0x00000000
    +#define DDRSS_PHY_993_DATA 0x00000000
    +#define DDRSS_PHY_994_DATA 0x00000000
    +#define DDRSS_PHY_995_DATA 0x00000000
    +#define DDRSS_PHY_996_DATA 0x00000000
    +#define DDRSS_PHY_997_DATA 0x00000000
    +#define DDRSS_PHY_998_DATA 0x00000000
    +#define DDRSS_PHY_999_DATA 0x00000000
    +#define DDRSS_PHY_1000_DATA 0x00000000
    +#define DDRSS_PHY_1001_DATA 0x00000000
    +#define DDRSS_PHY_1002_DATA 0x00000000
    +#define DDRSS_PHY_1003_DATA 0x00000000
    +#define DDRSS_PHY_1004_DATA 0x00000000
    +#define DDRSS_PHY_1005_DATA 0x00000000
    +#define DDRSS_PHY_1006_DATA 0x00000000
    +#define DDRSS_PHY_1007_DATA 0x00000000
    +#define DDRSS_PHY_1008_DATA 0x00000000
    +#define DDRSS_PHY_1009_DATA 0x00000000
    +#define DDRSS_PHY_1010_DATA 0x00000000
    +#define DDRSS_PHY_1011_DATA 0x00000000
    +#define DDRSS_PHY_1012_DATA 0x00000000
    +#define DDRSS_PHY_1013_DATA 0x00000000
    +#define DDRSS_PHY_1014_DATA 0x00000000
    +#define DDRSS_PHY_1015_DATA 0x00000000
    +#define DDRSS_PHY_1016_DATA 0x00000000
    +#define DDRSS_PHY_1017_DATA 0x00000000
    +#define DDRSS_PHY_1018_DATA 0x00000000
    +#define DDRSS_PHY_1019_DATA 0x00000000
    +#define DDRSS_PHY_1020_DATA 0x00000000
    +#define DDRSS_PHY_1021_DATA 0x00000000
    +#define DDRSS_PHY_1022_DATA 0x00000000
    +#define DDRSS_PHY_1023_DATA 0x00000000
    +#define DDRSS_PHY_1024_DATA 0x00000100
    +#define DDRSS_PHY_1025_DATA 0x00000000
    +#define DDRSS_PHY_1026_DATA 0x00000000
    +#define DDRSS_PHY_1027_DATA 0x00000000
    +#define DDRSS_PHY_1028_DATA 0x00000000
    +#define DDRSS_PHY_1029_DATA 0x00000100
    +#define DDRSS_PHY_1030_DATA 0x00000000
    +#define DDRSS_PHY_1031_DATA 0x00000000
    +#define DDRSS_PHY_1032_DATA 0x00000000
    +#define DDRSS_PHY_1033_DATA 0x00000000
    +#define DDRSS_PHY_1034_DATA 0x00000000
    +#define DDRSS_PHY_1035_DATA 0x00000000
    +#define DDRSS_PHY_1036_DATA 0x00000000
    +#define DDRSS_PHY_1037_DATA 0x00DCBA98
    +#define DDRSS_PHY_1038_DATA 0x00000000
    +#define DDRSS_PHY_1039_DATA 0x00000000
    +#define DDRSS_PHY_1040_DATA 0x00000000
    +#define DDRSS_PHY_1041_DATA 0x00000000
    +#define DDRSS_PHY_1042_DATA 0x00000000
    +#define DDRSS_PHY_1043_DATA 0x00000000
    +#define DDRSS_PHY_1044_DATA 0x00000000
    +#define DDRSS_PHY_1045_DATA 0x00000000
    +#define DDRSS_PHY_1046_DATA 0x00000000
    +#define DDRSS_PHY_1047_DATA 0x00000000
    +#define DDRSS_PHY_1048_DATA 0x00000000
    +#define DDRSS_PHY_1049_DATA 0x00000000
    +#define DDRSS_PHY_1050_DATA 0x00000000
    +#define DDRSS_PHY_1051_DATA 0x00000000
    +#define DDRSS_PHY_1052_DATA 0x2307B9AC
    +#define DDRSS_PHY_1053_DATA 0x10030000
    +#define DDRSS_PHY_1054_DATA 0x000F0000
    +#define DDRSS_PHY_1055_DATA 0x0000000F
    +#define DDRSS_PHY_1056_DATA 0x020002CC
    +#define DDRSS_PHY_1057_DATA 0x00030000
    +#define DDRSS_PHY_1058_DATA 0x00000300
    +#define DDRSS_PHY_1059_DATA 0x00000300
    +#define DDRSS_PHY_1060_DATA 0x00000300
    +#define DDRSS_PHY_1061_DATA 0x00000300
    +#define DDRSS_PHY_1062_DATA 0x00000300
    +#define DDRSS_PHY_1063_DATA 0x42080010
    +#define DDRSS_PHY_1064_DATA 0x0000003E
    +#define DDRSS_PHY_1065_DATA 0x00000000
    +#define DDRSS_PHY_1066_DATA 0x00000000
    +#define DDRSS_PHY_1067_DATA 0x00000000
    +#define DDRSS_PHY_1068_DATA 0x00000000
    +#define DDRSS_PHY_1069_DATA 0x00000000
    +#define DDRSS_PHY_1070_DATA 0x00000000
    +#define DDRSS_PHY_1071_DATA 0x00000000
    +#define DDRSS_PHY_1072_DATA 0x00000000
    +#define DDRSS_PHY_1073_DATA 0x00000000
    +#define DDRSS_PHY_1074_DATA 0x00000000
    +#define DDRSS_PHY_1075_DATA 0x00000000
    +#define DDRSS_PHY_1076_DATA 0x00000000
    +#define DDRSS_PHY_1077_DATA 0x00000000
    +#define DDRSS_PHY_1078_DATA 0x00000000
    +#define DDRSS_PHY_1079_DATA 0x00000000
    +#define DDRSS_PHY_1080_DATA 0x00000000
    +#define DDRSS_PHY_1081_DATA 0x00000000
    +#define DDRSS_PHY_1082_DATA 0x00000000
    +#define DDRSS_PHY_1083_DATA 0x00000000
    +#define DDRSS_PHY_1084_DATA 0x00000000
    +#define DDRSS_PHY_1085_DATA 0x00000000
    +#define DDRSS_PHY_1086_DATA 0x00000000
    +#define DDRSS_PHY_1087_DATA 0x00000000
    +#define DDRSS_PHY_1088_DATA 0x00000000
    +#define DDRSS_PHY_1089_DATA 0x00000000
    +#define DDRSS_PHY_1090_DATA 0x00000000
    +#define DDRSS_PHY_1091_DATA 0x00000000
    +#define DDRSS_PHY_1092_DATA 0x00000000
    +#define DDRSS_PHY_1093_DATA 0x00000000
    +#define DDRSS_PHY_1094_DATA 0x00000000
    +#define DDRSS_PHY_1095_DATA 0x00000000
    +#define DDRSS_PHY_1096_DATA 0x00000000
    +#define DDRSS_PHY_1097_DATA 0x00000000
    +#define DDRSS_PHY_1098_DATA 0x00000000
    +#define DDRSS_PHY_1099_DATA 0x00000000
    +#define DDRSS_PHY_1100_DATA 0x00000000
    +#define DDRSS_PHY_1101_DATA 0x00000000
    +#define DDRSS_PHY_1102_DATA 0x00000000
    +#define DDRSS_PHY_1103_DATA 0x00000000
    +#define DDRSS_PHY_1104_DATA 0x00000000
    +#define DDRSS_PHY_1105_DATA 0x00000000
    +#define DDRSS_PHY_1106_DATA 0x00000000
    +#define DDRSS_PHY_1107_DATA 0x00000000
    +#define DDRSS_PHY_1108_DATA 0x00000000
    +#define DDRSS_PHY_1109_DATA 0x00000000
    +#define DDRSS_PHY_1110_DATA 0x00000000
    +#define DDRSS_PHY_1111_DATA 0x00000000
    +#define DDRSS_PHY_1112_DATA 0x00000000
    +#define DDRSS_PHY_1113_DATA 0x00000000
    +#define DDRSS_PHY_1114_DATA 0x00000000
    +#define DDRSS_PHY_1115_DATA 0x00000000
    +#define DDRSS_PHY_1116_DATA 0x00000000
    +#define DDRSS_PHY_1117_DATA 0x00000000
    +#define DDRSS_PHY_1118_DATA 0x00000000
    +#define DDRSS_PHY_1119_DATA 0x00000000
    +#define DDRSS_PHY_1120_DATA 0x00000000
    +#define DDRSS_PHY_1121_DATA 0x00000000
    +#define DDRSS_PHY_1122_DATA 0x00000000
    +#define DDRSS_PHY_1123_DATA 0x00000000
    +#define DDRSS_PHY_1124_DATA 0x00000000
    +#define DDRSS_PHY_1125_DATA 0x00000000
    +#define DDRSS_PHY_1126_DATA 0x00000000
    +#define DDRSS_PHY_1127_DATA 0x00000000
    +#define DDRSS_PHY_1128_DATA 0x00000000
    +#define DDRSS_PHY_1129_DATA 0x00000000
    +#define DDRSS_PHY_1130_DATA 0x00000000
    +#define DDRSS_PHY_1131_DATA 0x00000000
    +#define DDRSS_PHY_1132_DATA 0x00000000
    +#define DDRSS_PHY_1133_DATA 0x00000000
    +#define DDRSS_PHY_1134_DATA 0x00000000
    +#define DDRSS_PHY_1135_DATA 0x00000000
    +#define DDRSS_PHY_1136_DATA 0x00000000
    +#define DDRSS_PHY_1137_DATA 0x00000000
    +#define DDRSS_PHY_1138_DATA 0x00000000
    +#define DDRSS_PHY_1139_DATA 0x00000000
    +#define DDRSS_PHY_1140_DATA 0x00000000
    +#define DDRSS_PHY_1141_DATA 0x00000000
    +#define DDRSS_PHY_1142_DATA 0x00000000
    +#define DDRSS_PHY_1143_DATA 0x00000000
    +#define DDRSS_PHY_1144_DATA 0x00000000
    +#define DDRSS_PHY_1145_DATA 0x00000000
    +#define DDRSS_PHY_1146_DATA 0x00000000
    +#define DDRSS_PHY_1147_DATA 0x00000000
    +#define DDRSS_PHY_1148_DATA 0x00000000
    +#define DDRSS_PHY_1149_DATA 0x00000000
    +#define DDRSS_PHY_1150_DATA 0x00000000
    +#define DDRSS_PHY_1151_DATA 0x00000000
    +#define DDRSS_PHY_1152_DATA 0x00000000
    +#define DDRSS_PHY_1153_DATA 0x00000000
    +#define DDRSS_PHY_1154_DATA 0x00000000
    +#define DDRSS_PHY_1155_DATA 0x00000000
    +#define DDRSS_PHY_1156_DATA 0x00000000
    +#define DDRSS_PHY_1157_DATA 0x00000000
    +#define DDRSS_PHY_1158_DATA 0x00000000
    +#define DDRSS_PHY_1159_DATA 0x00000000
    +#define DDRSS_PHY_1160_DATA 0x00000000
    +#define DDRSS_PHY_1161_DATA 0x00000000
    +#define DDRSS_PHY_1162_DATA 0x00000000
    +#define DDRSS_PHY_1163_DATA 0x00000000
    +#define DDRSS_PHY_1164_DATA 0x00000000
    +#define DDRSS_PHY_1165_DATA 0x00000000
    +#define DDRSS_PHY_1166_DATA 0x00000000
    +#define DDRSS_PHY_1167_DATA 0x00000000
    +#define DDRSS_PHY_1168_DATA 0x00000000
    +#define DDRSS_PHY_1169_DATA 0x00000000
    +#define DDRSS_PHY_1170_DATA 0x00000000
    +#define DDRSS_PHY_1171_DATA 0x00000000
    +#define DDRSS_PHY_1172_DATA 0x00000000
    +#define DDRSS_PHY_1173_DATA 0x00000000
    +#define DDRSS_PHY_1174_DATA 0x00000000
    +#define DDRSS_PHY_1175_DATA 0x00000000
    +#define DDRSS_PHY_1176_DATA 0x00000000
    +#define DDRSS_PHY_1177_DATA 0x00000000
    +#define DDRSS_PHY_1178_DATA 0x00000000
    +#define DDRSS_PHY_1179_DATA 0x00000000
    +#define DDRSS_PHY_1180_DATA 0x00000000
    +#define DDRSS_PHY_1181_DATA 0x00000000
    +#define DDRSS_PHY_1182_DATA 0x00000000
    +#define DDRSS_PHY_1183_DATA 0x00000000
    +#define DDRSS_PHY_1184_DATA 0x00000000
    +#define DDRSS_PHY_1185_DATA 0x00000000
    +#define DDRSS_PHY_1186_DATA 0x00000000
    +#define DDRSS_PHY_1187_DATA 0x00000000
    +#define DDRSS_PHY_1188_DATA 0x00000000
    +#define DDRSS_PHY_1189_DATA 0x00000000
    +#define DDRSS_PHY_1190_DATA 0x00000000
    +#define DDRSS_PHY_1191_DATA 0x00000000
    +#define DDRSS_PHY_1192_DATA 0x00000000
    +#define DDRSS_PHY_1193_DATA 0x00000000
    +#define DDRSS_PHY_1194_DATA 0x00000000
    +#define DDRSS_PHY_1195_DATA 0x00000000
    +#define DDRSS_PHY_1196_DATA 0x00000000
    +#define DDRSS_PHY_1197_DATA 0x00000000
    +#define DDRSS_PHY_1198_DATA 0x00000000
    +#define DDRSS_PHY_1199_DATA 0x00000000
    +#define DDRSS_PHY_1200_DATA 0x00000000
    +#define DDRSS_PHY_1201_DATA 0x00000000
    +#define DDRSS_PHY_1202_DATA 0x00000000
    +#define DDRSS_PHY_1203_DATA 0x00000000
    +#define DDRSS_PHY_1204_DATA 0x00000000
    +#define DDRSS_PHY_1205_DATA 0x00000000
    +#define DDRSS_PHY_1206_DATA 0x00000000
    +#define DDRSS_PHY_1207_DATA 0x00000000
    +#define DDRSS_PHY_1208_DATA 0x00000000
    +#define DDRSS_PHY_1209_DATA 0x00000000
    +#define DDRSS_PHY_1210_DATA 0x00000000
    +#define DDRSS_PHY_1211_DATA 0x00000000
    +#define DDRSS_PHY_1212_DATA 0x00000000
    +#define DDRSS_PHY_1213_DATA 0x00000000
    +#define DDRSS_PHY_1214_DATA 0x00000000
    +#define DDRSS_PHY_1215_DATA 0x00000000
    +#define DDRSS_PHY_1216_DATA 0x00000000
    +#define DDRSS_PHY_1217_DATA 0x00000000
    +#define DDRSS_PHY_1218_DATA 0x00000000
    +#define DDRSS_PHY_1219_DATA 0x00000000
    +#define DDRSS_PHY_1220_DATA 0x00000000
    +#define DDRSS_PHY_1221_DATA 0x00000000
    +#define DDRSS_PHY_1222_DATA 0x00000000
    +#define DDRSS_PHY_1223_DATA 0x00000000
    +#define DDRSS_PHY_1224_DATA 0x00000000
    +#define DDRSS_PHY_1225_DATA 0x00000000
    +#define DDRSS_PHY_1226_DATA 0x00000000
    +#define DDRSS_PHY_1227_DATA 0x00000000
    +#define DDRSS_PHY_1228_DATA 0x00000000
    +#define DDRSS_PHY_1229_DATA 0x00000000
    +#define DDRSS_PHY_1230_DATA 0x00000000
    +#define DDRSS_PHY_1231_DATA 0x00000000
    +#define DDRSS_PHY_1232_DATA 0x00000000
    +#define DDRSS_PHY_1233_DATA 0x00000000
    +#define DDRSS_PHY_1234_DATA 0x00000000
    +#define DDRSS_PHY_1235_DATA 0x00000000
    +#define DDRSS_PHY_1236_DATA 0x00000000
    +#define DDRSS_PHY_1237_DATA 0x00000000
    +#define DDRSS_PHY_1238_DATA 0x00000000
    +#define DDRSS_PHY_1239_DATA 0x00000000
    +#define DDRSS_PHY_1240_DATA 0x00000000
    +#define DDRSS_PHY_1241_DATA 0x00000000
    +#define DDRSS_PHY_1242_DATA 0x00000000
    +#define DDRSS_PHY_1243_DATA 0x00000000
    +#define DDRSS_PHY_1244_DATA 0x00000000
    +#define DDRSS_PHY_1245_DATA 0x00000000
    +#define DDRSS_PHY_1246_DATA 0x00000000
    +#define DDRSS_PHY_1247_DATA 0x00000000
    +#define DDRSS_PHY_1248_DATA 0x00000000
    +#define DDRSS_PHY_1249_DATA 0x00000000
    +#define DDRSS_PHY_1250_DATA 0x00000000
    +#define DDRSS_PHY_1251_DATA 0x00000000
    +#define DDRSS_PHY_1252_DATA 0x00000000
    +#define DDRSS_PHY_1253_DATA 0x00000000
    +#define DDRSS_PHY_1254_DATA 0x00000000
    +#define DDRSS_PHY_1255_DATA 0x00000000
    +#define DDRSS_PHY_1256_DATA 0x00000000
    +#define DDRSS_PHY_1257_DATA 0x00000000
    +#define DDRSS_PHY_1258_DATA 0x00000000
    +#define DDRSS_PHY_1259_DATA 0x00000000
    +#define DDRSS_PHY_1260_DATA 0x00000000
    +#define DDRSS_PHY_1261_DATA 0x00000000
    +#define DDRSS_PHY_1262_DATA 0x00000000
    +#define DDRSS_PHY_1263_DATA 0x00000000
    +#define DDRSS_PHY_1264_DATA 0x00000000
    +#define DDRSS_PHY_1265_DATA 0x00000000
    +#define DDRSS_PHY_1266_DATA 0x00000000
    +#define DDRSS_PHY_1267_DATA 0x00000000
    +#define DDRSS_PHY_1268_DATA 0x00000000
    +#define DDRSS_PHY_1269_DATA 0x00000000
    +#define DDRSS_PHY_1270_DATA 0x00000000
    +#define DDRSS_PHY_1271_DATA 0x00000000
    +#define DDRSS_PHY_1272_DATA 0x00000000
    +#define DDRSS_PHY_1273_DATA 0x00000000
    +#define DDRSS_PHY_1274_DATA 0x00000000
    +#define DDRSS_PHY_1275_DATA 0x00000000
    +#define DDRSS_PHY_1276_DATA 0x00000000
    +#define DDRSS_PHY_1277_DATA 0x00000000
    +#define DDRSS_PHY_1278_DATA 0x00000000
    +#define DDRSS_PHY_1279_DATA 0x00000000
    +#define DDRSS_PHY_1280_DATA 0x00000000
    +#define DDRSS_PHY_1281_DATA 0x00000100
    +#define DDRSS_PHY_1282_DATA 0x00000000
    +#define DDRSS_PHY_1283_DATA 0x00000000
    +#define DDRSS_PHY_1284_DATA 0x00000000
    +#define DDRSS_PHY_1285_DATA 0x00000000
    +#define DDRSS_PHY_1286_DATA 0x00050000
    +#define DDRSS_PHY_1287_DATA 0x04000100
    +#define DDRSS_PHY_1288_DATA 0x00000055
    +#define DDRSS_PHY_1289_DATA 0x00000000
    +#define DDRSS_PHY_1290_DATA 0x00000000
    +#define DDRSS_PHY_1291_DATA 0x00000000
    +#define DDRSS_PHY_1292_DATA 0x00000000
    +#define DDRSS_PHY_1293_DATA 0x01002000
    +#define DDRSS_PHY_1294_DATA 0x00004001
    +#define DDRSS_PHY_1295_DATA 0x00020028
    +#define DDRSS_PHY_1296_DATA 0x00010100
    +#define DDRSS_PHY_1297_DATA 0x00000001
    +#define DDRSS_PHY_1298_DATA 0x00000000
    +#define DDRSS_PHY_1299_DATA 0x0F0F0E06
    +#define DDRSS_PHY_1300_DATA 0x00010101
    +#define DDRSS_PHY_1301_DATA 0x010F0004
    +#define DDRSS_PHY_1302_DATA 0x00000000
    +#define DDRSS_PHY_1303_DATA 0x00000000
    +#define DDRSS_PHY_1304_DATA 0x00000064
    +#define DDRSS_PHY_1305_DATA 0x00000000
    +#define DDRSS_PHY_1306_DATA 0x00000000
    +#define DDRSS_PHY_1307_DATA 0x01020103
    +#define DDRSS_PHY_1308_DATA 0x0F020102
    +#define DDRSS_PHY_1309_DATA 0x03030303
    +#define DDRSS_PHY_1310_DATA 0x03030303
    +#define DDRSS_PHY_1311_DATA 0x00040000
    +#define DDRSS_PHY_1312_DATA 0x00005201
    +#define DDRSS_PHY_1313_DATA 0x00000000
    +#define DDRSS_PHY_1314_DATA 0x00000000
    +#define DDRSS_PHY_1315_DATA 0x00000000
    +#define DDRSS_PHY_1316_DATA 0x00000000
    +#define DDRSS_PHY_1317_DATA 0x00000000
    +#define DDRSS_PHY_1318_DATA 0x00000000
    +#define DDRSS_PHY_1319_DATA 0x07070001
    +#define DDRSS_PHY_1320_DATA 0x00005400
    +#define DDRSS_PHY_1321_DATA 0x000040A2
    +#define DDRSS_PHY_1322_DATA 0x00024410
    +#define DDRSS_PHY_1323_DATA 0x00004410
    +#define DDRSS_PHY_1324_DATA 0x00004410
    +#define DDRSS_PHY_1325_DATA 0x00004410
    +#define DDRSS_PHY_1326_DATA 0x00004410
    +#define DDRSS_PHY_1327_DATA 0x00004410
    +#define DDRSS_PHY_1328_DATA 0x00004410
    +#define DDRSS_PHY_1329_DATA 0x00004410
    +#define DDRSS_PHY_1330_DATA 0x00004410
    +#define DDRSS_PHY_1331_DATA 0x00004410
    +#define DDRSS_PHY_1332_DATA 0x00000000
    +#define DDRSS_PHY_1333_DATA 0x00000046
    +#define DDRSS_PHY_1334_DATA 0x00000400
    +#define DDRSS_PHY_1335_DATA 0x00000008
    +#define DDRSS_PHY_1336_DATA 0x00000000
    +#define DDRSS_PHY_1337_DATA 0x00000000
    +#define DDRSS_PHY_1338_DATA 0x00000000
    +#define DDRSS_PHY_1339_DATA 0x00000000
    +#define DDRSS_PHY_1340_DATA 0x00000000
    +#define DDRSS_PHY_1341_DATA 0x03000000
    +#define DDRSS_PHY_1342_DATA 0x00000000
    +#define DDRSS_PHY_1343_DATA 0x00000000
    +#define DDRSS_PHY_1344_DATA 0x00000000
    +#define DDRSS_PHY_1345_DATA 0x04102006
    +#define DDRSS_PHY_1346_DATA 0x00041020
    +#define DDRSS_PHY_1347_DATA 0x01C98C98
    +#define DDRSS_PHY_1348_DATA 0x3F400000
    +#define DDRSS_PHY_1349_DATA 0x3F3F1F3F
    +#define DDRSS_PHY_1350_DATA 0x0000001F
    +#define DDRSS_PHY_1351_DATA 0x00000000
    +#define DDRSS_PHY_1352_DATA 0x00000000
    +#define DDRSS_PHY_1353_DATA 0x00000000
    +#define DDRSS_PHY_1354_DATA 0x00000001
    +#define DDRSS_PHY_1355_DATA 0x00000000
    +#define DDRSS_PHY_1356_DATA 0x00000000
    +#define DDRSS_PHY_1357_DATA 0x00000000
    +#define DDRSS_PHY_1358_DATA 0x00000000
    +#define DDRSS_PHY_1359_DATA 0x76543210
    +#define DDRSS_PHY_1360_DATA 0x00000098
    +#define DDRSS_PHY_1361_DATA 0x00000000
    +#define DDRSS_PHY_1362_DATA 0x00000000
    +#define DDRSS_PHY_1363_DATA 0x00000000
    +#define DDRSS_PHY_1364_DATA 0x00040700
    +#define DDRSS_PHY_1365_DATA 0x00000000
    +#define DDRSS_PHY_1366_DATA 0x00000000
    +#define DDRSS_PHY_1367_DATA 0x00000000
    +#define DDRSS_PHY_1368_DATA 0x00000002
    +#define DDRSS_PHY_1369_DATA 0x00000100
    +#define DDRSS_PHY_1370_DATA 0x00000000
    +#define DDRSS_PHY_1371_DATA 0x0001F7C2
    +#define DDRSS_PHY_1372_DATA 0x00020002
    +#define DDRSS_PHY_1373_DATA 0x00000000
    +#define DDRSS_PHY_1374_DATA 0x00001142
    +#define DDRSS_PHY_1375_DATA 0x03020400
    +#define DDRSS_PHY_1376_DATA 0x00000080
    +#define DDRSS_PHY_1377_DATA 0x03900390
    +#define DDRSS_PHY_1378_DATA 0x03900390
    +#define DDRSS_PHY_1379_DATA 0x03900390
    +#define DDRSS_PHY_1380_DATA 0x03900390
    +#define DDRSS_PHY_1381_DATA 0x03900390
    +#define DDRSS_PHY_1382_DATA 0x03900390
    +#define DDRSS_PHY_1383_DATA 0x00000300
    +#define DDRSS_PHY_1384_DATA 0x00000300
    +#define DDRSS_PHY_1385_DATA 0x00000300
    +#define DDRSS_PHY_1386_DATA 0x00000300
    +#define DDRSS_PHY_1387_DATA 0x31823FC7
    +#define DDRSS_PHY_1388_DATA 0x00000000
    +#define DDRSS_PHY_1389_DATA 0x0C000D3F
    +#define DDRSS_PHY_1390_DATA 0x30000D3F
    +#define DDRSS_PHY_1391_DATA 0x300D3F11
    +#define DDRSS_PHY_1392_DATA 0x01990000
    +#define DDRSS_PHY_1393_DATA 0x000D3FCC
    +#define DDRSS_PHY_1394_DATA 0x00000C11
    +#define DDRSS_PHY_1395_DATA 0x300D3F11
    +#define DDRSS_PHY_1396_DATA 0x01990000
    +#define DDRSS_PHY_1397_DATA 0x300C3F11
    +#define DDRSS_PHY_1398_DATA 0x01990000
    +#define DDRSS_PHY_1399_DATA 0x300C3F11
    +#define DDRSS_PHY_1400_DATA 0x01990000
    +#define DDRSS_PHY_1401_DATA 0x300D3F11
    +#define DDRSS_PHY_1402_DATA 0x01990000
    +#define DDRSS_PHY_1403_DATA 0x300D3F11
    +#define DDRSS_PHY_1404_DATA 0x01990000
    +#define DDRSS_PHY_1405_DATA 0x20040004
    diff --git a/arch/arm/mach-k3/am62x/Kconfig b/arch/arm/mach-k3/am62x/Kconfig
    index c3677a55089..837c53ce8bf 100644
    --- a/arch/arm/mach-k3/am62x/Kconfig
    +++ b/arch/arm/mach-k3/am62x/Kconfig
    @@ -9,6 +9,23 @@ choice
     	prompt "K3 AM62x based boards"
     	optional
     
    +config TARGET_AM625_A53_CHARGE
    +    bool "Liteon K3 based AM625 charge running on A53"
    +    select ARM64
    +    select BINMAN
    +    select OF_SYSTEM_SETUP
    +
    +config TARGET_AM625_R5_CHARGE
    +    bool "Liteon K3 based AM625 charge running on R5"
    +    select CPU_V7R
    +    select SYS_THUMB_BUILD
    +    select K3_LOAD_SYSFW
    +    select RAM
    +    select SPL_RAM
    +    select K3_DDRSS
    +    select BINMAN
    +    imply SYS_K3_SPL_ATF
    +
     config TARGET_AM625_A53_EVM
     	bool "TI K3 based AM625 EVM running on A53"
     	select ARM64
    @@ -69,5 +86,6 @@ source "board/beagle/beagleplay/Kconfig"
     source "board/phytec/phycore_am62x/Kconfig"
     source "board/ti/am62x/Kconfig"
     source "board/toradex/verdin-am62/Kconfig"
    +source "board/liteon/charge/Kconfig"
     
     endif
    diff --git a/board/liteon/charge/Kconfig b/board/liteon/charge/Kconfig
    new file mode 100644
    index 00000000000..8b01659a450
    --- /dev/null
    +++ b/board/liteon/charge/Kconfig
    @@ -0,0 +1,37 @@
    +# SPDX-License-Identifier: GPL-2.0+
    +#
    +# Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
    +#	Suman Anna <s-anna@ti.com>
    +
    +if TARGET_AM625_A53_CHARGE
    +
    +config SYS_BOARD
    +       default "charge"
    +
    +config SYS_VENDOR
    +       default "liteon"
    +
    +config SYS_CONFIG_NAME
    +       default "charge"
    +
    +source "board/liteon/common/Kconfig"
    +
    +endif
    +
    +if TARGET_AM625_R5_CHARGE
    +
    +config SYS_BOARD
    +       default "charge"
    +
    +config SYS_VENDOR
    +       default "liteon"
    +
    +config SYS_CONFIG_NAME
    +       default "charge"
    +
    +config SPL_LDSCRIPT
    +	default "arch/arm/mach-omap2/u-boot-spl.lds"
    +
    +source "board/liteon/common/Kconfig"
    +
    +endif
    diff --git a/board/liteon/charge/MAINTAINERS b/board/liteon/charge/MAINTAINERS
    new file mode 100644
    index 00000000000..105e741995e
    --- /dev/null
    +++ b/board/liteon/charge/MAINTAINERS
    @@ -0,0 +1,8 @@
    +AM62x BOARD
    +M:	Dave Gerlach <d-gerlach@ti.com>
    +M:	Tom Rini <trini@konsulko.com>
    +S:	Maintained
    +F:	board/ti/am62x/
    +F:	include/configs/am62x_evm.h
    +F:	configs/am62x_evm_r5_defconfig
    +F:	configs/am62x_evm_a53_defconfig
    diff --git a/board/liteon/charge/Makefile b/board/liteon/charge/Makefile
    new file mode 100644
    index 00000000000..9dfe2bb54f9
    --- /dev/null
    +++ b/board/liteon/charge/Makefile
    @@ -0,0 +1,8 @@
    +#
    +# Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
    +#	Suman Anna <s-anna@ti.com>
    +#
    +# SPDX-License-Identifier:     GPL-2.0+
    +#
    +
    +obj-y	+= charge.o
    diff --git a/board/liteon/charge/board-cfg.yaml b/board/liteon/charge/board-cfg.yaml
    new file mode 100644
    index 00000000000..45c89dd15f1
    --- /dev/null
    +++ b/board/liteon/charge/board-cfg.yaml
    @@ -0,0 +1,36 @@
    +# SPDX-License-Identifier: GPL-2.0+
    +# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
    +#
    +# Board configuration for AM62
    +#
    +
    +---
    +
    +board-cfg:
    +    rev:
    +        boardcfg_abi_maj: 0x0
    +        boardcfg_abi_min: 0x1
    +    control:
    +        subhdr:
    +            magic: 0xC1D3
    +            size: 7
    +        main_isolation_enable: 0x5A
    +        main_isolation_hostid: 0x2
    +    secproxy:
    +        subhdr:
    +            magic: 0x1207
    +            size: 7
    +        scaling_factor: 0x1
    +        scaling_profile: 0x1
    +        disable_main_nav_secure_proxy: 0
    +    msmc:
    +        subhdr:
    +            magic: 0xA5C3
    +            size: 5
    +        msmc_cache_size: 0x0
    +    debug_cfg:
    +        subhdr:
    +            magic: 0x020C
    +            size: 8
    +        trace_dst_enables: 0x00
    +        trace_src_enables: 0x00
    diff --git a/board/liteon/charge/charge.c b/board/liteon/charge/charge.c
    new file mode 100644
    index 00000000000..3d924d6cbcd
    --- /dev/null
    +++ b/board/liteon/charge/charge.c
    @@ -0,0 +1,203 @@
    +// SPDX-License-Identifier: GPL-2.0+
    +/*
    + * Board specific initialization for AM62x platforms
    + *
    + * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
    + *	Suman Anna <s-anna@ti.com>
    + *
    + */
    +
    +#include <env.h>
    +#include <spl.h>
    +#include <init.h>
    +#include <video.h>
    +#include <splash.h>
    +#include <cpu_func.h>
    +#include <k3-ddrss.h>
    +#include <fdt_support.h>
    +#include <fdt_simplefb.h>
    +#include <asm/io.h>
    +#include <asm/arch/hardware.h>
    +#include <dm/uclass.h>
    +
    +#include "../common/board_detect.h"
    +#include "../common/fdt_ops.h"
    +
    +#include "../common/k3-ddr-init.h"
    +
    +#define board_is_am62x_skevm()  (board_ti_k3_is("AM62-SKEVM") || \
    +				 board_ti_k3_is("AM62B-SKEVM"))
    +#define board_is_am62b_p1_skevm() board_ti_k3_is("AM62B-SKEVM-P1")
    +#define board_is_am62x_lp_skevm()  board_ti_k3_is("AM62-LP-SKEVM")
    +#define board_is_am62x_sip_skevm()  board_ti_k3_is("AM62SIP-SKEVM")
    +#define board_is_am62x_play()	board_ti_k3_is("BEAGLEPLAY-A0-")
    +
    +DECLARE_GLOBAL_DATA_PTR;
    +
    +#if CONFIG_IS_ENABLED(SPLASH_SCREEN)
    +static struct splash_location default_splash_locations[] = {
    +	{
    +		.name = "sf",
    +		.storage = SPLASH_STORAGE_SF,
    +		.flags = SPLASH_STORAGE_RAW,
    +		.offset = 0x700000,
    +	},
    +	{
    +		.name		= "mmc",
    +		.storage	= SPLASH_STORAGE_MMC,
    +		.flags		= SPLASH_STORAGE_FS,
    +		.devpart	= "1:1",
    +	},
    +};
    +
    +int splash_screen_prepare(void)
    +{
    +	return splash_source_load(default_splash_locations,
    +				ARRAY_SIZE(default_splash_locations));
    +}
    +#endif
    +
    +int board_init(void)
    +{
    +	return 0;
    +}
    +
    +#if CONFIG_IS_ENABLED(TI_I2C_BOARD_DETECT)
    +int do_board_detect(void)
    +{
    +	int ret;
    +
    +	ret = ti_i2c_eeprom_am6_get_base(CONFIG_EEPROM_BUS_ADDRESS,
    +					 CONFIG_EEPROM_CHIP_ADDRESS);
    +	if (ret) {
    +		printf("EEPROM not available at 0x%02x, trying to read at 0x%02x\n",
    +		       CONFIG_EEPROM_CHIP_ADDRESS, CONFIG_EEPROM_CHIP_ADDRESS + 1);
    +		ret = ti_i2c_eeprom_am6_get_base(CONFIG_EEPROM_BUS_ADDRESS,
    +						 CONFIG_EEPROM_CHIP_ADDRESS + 1);
    +		if (ret)
    +			pr_err("Reading on-board EEPROM at 0x%02x failed %d\n",
    +			       CONFIG_EEPROM_CHIP_ADDRESS + 1, ret);
    +	}
    +
    +	return ret;
    +}
    +
    +int checkboard(void)
    +{
    +	struct ti_am6_eeprom *ep = TI_AM6_EEPROM_DATA;
    +
    +	if (!do_board_detect())
    +		printf("Board: %s rev %s\n", ep->name, ep->version);
    +
    +	return 0;
    +}
    +
    +#if CONFIG_IS_ENABLED(BOARD_LATE_INIT)
    +static void setup_board_eeprom_env(void)
    +{
    +	char *name = "am62x_skevm";
    +
    +	if (do_board_detect())
    +		goto invalid_eeprom;
    +
    +	if (board_is_am62x_skevm())
    +		name = "am62x_skevm";
    +	else if (board_is_am62b_p1_skevm())
    +		name = "am62b_p1_skevm";
    +	else if (board_is_am62x_lp_skevm())
    +		name = "am62x_lp_skevm";
    +	else if (board_is_am62x_sip_skevm())
    +		name = "am62x_sip_skevm";
    +	else if (board_is_am62x_play())
    +		name = "am62x_beagleplay";
    +	else
    +		printf("Unidentified board claims %s in eeprom header\n",
    +		       board_ti_get_name());
    +
    +invalid_eeprom:
    +	set_board_info_env_am6(name);
    +}
    +
    +static void setup_serial(void)
    +{
    +	struct ti_am6_eeprom *ep = TI_AM6_EEPROM_DATA;
    +	unsigned long board_serial;
    +	char *endp;
    +	char serial_string[17] = { 0 };
    +
    +	if (env_get("serial#"))
    +		return;
    +
    +	board_serial = simple_strtoul(ep->serial, &endp, 16);
    +	if (*endp != '\0') {
    +		pr_err("Error: Can't set serial# to %s\n", ep->serial);
    +		return;
    +	}
    +
    +	snprintf(serial_string, sizeof(serial_string), "%016lx", board_serial);
    +	env_set("serial#", serial_string);
    +}
    +#endif
    +#endif
    +
    +#if CONFIG_IS_ENABLED(BOARD_LATE_INIT)
    +int board_late_init(void)
    +{
    +	if (IS_ENABLED(CONFIG_TI_I2C_BOARD_DETECT)) {
    +		setup_board_eeprom_env();
    +		setup_serial();
    +	}
    +
    +	ti_set_fdt_env(NULL, NULL);
    +	return 0;
    +}
    +#endif
    +
    +#if defined(CONFIG_SPL_BUILD)
    +
    +void spl_board_init(void)
    +{
    +	u32 val;
    +
    +	/* We have 32k crystal, so lets enable it */
    +	val = readl(MCU_CTRL_LFXOSC_CTRL);
    +	val &= ~(MCU_CTRL_LFXOSC_32K_DISABLE_VAL);
    +	writel(val, MCU_CTRL_LFXOSC_CTRL);
    +	/* Add any TRIM needed for the crystal here.. */
    +	/* Make sure to mux up to take the SoC 32k from the crystal */
    +	writel(MCU_CTRL_DEVICE_CLKOUT_LFOSC_SELECT_VAL,
    +	       MCU_CTRL_DEVICE_CLKOUT_32K_CTRL);
    +
    +	enable_caches();
    +	if (IS_ENABLED(CONFIG_SPL_SPLASH_SCREEN) && IS_ENABLED(CONFIG_SPL_BMP))
    +		splash_display();
    +}
    +
    +void spl_perform_fixups(struct spl_image_info *spl_image)
    +{
    +	if (IS_ENABLED(CONFIG_K3_DDRSS) && IS_ENABLED(CONFIG_K3_INLINE_ECC))
    +		fixup_ddr_driver_for_ecc(spl_image);
    +	else
    +		fixup_memory_node(spl_image);
    +}
    +#endif
    +
    +#if defined(CONFIG_OF_BOARD_SETUP)
    +int ft_board_setup(void *blob, struct bd_info *bd)
    +{
    +	int ret = -1;
    +
    +	if (IS_ENABLED(CONFIG_FDT_SIMPLEFB))
    +		ret = fdt_simplefb_enable_and_mem_rsv(blob);
    +
    +	/* If simplefb is not enabled and video is active, then at least reserve
    +	 * the framebuffer region to preserve the splash screen while OS is booting
    +	 */
    +	if (IS_ENABLED(CONFIG_VIDEO) && IS_ENABLED(CONFIG_OF_LIBFDT)) {
    +		if (ret && video_is_active())
    +			return fdt_add_fb_mem_rsv(blob);
    +	}
    +
    +	return 0;
    +}
    +#endif
    diff --git a/board/liteon/charge/charge.env b/board/liteon/charge/charge.env
    new file mode 100644
    index 00000000000..195d5c1d0ca
    --- /dev/null
    +++ b/board/liteon/charge/charge.env
    @@ -0,0 +1,39 @@
    +#include <env/ti/ti_common.env>
    +#include <env/ti/mmc.env>
    +#include <env/ti/k3_dfu.env>
    +#include <env/ti/ospi_nand.env>
    +#if CONFIG_CMD_REMOTEPROC
    +#include <env/ti/k3_rproc.env>
    +#endif
    +
    +name_kern=Image
    +console=ttyS2,115200n8
    +args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02820000
    +	${mtdparts}
    +run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
    +
    +boot_targets=mmc1 mmc0 usb pxe dhcp
    +boot=mmc
    +mmcdev=1
    +bootpart=1:2
    +bootdir=/boot
    +rd_spec=-
    +
    +splashfile=ti_logo_414x97_32bpp.bmp.gz
    +splashimage=0x80200000
    +splashpos=m,m
    +splashsource=mmc
    +rproc_fw_binaries= 0 /lib/firmware/am62-mcu-m4f0_0-fw
    +
    +#if CONFIG_BOOTMETH_ANDROID
    +#include <env/ti/android.env>
    +force_avb=0
    +adtb_idx=0
    +get_adtb_idx=
    +	if test ${board_name} = am62x_lp_skevm; then
    +		setenv adtb_idx 1;
    +	else
    +		setenv adtb_idx 0;
    +	fi;
    +bootcmd=run get_adtb_idx; bootflow scan -lb
    +#endif
    diff --git a/board/liteon/charge/pm-cfg.yaml b/board/liteon/charge/pm-cfg.yaml
    new file mode 100644
    index 00000000000..9853a25eb85
    --- /dev/null
    +++ b/board/liteon/charge/pm-cfg.yaml
    @@ -0,0 +1,12 @@
    +# SPDX-License-Identifier: GPL-2.0+
    +# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
    +#
    +# Power management configuration for AM62
    +#
    +
    +---
    +
    +pm-cfg:
    +    rev:
    +        boardcfg_abi_maj: 0x0
    +        boardcfg_abi_min: 0x1
    diff --git a/board/liteon/charge/rm-cfg.yaml b/board/liteon/charge/rm-cfg.yaml
    new file mode 100644
    index 00000000000..725f7c83f0d
    --- /dev/null
    +++ b/board/liteon/charge/rm-cfg.yaml
    @@ -0,0 +1,981 @@
    +# SPDX-License-Identifier: GPL-2.0+
    +# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
    +#
    +# Resource management configuration for AM62X
    +#
    +
    +---
    +
    +rm-cfg:
    +    rm_boardcfg:
    +        rev:
    +            boardcfg_abi_maj: 0x0
    +            boardcfg_abi_min: 0x1
    +        host_cfg:
    +            subhdr:
    +                magic: 0x4C41
    +                size: 356
    +            host_cfg_entries:
    +                -  # 1
    +                    host_id: 12
    +                    allowed_atype: 0x2A
    +                    allowed_qos: 0xAAAA
    +                    allowed_orderid: 0xAAAAAAAA
    +                    allowed_priority: 0xAAAA
    +                    allowed_sched_priority: 0xAA
    +                -  # 2
    +                    host_id: 30
    +                    allowed_atype: 0x2A
    +                    allowed_qos: 0xAAAA
    +                    allowed_orderid: 0xAAAAAAAA
    +                    allowed_priority: 0xAAAA
    +                    allowed_sched_priority: 0xAA
    +                -  # 3
    +                    host_id: 36
    +                    allowed_atype: 0x2A
    +                    allowed_qos: 0xAAAA
    +                    allowed_orderid: 0xAAAAAAAA
    +                    allowed_priority: 0xAAAA
    +                    allowed_sched_priority: 0xAA
    +                -  # 4
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 5
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 6
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 7
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 8
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 9
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 10
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 11
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 12
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 13
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 14
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 15
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 16
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 17
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 18
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 19
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 20
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 21
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 22
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 23
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 24
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 25
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 26
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 27
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 28
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 29
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 30
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 31
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +                -  # 32
    +                    host_id: 0
    +                    allowed_atype: 0
    +                    allowed_qos: 0
    +                    allowed_orderid: 0
    +                    allowed_priority: 0
    +                    allowed_sched_priority: 0
    +        resasg:
    +            subhdr:
    +                magic: 0x7B25
    +                size: 8
    +            resasg_entries_size: 976
    +            reserved: 0
    +    resasg_entries:
    +        -
    +            start_resource: 0
    +            num_resource: 16
    +            type: 64
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 16
    +            num_resource: 4
    +            type: 64
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 16
    +            num_resource: 4
    +            type: 64
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 20
    +            num_resource: 22
    +            type: 64
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 16
    +            type: 192
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 34
    +            num_resource: 2
    +            type: 192
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 2
    +            type: 320
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 2
    +            num_resource: 2
    +            type: 320
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 2
    +            num_resource: 2
    +            type: 320
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 4
    +            num_resource: 4
    +            type: 320
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 26
    +            type: 384
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 50176
    +            num_resource: 164
    +            type: 1666
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 1
    +            type: 1667
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 18
    +            type: 1677
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 18
    +            num_resource: 6
    +            type: 1677
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 18
    +            num_resource: 6
    +            type: 1677
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 24
    +            num_resource: 2
    +            type: 1677
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 26
    +            num_resource: 6
    +            type: 1677
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 54
    +            num_resource: 18
    +            type: 1678
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 72
    +            num_resource: 6
    +            type: 1678
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 72
    +            num_resource: 6
    +            type: 1678
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 78
    +            num_resource: 2
    +            type: 1678
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 80
    +            num_resource: 2
    +            type: 1678
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 32
    +            num_resource: 12
    +            type: 1679
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 44
    +            num_resource: 6
    +            type: 1679
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 44
    +            num_resource: 6
    +            type: 1679
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 50
    +            num_resource: 2
    +            type: 1679
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 52
    +            num_resource: 2
    +            type: 1679
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 18
    +            type: 1696
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 18
    +            num_resource: 6
    +            type: 1696
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 18
    +            num_resource: 6
    +            type: 1696
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 24
    +            num_resource: 2
    +            type: 1696
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 26
    +            num_resource: 6
    +            type: 1696
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 18
    +            type: 1697
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 18
    +            num_resource: 6
    +            type: 1697
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 18
    +            num_resource: 6
    +            type: 1697
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 24
    +            num_resource: 2
    +            type: 1697
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 26
    +            num_resource: 2
    +            type: 1697
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 12
    +            type: 1698
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 12
    +            num_resource: 6
    +            type: 1698
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 12
    +            num_resource: 6
    +            type: 1698
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 18
    +            num_resource: 2
    +            type: 1698
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 20
    +            num_resource: 2
    +            type: 1698
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 5
    +            num_resource: 35
    +            type: 1802
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 44
    +            num_resource: 36
    +            type: 1802
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 44
    +            num_resource: 36
    +            type: 1802
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 168
    +            num_resource: 8
    +            type: 1802
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 13
    +            num_resource: 512
    +            type: 1805
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 525
    +            num_resource: 256
    +            type: 1805
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 525
    +            num_resource: 256
    +            type: 1805
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 781
    +            num_resource: 128
    +            type: 1805
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 909
    +            num_resource: 627
    +            type: 1805
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 1024
    +            type: 1807
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 4096
    +            num_resource: 29
    +            type: 1808
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 4608
    +            num_resource: 99
    +            type: 1809
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 5120
    +            num_resource: 24
    +            type: 1810
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 5632
    +            num_resource: 51
    +            type: 1811
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 6144
    +            num_resource: 51
    +            type: 1812
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 6656
    +            num_resource: 51
    +            type: 1813
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 8192
    +            num_resource: 32
    +            type: 1814
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 8704
    +            num_resource: 32
    +            type: 1815
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 9216
    +            num_resource: 32
    +            type: 1816
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 9728
    +            num_resource: 22
    +            type: 1817
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 10240
    +            num_resource: 22
    +            type: 1818
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 10752
    +            num_resource: 22
    +            type: 1819
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 11264
    +            num_resource: 28
    +            type: 1820
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 11776
    +            num_resource: 28
    +            type: 1821
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 12288
    +            num_resource: 28
    +            type: 1822
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 1
    +            type: 1923
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 10
    +            type: 1936
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 10
    +            num_resource: 3
    +            type: 1936
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 10
    +            num_resource: 3
    +            type: 1936
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 13
    +            num_resource: 3
    +            type: 1936
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 16
    +            num_resource: 3
    +            type: 1936
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 19
    +            num_resource: 64
    +            type: 1937
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 19
    +            num_resource: 64
    +            type: 1937
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 83
    +            num_resource: 8
    +            type: 1938
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 91
    +            num_resource: 8
    +            type: 1939
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 99
    +            num_resource: 10
    +            type: 1942
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 109
    +            num_resource: 3
    +            type: 1942
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 109
    +            num_resource: 3
    +            type: 1942
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 112
    +            num_resource: 3
    +            type: 1942
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 115
    +            num_resource: 3
    +            type: 1942
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 118
    +            num_resource: 16
    +            type: 1943
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 118
    +            num_resource: 16
    +            type: 1943
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 134
    +            num_resource: 8
    +            type: 1944
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 134
    +            num_resource: 8
    +            type: 1945
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 142
    +            num_resource: 8
    +            type: 1946
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 142
    +            num_resource: 8
    +            type: 1947
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 10
    +            type: 1955
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 10
    +            num_resource: 3
    +            type: 1955
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 10
    +            num_resource: 3
    +            type: 1955
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 13
    +            num_resource: 3
    +            type: 1955
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 16
    +            num_resource: 3
    +            type: 1955
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 19
    +            num_resource: 8
    +            type: 1956
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 19
    +            num_resource: 8
    +            type: 1956
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 27
    +            num_resource: 1
    +            type: 1957
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 28
    +            num_resource: 1
    +            type: 1958
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 10
    +            type: 1961
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 10
    +            num_resource: 3
    +            type: 1961
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 10
    +            num_resource: 3
    +            type: 1961
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 13
    +            num_resource: 3
    +            type: 1961
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 16
    +            num_resource: 3
    +            type: 1961
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 10
    +            type: 1962
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 10
    +            num_resource: 3
    +            type: 1962
    +            host_id: 35
    +            reserved: 0
    +        -
    +            start_resource: 10
    +            num_resource: 3
    +            type: 1962
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 13
    +            num_resource: 3
    +            type: 1962
    +            host_id: 30
    +            reserved: 0
    +        -
    +            start_resource: 16
    +            num_resource: 3
    +            type: 1962
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 19
    +            num_resource: 1
    +            type: 1963
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 19
    +            num_resource: 1
    +            type: 1963
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 19
    +            num_resource: 16
    +            type: 1964
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 19
    +            num_resource: 16
    +            type: 1964
    +            host_id: 36
    +            reserved: 0
    +        -
    +            start_resource: 20
    +            num_resource: 1
    +            type: 1965
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 35
    +            num_resource: 8
    +            type: 1966
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 21
    +            num_resource: 1
    +            type: 1967
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 35
    +            num_resource: 8
    +            type: 1968
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 22
    +            num_resource: 1
    +            type: 1969
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 43
    +            num_resource: 8
    +            type: 1970
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 23
    +            num_resource: 1
    +            type: 1971
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 43
    +            num_resource: 8
    +            type: 1972
    +            host_id: 12
    +            reserved: 0
    +        -
    +            start_resource: 0
    +            num_resource: 1
    +            type: 2112
    +            host_id: 128
    +            reserved: 0
    +        -
    +            start_resource: 2
    +            num_resource: 2
    +            type: 2122
    +            host_id: 12
    +            reserved: 0
    diff --git a/board/liteon/charge/sec-cfg.yaml b/board/liteon/charge/sec-cfg.yaml
    new file mode 100644
    index 00000000000..088b2dbaf11
    --- /dev/null
    +++ b/board/liteon/charge/sec-cfg.yaml
    @@ -0,0 +1,379 @@
    +# SPDX-License-Identifier: GPL-2.0+
    +# Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
    +#
    +# Security management configuration for AM62
    +#
    +
    +---
    +
    +sec-cfg:
    +    rev:
    +        boardcfg_abi_maj: 0x0
    +        boardcfg_abi_min: 0x1
    +    processor_acl_list:
    +        subhdr:
    +            magic: 0xF1EA
    +            size: 164
    +        proc_acl_entries:
    +            -  # 1
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 2
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 3
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 4
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 5
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 6
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 7
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 8
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 9
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 10
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 11
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 12
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 13
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 14
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 15
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 16
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 17
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 18
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 19
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 20
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 21
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 22
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 23
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 24
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 25
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 26
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 27
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 28
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 29
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 30
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 31
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +            -  # 32
    +                processor_id: 0
    +                proc_access_master: 0
    +                proc_access_secondary: [0, 0, 0]
    +    host_hierarchy:
    +        subhdr:
    +            magic: 0x8D27
    +            size: 68
    +        host_hierarchy_entries:
    +            -  # 1
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 2
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 3
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 4
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 5
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 6
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 7
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 8
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 9
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 10
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 11
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 12
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 13
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 14
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 15
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 16
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 17
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 18
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 19
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 20
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 21
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 22
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 23
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 24
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 25
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 26
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 27
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 28
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 29
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 30
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 31
    +                host_id: 0
    +                supervisor_host_id: 0
    +            -  # 32
    +                host_id: 0
    +                supervisor_host_id: 0
    +    otp_config:
    +        subhdr:
    +            magic: 0x4081
    +            size: 69
    +        write_host_id: 0
    +        otp_entry:
    +            -  # 1
    +                host_id: 0
    +                host_perms: 0
    +            -  # 2
    +                host_id: 0
    +                host_perms: 0
    +            -  # 3
    +                host_id: 0
    +                host_perms: 0
    +            -  # 4
    +                host_id: 0
    +                host_perms: 0
    +            -  # 5
    +                host_id: 0
    +                host_perms: 0
    +            -  # 6
    +                host_id: 0
    +                host_perms: 0
    +            -  # 7
    +                host_id: 0
    +                host_perms: 0
    +            -  # 8
    +                host_id: 0
    +                host_perms: 0
    +            -  # 9
    +                host_id: 0
    +                host_perms: 0
    +            -  # 10
    +                host_id: 0
    +                host_perms: 0
    +            -  # 11
    +                host_id: 0
    +                host_perms: 0
    +            -  # 12
    +                host_id: 0
    +                host_perms: 0
    +            -  # 13
    +                host_id: 0
    +                host_perms: 0
    +            -  # 14
    +                host_id: 0
    +                host_perms: 0
    +            -  # 15
    +                host_id: 0
    +                host_perms: 0
    +            -  # 16
    +                host_id: 0
    +                host_perms: 0
    +            -  # 17
    +                host_id: 0
    +                host_perms: 0
    +            -  # 18
    +                host_id: 0
    +                host_perms: 0
    +            -  # 19
    +                host_id: 0
    +                host_perms: 0
    +            -  # 20
    +                host_id: 0
    +                host_perms: 0
    +            -  # 21
    +                host_id: 0
    +                host_perms: 0
    +            -  # 22
    +                host_id: 0
    +                host_perms: 0
    +            -  # 23
    +                host_id: 0
    +                host_perms: 0
    +            -  # 24
    +                host_id: 0
    +                host_perms: 0
    +            -  # 25
    +                host_id: 0
    +                host_perms: 0
    +            -  # 26
    +                host_id: 0
    +                host_perms: 0
    +            -  # 27
    +                host_id: 0
    +                host_perms: 0
    +            -  # 28
    +                host_id: 0
    +                host_perms: 0
    +            -  # 29
    +                host_id: 0
    +                host_perms: 0
    +            -  # 30
    +                host_id: 0
    +                host_perms: 0
    +            -  # 31
    +                host_id: 0
    +                host_perms: 0
    +            -  # 32
    +                host_id: 0
    +                host_perms: 0
    +    dkek_config:
    +        subhdr:
    +            magic: 0x5170
    +            size: 12
    +        allowed_hosts: [128, 0, 0, 0]
    +        allow_dkek_export_tisci: 0x5A
    +        rsvd: [0, 0, 0]
    +    sa2ul_cfg:
    +        subhdr:
    +            magic: 0x23BE
    +            size: 0
    +        auth_resource_owner: 0
    +        enable_saul_psil_global_config_writes: 0x5A
    +        rsvd: [0, 0]
    +    sec_dbg_config:
    +        subhdr:
    +            magic: 0x42AF
    +            size: 16
    +        allow_jtag_unlock: 0x5A
    +        allow_wildcard_unlock: 0x5A
    +        allowed_debug_level_rsvd: 0
    +        rsvd: 0
    +        min_cert_rev: 0x0
    +        jtag_unlock_hosts: [0, 0, 0, 0]
    +    sec_handover_cfg:
    +        subhdr:
    +            magic: 0x608F
    +            size: 10
    +        handover_msg_sender: 0
    +        handover_to_host_id: 0
    +        rsvd: [0, 0, 0, 0]
    diff --git a/board/liteon/common/Kconfig b/board/liteon/common/Kconfig
    new file mode 100644
    index 00000000000..de44e4de211
    --- /dev/null
    +++ b/board/liteon/common/Kconfig
    @@ -0,0 +1,63 @@
    +config TI_I2C_BOARD_DETECT
    +	bool "Support for Board detection for TI platforms"
    +	help
    +	   Support for detection board information on Texas Instrument's
    +	   Evaluation Boards which have I2C based EEPROM detection
    +
    +config EEPROM_BUS_ADDRESS
    +	int "Board EEPROM's I2C bus address"
    +	range 0 8
    +	default 0
    +	depends on TI_I2C_BOARD_DETECT
    +
    +config EEPROM_CHIP_ADDRESS
    +	hex "Board EEPROM's I2C chip address"
    +	range 0 0xff
    +	default 0x50
    +	depends on TI_I2C_BOARD_DETECT
    +
    +config CAPE_EEPROM_BUS_NUM
    +	int "Cape EEPROM's I2C bus address"
    +	range 0 8
    +	default 2
    +	depends on CMD_EXTENSION
    +
    +config TI_COMMON_CMD_OPTIONS
    +	bool "Enable cmd options on TI platforms"
    +	imply CMD_ASKENV
    +	imply CMD_BOOTZ
    +	imply CRC32_VERIFY if ARCH_KEYSTONE
    +	imply CMD_DFU if USB_GADGET_DOWNLOAD
    +	imply CMD_DHCP
    +	imply CMD_EEPROM
    +	imply CMD_EXT2
    +	imply CMD_EXT4
    +	imply CMD_EXT4_WRITE
    +	imply CMD_FAT
    +	imply FAT_WRITE if CMD_FAT
    +	imply CMD_FS_GENERIC
    +	imply CMD_GPIO
    +	imply CMD_GPT
    +	imply CMD_I2C
    +	imply CMD_MII
    +	imply CMD_MMC
    +	imply CMD_PART
    +	imply CMD_PING
    +	imply CMD_PMIC if DM_PMIC
    +	imply CMD_REGULATOR if DM_REGULATOR
    +	imply CMD_SF if SPI_FLASH
    +	imply CMD_SPI
    +	imply CMD_TIME
    +	imply CMD_USB if USB
    +
    +config TI_FDT_FOLDER_PATH
    +	string "Location of Folder path where dtb is present"
    +	default "ti/davinci" if ARCH_DAVINCI
    +	default "ti/keystone" if ARCH_KEYSTONE
    +	default "ti/omap" if ARCH_OMAP2PLUS
    +	default "ti" if ARCH_K3
    +	depends on ARCH_DAVINCI || ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_K3
    +	help
    +	   Folder path for kernel device tree default.
    +	   This is used along with fdtfile path to locate the kernel
    +	   device tree blob.
    diff --git a/board/liteon/common/Makefile b/board/liteon/common/Makefile
    new file mode 100644
    index 00000000000..070dec3aebf
    --- /dev/null
    +++ b/board/liteon/common/Makefile
    @@ -0,0 +1,7 @@
    +# SPDX-License-Identifier: GPL-2.0+
    +# Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
    +
    +obj-${CONFIG_TI_I2C_BOARD_DETECT} += board_detect.o
    +obj-${CONFIG_CMD_EXTENSION} += cape_detect.o
    +obj-${CONFIG_OF_LIBFDT} += fdt_ops.o
    +obj-${CONFIG_ARCH_K3} += k3-ddr-init.o
    diff --git a/board/liteon/common/board_detect.c b/board/liteon/common/board_detect.c
    new file mode 100644
    index 00000000000..38e23ccbb67
    --- /dev/null
    +++ b/board/liteon/common/board_detect.c
    @@ -0,0 +1,827 @@
    +// SPDX-License-Identifier: GPL-2.0+
    +/*
    + * Library to support early TI EVM EEPROM handling
    + *
    + * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
    + *	Lokesh Vutla
    + *	Steve Kipisz
    + */
    +
    +#include <common.h>
    +#include <eeprom.h>
    +#include <log.h>
    +#include <net.h>
    +#include <asm/arch/hardware.h>
    +#include <asm/omap_common.h>
    +#include <dm/uclass.h>
    +#include <env.h>
    +#include <i2c.h>
    +#include <mmc.h>
    +#include <errno.h>
    +#include <malloc.h>
    +#include <linux/printk.h>
    +
    +#include "board_detect.h"
    +
    +#if !CONFIG_IS_ENABLED(DM_I2C)
    +/**
    + * ti_i2c_eeprom_init - Initialize an i2c bus and probe for a device
    + * @i2c_bus: i2c bus number to initialize
    + * @dev_addr: Device address to probe for
    + *
    + * Return: 0 on success or corresponding error on failure.
    + */
    +static int __maybe_unused ti_i2c_eeprom_init(int i2c_bus, int dev_addr)
    +{
    +	int rc;
    +
    +	if (i2c_bus >= 0) {
    +		rc = i2c_set_bus_num(i2c_bus);
    +		if (rc)
    +			return rc;
    +	}
    +
    +	return i2c_probe(dev_addr);
    +}
    +
    +/**
    + * ti_i2c_eeprom_read - Read data from an EEPROM
    + * @dev_addr: The device address of the EEPROM
    + * @offset: Offset to start reading in the EEPROM
    + * @ep: Pointer to a buffer to read into
    + * @epsize: Size of buffer
    + *
    + * Return: 0 on success or corresponding result of i2c_read
    + */
    +static int __maybe_unused ti_i2c_eeprom_read(int dev_addr, int offset,
    +					     uchar *ep, int epsize)
    +{
    +	return i2c_read(dev_addr, offset, 2, ep, epsize);
    +}
    +#endif
    +
    +/**
    + * ti_eeprom_string_cleanup() - Handle eeprom programming errors
    + * @s:	eeprom string (should be NULL terminated)
    + *
    + * Some Board manufacturers do not add a NULL termination at the
    + * end of string, instead some binary information is kludged in, hence
    + * convert the string to just printable characters of ASCII chart.
    + */
    +static void __maybe_unused ti_eeprom_string_cleanup(char *s)
    +{
    +	int i, l;
    +
    +	l = strlen(s);
    +	for (i = 0; i < l; i++, s++)
    +		if (*s < ' ' || *s > '~') {
    +			*s = 0;
    +			break;
    +		}
    +}
    +
    +__weak void gpi2c_init(void)
    +{
    +}
    +
    +static int __maybe_unused ti_i2c_eeprom_get(int bus_addr, int dev_addr,
    +					    u32 header, u32 size, uint8_t *ep)
    +{
    +	int rc;
    +	uint8_t offset_test;
    +	bool one_byte_addressing = true;
    +
    +#if CONFIG_IS_ENABLED(DM_I2C)
    +	struct udevice *dev;
    +	struct udevice *bus;
    +
    +	rc = uclass_get_device_by_seq(UCLASS_I2C, bus_addr, &bus);
    +	if (rc)
    +		return rc;
    +	rc = dm_i2c_probe(bus, dev_addr, 0, &dev);
    +	if (rc)
    +		return rc;
    +
    +	/*
    +	 * Read the header first then only read the other contents.
    +	 */
    +	rc = i2c_set_chip_offset_len(dev, 1);
    +	if (rc)
    +		return rc;
    +
    +	/*
    +	 * Skip checking result here since this could be a valid i2c read fail
    +	 * on some boards that use 2 byte addressing.
    +	 * We must allow for fall through to check the data if 2 byte
    +	 * addressing works
    +	 */
    +	(void)dm_i2c_read(dev, 0, ep, size);
    +
    +	if (*((u32 *)ep) != header)
    +		one_byte_addressing = false;
    +
    +	/*
    +	 * Handle case of bad 2 byte eeproms that responds to 1 byte addressing
    +	 * but gets stuck in const addressing when read requests are performed
    +	 * on offsets. We perform an offset test to make sure it is not a 2 byte
    +	 * eeprom that works with 1 byte addressing but just without an offset
    +	 */
    +
    +	rc = dm_i2c_read(dev, 0x1, &offset_test, sizeof(offset_test));
    +
    +	if (offset_test != ((header >> 8) & 0xFF))
    +		one_byte_addressing = false;
    +
    +	/* Corrupted data??? */
    +	if (!one_byte_addressing) {
    +		/*
    +		 * read the eeprom header using i2c again, but use only a
    +		 * 2 byte address (some newer boards need this..)
    +		 */
    +		rc = i2c_set_chip_offset_len(dev, 2);
    +		if (rc)
    +			return rc;
    +
    +		rc = dm_i2c_read(dev, 0, ep, size);
    +		if (rc)
    +			return rc;
    +	}
    +	if (*((u32 *)ep) != header)
    +		return -1;
    +#else
    +	u32 byte;
    +
    +	gpi2c_init();
    +	rc = ti_i2c_eeprom_init(bus_addr, dev_addr);
    +	if (rc)
    +		return rc;
    +
    +	/*
    +	 * Read the header first then only read the other contents.
    +	 */
    +	byte = 1;
    +
    +	/*
    +	 * Skip checking result here since this could be a valid i2c read fail
    +	 * on some boards that use 2 byte addressing.
    +	 * We must allow for fall through to check the data if 2 byte
    +	 * addressing works
    +	 */
    +	(void)i2c_read(dev_addr, 0x0, byte, ep, size);
    +
    +	if (*((u32 *)ep) != header)
    +		one_byte_addressing = false;
    +
    +	/*
    +	 * Handle case of bad 2 byte eeproms that responds to 1 byte addressing
    +	 * but gets stuck in const addressing when read requests are performed
    +	 * on offsets. We perform an offset test to make sure it is not a 2 byte
    +	 * eeprom that works with 1 byte addressing but just without an offset
    +	 */
    +
    +	rc = i2c_read(dev_addr, 0x1, byte, &offset_test, sizeof(offset_test));
    +
    +	if (offset_test != ((header >> 8) & 0xFF))
    +		one_byte_addressing = false;
    +
    +	/* Corrupted data??? */
    +	if (!one_byte_addressing) {
    +		/*
    +		 * read the eeprom header using i2c again, but use only a
    +		 * 2 byte address (some newer boards need this..)
    +		 */
    +		byte = 2;
    +		rc = i2c_read(dev_addr, 0x0, byte, ep, size);
    +		if (rc)
    +			return rc;
    +	}
    +	if (*((u32 *)ep) != header)
    +		return -1;
    +#endif
    +	return 0;
    +}
    +
    +int __maybe_unused ti_emmc_boardid_get(void)
    +{
    +	int rc;
    +	struct udevice *dev;
    +	struct mmc *mmc;
    +	struct ti_common_eeprom *ep;
    +	struct ti_am_eeprom brdid;
    +	struct blk_desc *bdesc;
    +	uchar *buffer;
    +
    +	ep = TI_EEPROM_DATA;
    +	if (ep->header == TI_EEPROM_HEADER_MAGIC)
    +		return 0;       /* EEPROM has already been read */
    +
    +	/* Initialize with a known bad marker for emmc fails.. */
    +	ep->header = TI_DEAD_EEPROM_MAGIC;
    +	ep->name[0] = 0x0;
    +	ep->version[0] = 0x0;
    +	ep->serial[0] = 0x0;
    +	ep->config[0] = 0x0;
    +
    +	/* uclass object initialization */
    +	rc = mmc_initialize(NULL);
    +	if (rc)
    +		return rc;
    +
    +	/* Set device to /dev/mmcblk1 */
    +	rc = uclass_get_device(UCLASS_MMC, 1, &dev);
    +	if (rc)
    +		return rc;
    +
    +	/* Grab the mmc device */
    +	mmc = mmc_get_mmc_dev(dev);
    +	if (!mmc)
    +		return -ENODEV;
    +
    +	/* mmc hardware initialization routine */
    +	mmc_init(mmc);
    +
    +	/* Set partition to /dev/mmcblk1boot1 */
    +	rc = mmc_switch_part(mmc, 2);
    +	if (rc)
    +		return rc;
    +
    +	buffer = malloc(mmc->read_bl_len);
    +	if (!buffer)
    +		return -ENOMEM;
    +
    +	bdesc = mmc_get_blk_desc(mmc);
    +
    +	/* blk_dread returns the number of blocks read*/
    +	if (blk_dread(bdesc, 0L, 1, buffer) != 1) {
    +		rc = -EIO;
    +		goto cleanup;
    +	}
    +
    +	memcpy(&brdid, buffer, sizeof(brdid));
    +
    +	/* Write out the ep struct values */
    +	ep->header = brdid.header;
    +	strlcpy(ep->name, brdid.name, TI_EEPROM_HDR_NAME_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->name);
    +	strlcpy(ep->version, brdid.version, TI_EEPROM_HDR_REV_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->version);
    +	strlcpy(ep->serial, brdid.serial, TI_EEPROM_HDR_SERIAL_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->serial);
    +
    +cleanup:
    +	free(buffer);
    +
    +	return rc;
    +}
    +
    +int __maybe_unused ti_i2c_eeprom_am_set(const char *name, const char *rev)
    +{
    +	struct ti_common_eeprom *ep;
    +
    +	if (!name || !rev)
    +		return -1;
    +
    +	ep = TI_EEPROM_DATA;
    +	if (ep->header == TI_EEPROM_HEADER_MAGIC)
    +		goto already_set;
    +
    +	/* Set to 0 all fields */
    +	memset(ep, 0, sizeof(*ep));
    +	strncpy(ep->name, name, TI_EEPROM_HDR_NAME_LEN);
    +	strncpy(ep->version, rev, TI_EEPROM_HDR_REV_LEN);
    +	/* Some dummy serial number to identify the platform */
    +	strncpy(ep->serial, "0000", TI_EEPROM_HDR_SERIAL_LEN);
    +	/* Mark it with a valid header */
    +	ep->header = TI_EEPROM_HEADER_MAGIC;
    +
    +already_set:
    +	return 0;
    +}
    +
    +int __maybe_unused ti_i2c_eeprom_am_get(int bus_addr, int dev_addr)
    +{
    +	int rc;
    +	struct ti_am_eeprom am_ep;
    +	struct ti_common_eeprom *ep;
    +
    +	ep = TI_EEPROM_DATA;
    +#ifndef CONFIG_SPL_BUILD
    +	if (ep->header == TI_EEPROM_HEADER_MAGIC)
    +		return 0; /* EEPROM has already been read */
    +#endif
    +
    +	/* Initialize with a known bad marker for i2c fails.. */
    +	ep->header = TI_DEAD_EEPROM_MAGIC;
    +	ep->name[0] = 0x0;
    +	ep->version[0] = 0x0;
    +	ep->serial[0] = 0x0;
    +	ep->config[0] = 0x0;
    +
    +	rc = ti_i2c_eeprom_get(bus_addr, dev_addr, TI_EEPROM_HEADER_MAGIC,
    +			       sizeof(am_ep), (uint8_t *)&am_ep);
    +	if (rc)
    +		return rc;
    +
    +	ep->header = am_ep.header;
    +	strlcpy(ep->name, am_ep.name, TI_EEPROM_HDR_NAME_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->name);
    +
    +	/* BeagleBone Green '1' eeprom, board_rev: 0x1a 0x00 0x00 0x00 */
    +	if (am_ep.version[0] == 0x1a && am_ep.version[1] == 0x00 &&
    +	    am_ep.version[2] == 0x00 && am_ep.version[3] == 0x00)
    +		strlcpy(ep->version, "BBG1", TI_EEPROM_HDR_REV_LEN + 1);
    +	else
    +		strlcpy(ep->version, am_ep.version, TI_EEPROM_HDR_REV_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->version);
    +	strlcpy(ep->serial, am_ep.serial, TI_EEPROM_HDR_SERIAL_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->serial);
    +	strlcpy(ep->config, am_ep.config, TI_EEPROM_HDR_CONFIG_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->config);
    +
    +	memcpy(ep->mac_addr, am_ep.mac_addr,
    +	       TI_EEPROM_HDR_NO_OF_MAC_ADDR * TI_EEPROM_HDR_ETH_ALEN);
    +
    +	return 0;
    +}
    +
    +int __maybe_unused ti_i2c_eeprom_dra7_get(int bus_addr, int dev_addr)
    +{
    +	int rc, offset = 0;
    +	struct dra7_eeprom dra7_ep;
    +	struct ti_common_eeprom *ep;
    +
    +	ep = TI_EEPROM_DATA;
    +#ifndef CONFIG_SPL_BUILD
    +	if (ep->header == DRA7_EEPROM_HEADER_MAGIC)
    +		return 0; /* EEPROM has already been read */
    +#endif
    +
    +	/* Initialize with a known bad marker for i2c fails.. */
    +	ep->header = TI_DEAD_EEPROM_MAGIC;
    +	ep->name[0] = 0x0;
    +	ep->version[0] = 0x0;
    +	ep->serial[0] = 0x0;
    +	ep->config[0] = 0x0;
    +	ep->emif1_size = 0;
    +	ep->emif2_size = 0;
    +
    +	rc = ti_i2c_eeprom_get(bus_addr, dev_addr, DRA7_EEPROM_HEADER_MAGIC,
    +			       sizeof(dra7_ep), (uint8_t *)&dra7_ep);
    +	if (rc)
    +		return rc;
    +
    +	ep->header = dra7_ep.header;
    +	strlcpy(ep->name, dra7_ep.name, TI_EEPROM_HDR_NAME_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->name);
    +
    +	offset = dra7_ep.version_major - 1;
    +
    +	/* Rev F is skipped */
    +	if (offset >= 5)
    +		offset = offset + 1;
    +	snprintf(ep->version, TI_EEPROM_HDR_REV_LEN + 1, "%c.%d",
    +		 'A' + offset, dra7_ep.version_minor);
    +	ti_eeprom_string_cleanup(ep->version);
    +	ep->emif1_size = (u64)dra7_ep.emif1_size;
    +	ep->emif2_size = (u64)dra7_ep.emif2_size;
    +	strlcpy(ep->config, dra7_ep.config, TI_EEPROM_HDR_CONFIG_LEN + 1);
    +	ti_eeprom_string_cleanup(ep->config);
    +
    +	return 0;
    +}
    +
    +static int ti_i2c_eeprom_am6_parse_record(struct ti_am6_eeprom_record *record,
    +					  struct ti_am6_eeprom *ep,
    +					  char **mac_addr,
    +					  u8 mac_addr_max_cnt,
    +					  u8 *mac_addr_cnt)
    +{
    +	switch (record->header.id) {
    +	case TI_AM6_EEPROM_RECORD_BOARD_INFO:
    +		if (record->header.len != sizeof(record->data.board_info))
    +			return -EINVAL;
    +
    +		if (!ep)
    +			break;
    +
    +		/* Populate (and clean, if needed) the board name */
    +		strlcpy(ep->name, record->data.board_info.name,
    +			sizeof(ep->name));
    +		ti_eeprom_string_cleanup(ep->name);
    +
    +		/* Populate selected other fields from the board info record */
    +		strlcpy(ep->version, record->data.board_info.version,
    +			sizeof(ep->version));
    +		strlcpy(ep->software_revision,
    +			record->data.board_info.software_revision,
    +			sizeof(ep->software_revision));
    +		strlcpy(ep->serial, record->data.board_info.serial,
    +			sizeof(ep->serial));
    +		break;
    +	case TI_AM6_EEPROM_RECORD_MAC_INFO:
    +		if (record->header.len != sizeof(record->data.mac_info))
    +			return -EINVAL;
    +
    +		if (!mac_addr || !mac_addr_max_cnt)
    +			break;
    +
    +		*mac_addr_cnt = ((record->data.mac_info.mac_control &
    +				 TI_AM6_EEPROM_MAC_ADDR_COUNT_MASK) >>
    +				 TI_AM6_EEPROM_MAC_ADDR_COUNT_SHIFT) + 1;
    +
    +		/*
    +		 * The EEPROM can (but may not) hold a very large amount
    +		 * of MAC addresses, by far exceeding what we want/can store
    +		 * in the common memory array, so only grab what we can fit.
    +		 * Note that a value of 0 means 1 MAC address, and so on.
    +		 */
    +		*mac_addr_cnt = min(*mac_addr_cnt, mac_addr_max_cnt);
    +
    +		memcpy(mac_addr, record->data.mac_info.mac_addr,
    +		       *mac_addr_cnt * TI_EEPROM_HDR_ETH_ALEN);
    +		break;
    +	case 0x00:
    +		/* Illegal value... Fall through... */
    +	case 0xFF:
    +		/* Illegal value... Something went horribly wrong... */
    +		return -EINVAL;
    +	default:
    +		pr_warn("%s: Ignoring record id %u\n", __func__,
    +			record->header.id);
    +	}
    +
    +	return 0;
    +}
    +
    +int __maybe_unused ti_i2c_eeprom_am6_get(int bus_addr, int dev_addr,
    +					 struct ti_am6_eeprom *ep,
    +					 char **mac_addr,
    +					 u8 mac_addr_max_cnt,
    +					 u8 *mac_addr_cnt)
    +{
    +	struct udevice *dev;
    +	struct udevice *bus;
    +	unsigned int eeprom_addr;
    +	struct ti_am6_eeprom_record_board_id board_id;
    +	struct ti_am6_eeprom_record record;
    +	int rc;
    +	int consecutive_bad_records = 0;
    +
    +	/* Initialize with a known bad marker for i2c fails.. */
    +	memset(ep, 0, sizeof(*ep));
    +	ep->header = TI_DEAD_EEPROM_MAGIC;
    +
    +	/* Read the board ID record which is always the first EEPROM record */
    +	rc = ti_i2c_eeprom_get(bus_addr, dev_addr, TI_EEPROM_HEADER_MAGIC,
    +			       sizeof(board_id), (uint8_t *)&board_id);
    +	if (rc)
    +		return rc;
    +
    +	if (board_id.header.id != TI_AM6_EEPROM_RECORD_BOARD_ID) {
    +		pr_err("%s: Invalid board ID record!\n", __func__);
    +		return -EINVAL;
    +	}
    +
    +	/* Establish DM handle to board config EEPROM */
    +	rc = uclass_get_device_by_seq(UCLASS_I2C, bus_addr, &bus);
    +	if (rc)
    +		return rc;
    +	rc = i2c_get_chip(bus, dev_addr, 1, &dev);
    +	if (rc)
    +		return rc;
    +
    +	ep->header = TI_EEPROM_HEADER_MAGIC;
    +
    +	/* Ready to parse TLV structure. Initialize variables... */
    +	*mac_addr_cnt = 0;
    +
    +	/*
    +	 * After the all-encompassing board ID record all other records follow
    +	 * a TLV-type scheme. Point to the first such record and then start
    +	 * parsing those one by one.
    +	 */
    +	eeprom_addr = sizeof(board_id);
    +
    +	while (consecutive_bad_records < 10) {
    +		rc = dm_i2c_read(dev, eeprom_addr, (uint8_t *)&record.header,
    +				 sizeof(record.header));
    +		if (rc)
    +			return rc;
    +
    +		/*
    +		 * Check for end of list marker. If we reached it don't go
    +		 * any further and stop parsing right here.
    +		 */
    +		if (record.header.id == TI_AM6_EEPROM_RECORD_END_LIST)
    +			break;
    +
    +		eeprom_addr += sizeof(record.header);
    +
    +		debug("%s: dev_addr=0x%02x header.id=%u header.len=%u\n",
    +		      __func__, dev_addr, record.header.id,
    +		      record.header.len);
    +
    +		/* Read record into memory if it fits */
    +		if (record.header.len <= sizeof(record.data)) {
    +			rc = dm_i2c_read(dev, eeprom_addr,
    +					 (uint8_t *)&record.data,
    +					 record.header.len);
    +			if (rc)
    +				return rc;
    +
    +			/* Process record */
    +			rc = ti_i2c_eeprom_am6_parse_record(&record, ep,
    +							    mac_addr,
    +							    mac_addr_max_cnt,
    +							    mac_addr_cnt);
    +			if (rc) {
    +				pr_err("%s: EEPROM parsing error!\n", __func__);
    +				return rc;
    +			}
    +			consecutive_bad_records = 0;
    +		} else {
    +			/*
    +			 * We may get here in case of larger records which
    +			 * are not yet understood.
    +			 */
    +			pr_err("%s: Ignoring record id %u\n", __func__,
    +			       record.header.id);
    +			consecutive_bad_records++;
    +		}
    +
    +		eeprom_addr += record.header.len;
    +	}
    +
    +	return 0;
    +}
    +
    +int __maybe_unused ti_i2c_eeprom_am6_get_base(int bus_addr, int dev_addr)
    +{
    +	struct ti_am6_eeprom *ep = TI_AM6_EEPROM_DATA;
    +	int ret;
    +
    +	/*
    +	 * Always execute EEPROM read by not allowing to bypass it during the
    +	 * first invocation of SPL which happens on the R5 core.
    +	 */
    +#if !(defined(CONFIG_SPL_BUILD) && defined(CONFIG_CPU_V7R))
    +	if (ep->header == TI_EEPROM_HEADER_MAGIC) {
    +		debug("%s: EEPROM has already been read\n", __func__);
    +		return 0;
    +	}
    +#endif
    +
    +	ret = ti_i2c_eeprom_am6_get(bus_addr, dev_addr, ep,
    +				    (char **)ep->mac_addr,
    +				    AM6_EEPROM_HDR_NO_OF_MAC_ADDR,
    +				    &ep->mac_addr_cnt);
    +	return ret;
    +}
    +
    +bool __maybe_unused board_ti_k3_is(char *name_tag)
    +{
    +	struct ti_am6_eeprom *ep = TI_AM6_EEPROM_DATA;
    +
    +	if (ep->header == TI_DEAD_EEPROM_MAGIC)
    +		return false;
    +	return !strncmp(ep->name, name_tag, AM6_EEPROM_HDR_NAME_LEN);
    +}
    +
    +bool __maybe_unused board_ti_is(char *name_tag)
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	if (ep->header == TI_DEAD_EEPROM_MAGIC)
    +		return false;
    +	return !strncmp(ep->name, name_tag, TI_EEPROM_HDR_NAME_LEN);
    +}
    +
    +bool __maybe_unused board_ti_rev_is(char *rev_tag, int cmp_len)
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +	int l;
    +
    +	if (ep->header == TI_DEAD_EEPROM_MAGIC)
    +		return false;
    +
    +	l = cmp_len > TI_EEPROM_HDR_REV_LEN ? TI_EEPROM_HDR_REV_LEN : cmp_len;
    +	return !strncmp(ep->version, rev_tag, l);
    +}
    +
    +char * __maybe_unused board_ti_get_rev(void)
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	/* if ep->header == TI_DEAD_EEPROM_MAGIC, this is empty already */
    +	return ep->version;
    +}
    +
    +char * __maybe_unused board_ti_get_config(void)
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	/* if ep->header == TI_DEAD_EEPROM_MAGIC, this is empty already */
    +	return ep->config;
    +}
    +
    +char * __maybe_unused board_ti_get_name(void)
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	/* if ep->header == TI_DEAD_EEPROM_MAGIC, this is empty already */
    +	return ep->name;
    +}
    +
    +void __maybe_unused
    +board_ti_get_eth_mac_addr(int index,
    +			  u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN])
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	if (ep->header == TI_DEAD_EEPROM_MAGIC)
    +		goto fail;
    +
    +	if (index < 0 || index >= TI_EEPROM_HDR_NO_OF_MAC_ADDR)
    +		goto fail;
    +
    +	memcpy(mac_addr, ep->mac_addr[index], TI_EEPROM_HDR_ETH_ALEN);
    +	return;
    +
    +fail:
    +	memset(mac_addr, 0, TI_EEPROM_HDR_ETH_ALEN);
    +}
    +
    +void __maybe_unused
    +board_ti_am6_get_eth_mac_addr(int index,
    +			      u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN])
    +{
    +	struct ti_am6_eeprom *ep = TI_AM6_EEPROM_DATA;
    +
    +	if (ep->header == TI_DEAD_EEPROM_MAGIC)
    +		goto fail;
    +
    +	if (index < 0 || index >= ep->mac_addr_cnt)
    +		goto fail;
    +
    +	memcpy(mac_addr, ep->mac_addr[index], TI_EEPROM_HDR_ETH_ALEN);
    +	return;
    +
    +fail:
    +	memset(mac_addr, 0, TI_EEPROM_HDR_ETH_ALEN);
    +}
    +
    +u64 __maybe_unused board_ti_get_emif1_size(void)
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	if (ep->header != DRA7_EEPROM_HEADER_MAGIC)
    +		return 0;
    +
    +	return ep->emif1_size;
    +}
    +
    +u64 __maybe_unused board_ti_get_emif2_size(void)
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	if (ep->header != DRA7_EEPROM_HEADER_MAGIC)
    +		return 0;
    +
    +	return ep->emif2_size;
    +}
    +
    +void __maybe_unused set_board_info_env(char *name)
    +{
    +	char *unknown = "unknown";
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	if (name)
    +		env_set("board_name", name);
    +	else if (strlen(ep->name) != 0)
    +		env_set("board_name", ep->name);
    +	else
    +		env_set("board_name", unknown);
    +
    +	if (strlen(ep->version) != 0)
    +		env_set("board_rev", ep->version);
    +	else
    +		env_set("board_rev", unknown);
    +
    +	if (strlen(ep->serial) != 0)
    +		env_set("board_serial", ep->serial);
    +	else
    +		env_set("board_serial", unknown);
    +}
    +
    +void __maybe_unused set_board_info_env_am6(char *name)
    +{
    +	char *unknown = "unknown";
    +	struct ti_am6_eeprom *ep = TI_AM6_EEPROM_DATA;
    +
    +	if (name)
    +		env_set("board_name", name);
    +	else if (strlen(ep->name) != 0)
    +		env_set("board_name", ep->name);
    +	else
    +		env_set("board_name", unknown);
    +
    +	if (strlen(ep->version) != 0)
    +		env_set("board_rev", ep->version);
    +	else
    +		env_set("board_rev", unknown);
    +
    +	if (strlen(ep->software_revision) != 0)
    +		env_set("board_software_revision", ep->software_revision);
    +	else
    +		env_set("board_software_revision", unknown);
    +
    +	if (strlen(ep->serial) != 0)
    +		env_set("board_serial", ep->serial);
    +	else
    +		env_set("board_serial", unknown);
    +}
    +
    +static u64 mac_to_u64(u8 mac[6])
    +{
    +	int i;
    +	u64 addr = 0;
    +
    +	for (i = 0; i < 6; i++) {
    +		addr <<= 8;
    +		addr |= mac[i];
    +	}
    +
    +	return addr;
    +}
    +
    +static void u64_to_mac(u64 addr, u8 mac[6])
    +{
    +	mac[5] = addr;
    +	mac[4] = addr >> 8;
    +	mac[3] = addr >> 16;
    +	mac[2] = addr >> 24;
    +	mac[1] = addr >> 32;
    +	mac[0] = addr >> 40;
    +}
    +
    +void board_ti_set_ethaddr(int index)
    +{
    +	uint8_t mac_addr[6];
    +	int i;
    +	u64 mac1, mac2;
    +	u8 mac_addr1[6], mac_addr2[6];
    +	int num_macs;
    +	/*
    +	 * Export any Ethernet MAC addresses from EEPROM.
    +	 * The 2 MAC addresses in EEPROM define the address range.
    +	 */
    +	board_ti_get_eth_mac_addr(0, mac_addr1);
    +	board_ti_get_eth_mac_addr(1, mac_addr2);
    +
    +	if (is_valid_ethaddr(mac_addr1) && is_valid_ethaddr(mac_addr2)) {
    +		mac1 = mac_to_u64(mac_addr1);
    +		mac2 = mac_to_u64(mac_addr2);
    +
    +		/* must contain an address range */
    +		num_macs = mac2 - mac1 + 1;
    +		if (num_macs <= 0)
    +			return;
    +
    +		if (num_macs > 50) {
    +			printf("%s: Too many MAC addresses: %d. Limiting to 50\n",
    +			       __func__, num_macs);
    +			num_macs = 50;
    +		}
    +
    +		for (i = 0; i < num_macs; i++) {
    +			u64_to_mac(mac1 + i, mac_addr);
    +			if (is_valid_ethaddr(mac_addr)) {
    +				eth_env_set_enetaddr_by_index("eth", i + index,
    +							      mac_addr);
    +			}
    +		}
    +	}
    +}
    +
    +void board_ti_am6_set_ethaddr(int index, int count)
    +{
    +	u8 mac_addr[6];
    +	int i;
    +
    +	for (i = 0; i < count; i++) {
    +		board_ti_am6_get_eth_mac_addr(i, mac_addr);
    +		if (is_valid_ethaddr(mac_addr))
    +			eth_env_set_enetaddr_by_index("eth", i + index,
    +						      mac_addr);
    +	}
    +}
    +
    +bool __maybe_unused board_ti_was_eeprom_read(void)
    +{
    +	struct ti_common_eeprom *ep = TI_EEPROM_DATA;
    +
    +	if (ep->header == TI_EEPROM_HEADER_MAGIC)
    +		return true;
    +	else
    +		return false;
    +}
    diff --git a/board/liteon/common/board_detect.h b/board/liteon/common/board_detect.h
    new file mode 100644
    index 00000000000..ca1aa80f2f0
    --- /dev/null
    +++ b/board/liteon/common/board_detect.h
    @@ -0,0 +1,471 @@
    +/* SPDX-License-Identifier: GPL-2.0+ */
    +/*
    + * Library to support early TI EVM EEPROM handling
    + *
    + * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com
    + */
    +
    +#ifndef __BOARD_DETECT_H
    +#define __BOARD_DETECT_H
    +
    +/* TI EEPROM MAGIC Header identifier */
    +#include <linux/bitops.h>
    +#define TI_EEPROM_HEADER_MAGIC	0xEE3355AA
    +#define TI_DEAD_EEPROM_MAGIC	0xADEAD12C
    +
    +#define TI_EEPROM_HDR_NAME_LEN		8
    +#define TI_EEPROM_HDR_REV_LEN		4
    +#define TI_EEPROM_HDR_SERIAL_LEN	12
    +#define TI_EEPROM_HDR_CONFIG_LEN	32
    +#define TI_EEPROM_HDR_NO_OF_MAC_ADDR	3
    +#define TI_EEPROM_HDR_ETH_ALEN		6
    +
    +/**
    + * struct ti_am_eeprom - This structure holds data read in from the
    + *                     AM335x, AM437x, AM57xx TI EVM EEPROMs.
    + * @header: This holds the magic number
    + * @name: The name of the board
    + * @version: Board revision
    + * @serial: Board serial number
    + * @config: Reserved
    + * @mac_addr: Any MAC addresses written in the EEPROM
    + *
    + * The data is this structure is read from the EEPROM on the board.
    + * It is used for board detection which is based on name. It is used
    + * to configure specific TI boards. This allows booting of multiple
    + * TI boards with a single MLO and u-boot.
    + */
    +struct ti_am_eeprom {
    +	unsigned int header;
    +	char name[TI_EEPROM_HDR_NAME_LEN];
    +	char version[TI_EEPROM_HDR_REV_LEN];
    +	char serial[TI_EEPROM_HDR_SERIAL_LEN];
    +	char config[TI_EEPROM_HDR_CONFIG_LEN];
    +	char mac_addr[TI_EEPROM_HDR_NO_OF_MAC_ADDR][TI_EEPROM_HDR_ETH_ALEN];
    +} __attribute__ ((__packed__));
    +
    +/* AM6x TI EVM EEPROM Definitions */
    +#define TI_AM6_EEPROM_RECORD_BOARD_ID		0x01
    +#define TI_AM6_EEPROM_RECORD_BOARD_INFO		0x10
    +#define TI_AM6_EEPROM_RECORD_DDR_INFO		0x11
    +#define TI_AM6_EEPROM_RECORD_DDR_SPD		0x12
    +#define TI_AM6_EEPROM_RECORD_MAC_INFO		0x13
    +#define TI_AM6_EEPROM_RECORD_END_LIST		0xFE
    +
    +/*
    + * Common header for AM6x TI EVM EEPROM records. Used to encapsulate the config
    + * EEPROM in its entirety as well as for individual records contained within.
    + */
    +struct ti_am6_eeprom_record_header {
    +	u8 id;
    +	u16 len;
    +} __attribute__ ((__packed__));
    +
    +/* AM6x TI EVM EEPROM board ID structure */
    +struct ti_am6_eeprom_record_board_id {
    +	u32 magic_number;
    +	struct ti_am6_eeprom_record_header header;
    +} __attribute__ ((__packed__));
    +
    +/* AM6x TI EVM EEPROM board info structure */
    +#define AM6_EEPROM_HDR_NAME_LEN			16
    +#define AM6_EEPROM_HDR_VERSION_LEN		2
    +#define AM6_EEPROM_HDR_PROC_NR_LEN		4
    +#define AM6_EEPROM_HDR_VARIANT_LEN		2
    +#define AM6_EEPROM_HDR_PCB_REV_LEN		2
    +#define AM6_EEPROM_HDR_SCH_BOM_REV_LEN		2
    +#define AM6_EEPROM_HDR_SW_REV_LEN		2
    +#define AM6_EEPROM_HDR_VID_LEN			2
    +#define AM6_EEPROM_HDR_BLD_WK_LEN		2
    +#define AM6_EEPROM_HDR_BLD_YR_LEN		2
    +#define AM6_EEPROM_HDR_4P_NR_LEN		6
    +#define AM6_EEPROM_HDR_SERIAL_LEN		4
    +
    +struct ti_am6_eeprom_record_board_info {
    +	char name[AM6_EEPROM_HDR_NAME_LEN];
    +	char version[AM6_EEPROM_HDR_VERSION_LEN];
    +	char proc_number[AM6_EEPROM_HDR_PROC_NR_LEN];
    +	char variant[AM6_EEPROM_HDR_VARIANT_LEN];
    +	char pcb_revision[AM6_EEPROM_HDR_PCB_REV_LEN];
    +	char schematic_bom_revision[AM6_EEPROM_HDR_SCH_BOM_REV_LEN];
    +	char software_revision[AM6_EEPROM_HDR_SW_REV_LEN];
    +	char vendor_id[AM6_EEPROM_HDR_VID_LEN];
    +	char build_week[AM6_EEPROM_HDR_BLD_WK_LEN];
    +	char build_year[AM6_EEPROM_HDR_BLD_YR_LEN];
    +	char board_4p_number[AM6_EEPROM_HDR_4P_NR_LEN];
    +	char serial[AM6_EEPROM_HDR_SERIAL_LEN];
    +} __attribute__ ((__packed__));
    +
    +/* Memory location to keep a copy of the AM6 board info record */
    +#define TI_AM6_EEPROM_BD_INFO_DATA ((struct ti_am6_eeprom_record_board_info *) \
    +					     TI_SRAM_SCRATCH_BOARD_EEPROM_START)
    +
    +/* AM6x TI EVM EEPROM DDR info structure */
    +#define TI_AM6_EEPROM_DDR_CTRL_INSTANCE_MASK		GENMASK(1, 0)
    +#define TI_AM6_EEPROM_DDR_CTRL_INSTANCE_SHIFT		0
    +#define TI_AM6_EEPROM_DDR_CTRL_SPD_DATA_LOC_MASK	GENMASK(3, 2)
    +#define TI_AM6_EEPROM_DDR_CTRL_SPD_DATA_LOC_NA		(0 << 2)
    +#define TI_AM6_EEPROM_DDR_CTRL_SPD_DATA_LOC_BOARDID	(2 << 2)
    +#define TI_AM6_EEPROM_DDR_CTRL_SPD_DATA_LOC_I2C51	(3 << 2)
    +#define TI_AM6_EEPROM_DDR_CTRL_MEM_TYPE_MASK		GENMASK(5, 4)
    +#define TI_AM6_EEPROM_DDR_CTRL_MEM_TYPE_DDR3		(0 << 4)
    +#define TI_AM6_EEPROM_DDR_CTRL_MEM_TYPE_DDR4		(1 << 4)
    +#define TI_AM6_EEPROM_DDR_CTRL_MEM_TYPE_LPDDR4		(2 << 4)
    +#define TI_AM6_EEPROM_DDR_CTRL_IF_DATA_WIDTH_MASK	GENMASK(7, 6)
    +#define TI_AM6_EEPROM_DDR_CTRL_IF_DATA_WIDTH_16		(0 << 6)
    +#define TI_AM6_EEPROM_DDR_CTRL_IF_DATA_WIDTH_32		(1 << 6)
    +#define TI_AM6_EEPROM_DDR_CTRL_IF_DATA_WIDTH_64		(2 << 6)
    +#define TI_AM6_EEPROM_DDR_CTRL_DEV_DATA_WIDTH_MASK	GENMASK(9, 8)
    +#define TI_AM6_EEPROM_DDR_CTRL_DEV_DATA_WIDTH_8		(0 << 8)
    +#define TI_AM6_EEPROM_DDR_CTRL_DEV_DATA_WIDTH_16	(1 << 8)
    +#define TI_AM6_EEPROM_DDR_CTRL_DEV_DATA_WIDTH_32	(2 << 8)
    +#define TI_AM6_EEPROM_DDR_CTRL_RANKS_2			BIT(10)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_MASK		GENMASK(13, 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_1GB			(0 << 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_2GB			(1 << 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_4GB			(2 << 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_8GB			(3 << 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_12GB		(4 << 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_16GB		(5 << 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_24GB		(6 << 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_DENS_32GB		(7 << 11)
    +#define TI_AM6_EEPROM_DDR_CTRL_ECC			BIT(14)
    +
    +struct ti_am6_eeprom_record_ddr_info {
    +	u16 ddr_control;
    +} __attribute__ ((__packed__));
    +
    +/* AM6x TI EVM EEPROM DDR SPD structure */
    +#define TI_AM6_EEPROM_DDR_SPD_INSTANCE_MASK		GENMASK(1, 0)
    +#define TI_AM6_EEPROM_DDR_SPD_INSTANCE_SHIFT		0
    +#define TI_AM6_EEPROM_DDR_SPD_MEM_TYPE_MASK		GENMASK(4, 3)
    +#define TI_AM6_EEPROM_DDR_SPD_MEM_TYPE_DDR3		(0 << 3)
    +#define TI_AM6_EEPROM_DDR_SPD_MEM_TYPE_DDR4		(1 << 3)
    +#define TI_AM6_EEPROM_DDR_SPD_MEM_TYPE_LPDDR4		(2 << 3)
    +#define TI_AM6_EEPROM_DDR_SPD_DATA_LEN			512
    +
    +struct ti_am6_eeprom_record_ddr_spd {
    +	u16 spd_control;
    +	u8 data[TI_AM6_EEPROM_DDR_SPD_DATA_LEN];
    +} __attribute__ ((__packed__));
    +
    +/* AM6x TI EVM EEPROM MAC info structure */
    +#define TI_AM6_EEPROM_MAC_INFO_INSTANCE_MASK		GENMASK(2, 0)
    +#define TI_AM6_EEPROM_MAC_INFO_INSTANCE_SHIFT		0
    +#define TI_AM6_EEPROM_MAC_ADDR_COUNT_MASK		GENMASK(7, 3)
    +#define TI_AM6_EEPROM_MAC_ADDR_COUNT_SHIFT		3
    +#define TI_AM6_EEPROM_MAC_ADDR_MAX_COUNT		32
    +
    +struct ti_am6_eeprom_record_mac_info {
    +	u16 mac_control;
    +	u8 mac_addr[TI_AM6_EEPROM_MAC_ADDR_MAX_COUNT][TI_EEPROM_HDR_ETH_ALEN];
    +} __attribute__ ((__packed__));
    +
    +struct ti_am6_eeprom_record {
    +	struct ti_am6_eeprom_record_header header;
    +	union {
    +		struct ti_am6_eeprom_record_board_info board_info;
    +		struct ti_am6_eeprom_record_ddr_info ddr_info;
    +		struct ti_am6_eeprom_record_ddr_spd ddr_spd;
    +		struct ti_am6_eeprom_record_mac_info mac_info;
    +	} data;
    +} __attribute__ ((__packed__));
    +
    +/* DRA7 EEPROM MAGIC Header identifier */
    +#define DRA7_EEPROM_HEADER_MAGIC	0xAA5533EE
    +#define DRA7_EEPROM_HDR_NAME_LEN	16
    +#define DRA7_EEPROM_HDR_CONFIG_LEN	4
    +
    +/**
    + * struct dra7_eeprom - This structure holds data read in from the DRA7 EVM
    + *			EEPROMs.
    + * @header: This holds the magic number
    + * @name: The name of the board
    + * @version_major: Board major version
    + * @version_minor: Board minor version
    + * @config: Board specific config options
    + * @emif1_size: Size of DDR attached to EMIF1
    + * @emif2_size: Size of DDR attached to EMIF2
    + *
    + * The data is this structure is read from the EEPROM on the board.
    + * It is used for board detection which is based on name. It is used
    + * to configure specific DRA7 boards. This allows booting of multiple
    + * DRA7 boards with a single MLO and u-boot.
    + */
    +struct dra7_eeprom {
    +	u32 header;
    +	char name[DRA7_EEPROM_HDR_NAME_LEN];
    +	u16 version_major;
    +	u16 version_minor;
    +	char config[DRA7_EEPROM_HDR_CONFIG_LEN];
    +	u32 emif1_size;
    +	u32 emif2_size;
    +} __attribute__ ((__packed__));
    +
    +/**
    + * struct ti_common_eeprom - Null terminated, usable EEPROM contents.
    + * header:	Magic number
    + * @name:	NULL terminated name
    + * @version:	NULL terminated version
    + * @serial:	NULL terminated serial number
    + * @config:	NULL terminated Board specific config options
    + * @mac_addr:	MAC addresses
    + * @emif1_size:	Size of the ddr available on emif1
    + * @emif2_size:	Size of the ddr available on emif2
    + */
    +struct ti_common_eeprom {
    +	u32 header;
    +	char name[TI_EEPROM_HDR_NAME_LEN + 1];
    +	char version[TI_EEPROM_HDR_REV_LEN + 1];
    +	char serial[TI_EEPROM_HDR_SERIAL_LEN + 1];
    +	char config[TI_EEPROM_HDR_CONFIG_LEN + 1];
    +	char mac_addr[TI_EEPROM_HDR_NO_OF_MAC_ADDR][TI_EEPROM_HDR_ETH_ALEN];
    +	u64 emif1_size;
    +	u64 emif2_size;
    +};
    +
    +#define TI_EEPROM_DATA ((struct ti_common_eeprom *)\
    +				TI_SRAM_SCRATCH_BOARD_EEPROM_START)
    +
    +/*
    + * Maximum number of Ethernet MAC addresses extracted from the AM6x on-board
    + * EEPROM during the initial probe and carried forward in SRAM.
    + */
    +#define AM6_EEPROM_HDR_NO_OF_MAC_ADDR	8
    +
    +/**
    + * struct ti_am6_eeprom - Null terminated, usable EEPROM contents, as extracted
    + *	from the AM6 on-board EEPROM. Note that we only carry a subset of data
    + *	at this time to be considerate about memory consumption.
    + * @header:		Magic number for data validity indication
    + * @name:		NULL terminated name
    + * @version:		NULL terminated version
    + * @software_revision:	NULL terminated software revision
    + * @serial:		Board serial number
    + * @mac_addr_cnt:	Number of MAC addresses stored in this object
    + * @mac_addr:		MAC addresses
    + */
    +struct ti_am6_eeprom {
    +	u32 header;
    +	char name[AM6_EEPROM_HDR_NAME_LEN + 1];
    +	char version[AM6_EEPROM_HDR_VERSION_LEN + 1];
    +	char software_revision[AM6_EEPROM_HDR_SW_REV_LEN + 1];
    +	char serial[AM6_EEPROM_HDR_SERIAL_LEN + 1];
    +	u8 mac_addr_cnt;
    +	char mac_addr[AM6_EEPROM_HDR_NO_OF_MAC_ADDR][TI_EEPROM_HDR_ETH_ALEN];
    +};
    +
    +#define TI_AM6_EEPROM_DATA ((struct ti_am6_eeprom *) \
    +				TI_SRAM_SCRATCH_BOARD_EEPROM_START)
    +
    +/**
    + * ti_i2c_eeprom_am_get() - Consolidated eeprom data collection for AM* TI EVMs
    + * @bus_addr:	I2C bus address
    + * @dev_addr:	I2C slave address
    + *
    + * ep in SRAM is populated by the this AM generic function that consolidates
    + * the basic initialization logic common across all AM* platforms.
    + */
    +int ti_i2c_eeprom_am_get(int bus_addr, int dev_addr);
    +
    +/**
    + * ti_emmc_boardid_get() - Fetch board ID information from eMMC
    + *
    + * ep in SRAM is populated by the this function that is currently
    + * based on BeagleBone AI, but could be made more general across AM*
    + * platforms.
    + */
    +int __maybe_unused ti_emmc_boardid_get(void);
    +
    +/**
    + * ti_i2c_eeprom_dra7_get() - Consolidated eeprom data for DRA7 TI EVMs
    + * @bus_addr:	I2C bus address
    + * @dev_addr:	I2C slave address
    + */
    +int ti_i2c_eeprom_dra7_get(int bus_addr, int dev_addr);
    +
    +/**
    + * ti_i2c_eeprom_am6_get() - Consolidated eeprom data for AM6x TI EVMs and
    + *			     associated daughter cards, parsed into user-
    + *			     provided data structures
    + * @bus_addr:	I2C bus address
    + * @dev_addr:	I2C slave address
    + * @ep:		Pointer to structure receiving AM6-specific header data
    + * @mac_addr:	Pointer to memory receiving parsed MAC addresses. May be
    + *		NULL to skip MAC parsing.
    + * @mac_addr_max_cnt: Maximum number of MAC addresses that can be stored into
    + *		      mac_addr. May be NULL to skip MAC parsing.
    + * @mac_addr_cnt: Pointer to a location returning how many MAC addressed got
    + *		  actually parsed.
    + */
    +int __maybe_unused ti_i2c_eeprom_am6_get(int bus_addr, int dev_addr,
    +					 struct ti_am6_eeprom *ep,
    +					 char **mac_addr,
    +					 u8 mac_addr_max_cnt,
    +					 u8 *mac_addr_cnt);
    +
    +/**
    + * ti_i2c_eeprom_am6_get_base() - Consolidated eeprom data for AM6x TI EVMs
    + * @bus_addr:	I2C bus address
    + * @dev_addr:	I2C slave address
    + */
    +int __maybe_unused ti_i2c_eeprom_am6_get_base(int bus_addr, int dev_addr);
    +
    +#ifdef CONFIG_TI_I2C_BOARD_DETECT
    +/**
    + * board_ti_is() - Board detection logic for TI EVMs
    + * @name_tag:	Tag used in eeprom for the board
    + *
    + * Return: false if board information does not match OR eeprom wasn't read.
    + *	   true otherwise
    + */
    +bool board_ti_is(char *name_tag);
    +
    +/**
    + * board_ti_k3_is() - Board detection logic for TI K3 EVMs
    + * @name_tag:	Tag used in eeprom for the board
    + *
    + * Return: false if board information does not match OR eeprom wasn't read.
    + *	   true otherwise
    + */
    +bool board_ti_k3_is(char *name_tag);
    +
    +/**
    + * board_ti_rev_is() - Compare board revision for TI EVMs
    + * @rev_tag:	Revision tag to check in eeprom
    + * @cmp_len:	How many chars to compare?
    + *
    + * NOTE: revision information is often messed up (hence the str len match) :(
    + *
    + * Return: false if board information does not match OR eeprom wasn't read.
    + *	   true otherwise
    + */
    +bool board_ti_rev_is(char *rev_tag, int cmp_len);
    +
    +/**
    + * board_ti_get_rev() - Get board revision for TI EVMs
    + *
    + * Return: Empty string if eeprom wasn't read.
    + *	   Board revision otherwise
    + */
    +char *board_ti_get_rev(void);
    +
    +/**
    + * board_ti_get_config() - Get board config for TI EVMs
    + *
    + * Return: Empty string if eeprom wasn't read.
    + *	   Board config otherwise
    + */
    +char *board_ti_get_config(void);
    +
    +/**
    + * board_ti_get_name() - Get board name for TI EVMs
    + *
    + * Return: Empty string if eeprom wasn't read.
    + *	   Board name otherwise
    + */
    +char *board_ti_get_name(void);
    +
    +/**
    + * board_ti_get_eth_mac_addr() - Get Ethernet MAC address from EEPROM MAC list
    + * @index:	0 based index within the list of MAC addresses
    + * @mac_addr:	MAC address contained at the index is returned here
    + *
    + * Does not sanity check the mac_addr. Whatever is stored in EEPROM is returned.
    + */
    +void board_ti_get_eth_mac_addr(int index, u8 mac_addr[TI_EEPROM_HDR_ETH_ALEN]);
    +
    +/**
    + * board_ti_get_emif1_size() - Get size of the DDR on emif1 for TI EVMs
    + *
    + * Return: NULL if eeprom wasn't read or emif1_size is not available.
    + */
    +u64 board_ti_get_emif1_size(void);
    +
    +/**
    + * board_ti_get_emif2_size() - Get size of the DDR on emif2 for TI EVMs
    + *
    + * Return: NULL if eeprom wasn't read or emif2_size is not available.
    + */
    +u64 board_ti_get_emif2_size(void);
    +
    +/**
    + * set_board_info_env() - Setup commonly used board information environment vars
    + * @name:	Name of the board
    + *
    + * If name is NULL, default_name is used.
    + */
    +void set_board_info_env(char *name);
    +
    +/**
    + * set_board_info_env_am6() - Setup commonly used board information environment
    + *			      vars for AM6-type boards
    + * @name:	Name of the board
    + *
    + * If name is NULL, default_name is used.
    + */
    +void set_board_info_env_am6(char *name);
    +
    +/**
    + * board_ti_set_ethaddr- Sets the ethaddr environment from EEPROM
    + * @index: The first eth<index>addr environment variable to set
    + *
    + * EEPROM should be already read before calling this function.
    + * The EEPROM contains 2 MAC addresses which define the MAC address
    + * range (i.e. first and last MAC address).
    + * This function sets the ethaddr environment variable for all
    + * the available MAC addresses starting from eth<index>addr.
    + */
    +void board_ti_set_ethaddr(int index);
    +
    +/**
    + * board_ti_am6_set_ethaddr- Sets the ethaddr environment from EEPROM
    + * @index: The first eth<index>addr environment variable to set
    + * @count: The number of MAC addresses to process
    + *
    + * EEPROM should be already read before calling this function. The EEPROM
    + * contains n dedicated MAC addresses. This function sets the ethaddr
    + * environment variable for all the available MAC addresses starting
    + * from eth<index>addr.
    + */
    +void board_ti_am6_set_ethaddr(int index, int count);
    +
    +/**
    + * board_ti_was_eeprom_read() - Check to see if the eeprom contents have been read
    + *
    + * This function is useful to determine if the eeprom has already been read and
    + * its contents have already been loaded into memory. It utiltzes the magic
    + * number that the header value is set to upon successful eeprom read.
    + */
    +bool board_ti_was_eeprom_read(void);
    +
    +/**
    + * ti_i2c_eeprom_am_set() - Setup the eeprom data with predefined values
    + * @name:	Name of the board
    + * @rev:	Revision of the board
    + *
    + * In some cases such as in RTC-only mode, we are able to skip reading eeprom
    + * and wasting i2c based initialization time by using predefined flags for
    + * detecting what platform we are booting on. For those platforms, provide
    + * a handy function to pre-program information.
    + *
    + * NOTE: many eeprom information such as serial number, mac address etc is not
    + * available.
    + *
    + * Return: 0 if all went fine, else return error.
    + */
    +int ti_i2c_eeprom_am_set(const char *name, const char *rev);
    +#else
    +static inline bool board_ti_is(char *name_tag) { return false; };
    +static inline bool board_ti_k3_is(char *name_tag) { return false; };
    +static inline bool board_ti_rev_is(char *rev_tag, int cmp_len)
    +{ return false; };
    +static inline char *board_ti_get_rev(void) { return NULL; };
    +static inline char *board_ti_get_config(void) { return NULL; };
    +static inline char *board_ti_get_name(void) { return NULL; };
    +static inline bool board_ti_was_eeprom_read(void) { return false; };
    +static inline int ti_i2c_eeprom_am_set(const char *name, const char *rev)
    +{ return -EINVAL; };
    +#endif
    +
    +#endif	/* __BOARD_DETECT_H */
    diff --git a/board/liteon/common/cape_detect.c b/board/liteon/common/cape_detect.c
    new file mode 100644
    index 00000000000..2e6105cfbf1
    --- /dev/null
    +++ b/board/liteon/common/cape_detect.c
    @@ -0,0 +1,96 @@
    +// SPDX-License-Identifier: GPL-2.0+
    +/*
    + * (C) Copyright 2021
    + * Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
    + */
    +
    +#include <common.h>
    +#include <malloc.h>
    +#include <i2c.h>
    +#include <extension_board.h>
    +
    +#include "cape_detect.h"
    +
    +static void sanitize_field(char *text, size_t size)
    +{
    +	char *c = NULL;
    +
    +	for (c = text; c < text + (int)size; c++) {
    +		if (*c == 0xFF)
    +			*c = 0;
    +	}
    +}
    +
    +int extension_board_scan(struct list_head *extension_list)
    +{
    +	struct extension *cape;
    +	struct am335x_cape_eeprom_id eeprom_header;
    +
    +	int num_capes = 0;
    +	int ret, i;
    +	struct udevice *dev;
    +	unsigned char addr;
    +
    +	char process_cape_part_number[17] = {'0'};
    +	char process_cape_version[5] = {'0'};
    +	uint8_t cursor = 0;
    +
    +	for (addr = CAPE_EEPROM_FIRST_ADDR; addr <= CAPE_EEPROM_LAST_ADDR; addr++) {
    +		ret = i2c_get_chip_for_busnum(CONFIG_CAPE_EEPROM_BUS_NUM, addr, 1, &dev);
    +		if (ret)
    +			continue;
    +
    +		/* Move the read cursor to the beginning of the EEPROM */
    +		dm_i2c_write(dev, 0, &cursor, 1);
    +		ret = dm_i2c_read(dev, 0, (uint8_t *)&eeprom_header,
    +				  sizeof(struct am335x_cape_eeprom_id));
    +		if (ret) {
    +			printf("Cannot read i2c EEPROM\n");
    +			continue;
    +		}
    +
    +		if (eeprom_header.header != CAPE_MAGIC)
    +			continue;
    +
    +		sanitize_field(eeprom_header.board_name, sizeof(eeprom_header.board_name));
    +		sanitize_field(eeprom_header.version, sizeof(eeprom_header.version));
    +		sanitize_field(eeprom_header.manufacturer, sizeof(eeprom_header.manufacturer));
    +		sanitize_field(eeprom_header.part_number, sizeof(eeprom_header.part_number));
    +
    +		/* Process cape part_number */
    +		memset(process_cape_part_number, 0, sizeof(process_cape_part_number));
    +		strncpy(process_cape_part_number, eeprom_header.part_number, 16);
    +		/* Some capes end with '.' */
    +		for (i = 15; i >= 0; i--) {
    +			if (process_cape_part_number[i] == '.')
    +				process_cape_part_number[i] = '\0';
    +			else
    +				break;
    +		}
    +
    +		/* Process cape version */
    +		memset(process_cape_version, 0, sizeof(process_cape_version));
    +		strncpy(process_cape_version, eeprom_header.version, 4);
    +		for (i = 0; i < 4; i++) {
    +			if (process_cape_version[i] == 0)
    +				process_cape_version[i] = '0';
    +		}
    +
    +		printf("BeagleBone Cape: %s (0x%x)\n", eeprom_header.board_name, addr);
    +
    +		cape = calloc(1, sizeof(struct extension));
    +		if (!cape) {
    +			printf("Error in memory allocation\n");
    +			return num_capes;
    +		}
    +
    +		snprintf(cape->overlay, sizeof(cape->overlay), "%s-%s.dtbo",
    +			 process_cape_part_number, process_cape_version);
    +		strncpy(cape->name, eeprom_header.board_name, 32);
    +		strncpy(cape->version, process_cape_version, 4);
    +		strncpy(cape->owner, eeprom_header.manufacturer, 16);
    +		list_add_tail(&cape->list, extension_list);
    +		num_capes++;
    +	}
    +	return num_capes;
    +}
    diff --git a/board/liteon/common/cape_detect.h b/board/liteon/common/cape_detect.h
    new file mode 100644
    index 00000000000..b0d5c9f18bc
    --- /dev/null
    +++ b/board/liteon/common/cape_detect.h
    @@ -0,0 +1,28 @@
    +/* SPDX-License-Identifier: GPL-2.0+ */
    +/*
    + * (C) Copyright 2021
    + * Köry Maincent, Bootlin, <kory.maincent@bootlin.com>
    + */
    +
    +#ifndef __CAPE_DETECT_H
    +#define __CAPE_DETECT_H
    +
    +struct am335x_cape_eeprom_id {
    +	unsigned int header;
    +	char eeprom_rev[2];
    +	char board_name[32];
    +	char version[4];
    +	char manufacturer[16];
    +	char part_number[16];
    +};
    +
    +#define CAPE_EEPROM_FIRST_ADDR	0x54
    +#define CAPE_EEPROM_LAST_ADDR	0x57
    +
    +#define CAPE_EEPROM_ADDR_LEN 0x10
    +
    +#define CAPE_MAGIC 0xEE3355AA
    +
    +int extension_board_scan(struct list_head *extension_list);
    +
    +#endif /* __CAPE_DETECT_H */
    diff --git a/board/liteon/common/fdt_ops.c b/board/liteon/common/fdt_ops.c
    new file mode 100644
    index 00000000000..eb917be9e0d
    --- /dev/null
    +++ b/board/liteon/common/fdt_ops.c
    @@ -0,0 +1,64 @@
    +// SPDX-License-Identifier: GPL-2.0-or-later
    +/*
    + * Library to support FDT file operations which are common
    + *
    + * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#include <env.h>
    +#include <vsprintf.h>
    +#include "fdt_ops.h"
    +
    +void ti_set_fdt_env(const char *board_name, struct ti_fdt_map *fdt_map)
    +{
    +	char *fdt_file_name = NULL;
    +	char fdtfile[TI_FDT_FILE_MAX];
    +
    +	if (board_name) {
    +		while (fdt_map) {
    +			/* Check for NULL terminator in the list */
    +			if (!fdt_map->board_name)
    +				break;
    +			if (!strncmp(fdt_map->board_name, board_name, TI_BOARD_NAME_MAX)) {
    +				fdt_file_name = fdt_map->fdt_file_name;
    +				break;
    +			}
    +			fdt_map++;
    +		}
    +	}
    +
    +	/* match not found OR null board_name */
    +	if (!fdt_file_name) {
    +		/*
    +		 * Prioritize CONFIG_DEFAULT_FDT_FILE - if that is not defined,
    +		 * or is empty, then use CONFIG_DEFAULT_DEVICE_TREE
    +		 */
    +#ifdef CONFIG_DEFAULT_FDT_FILE
    +		if (strlen(CONFIG_DEFAULT_FDT_FILE)) {
    +			snprintf(fdtfile, sizeof(fdtfile), "%s/%s",
    +				 CONFIG_TI_FDT_FOLDER_PATH, CONFIG_DEFAULT_FDT_FILE);
    +		} else
    +#endif
    +		{
    +			snprintf(fdtfile, sizeof(fdtfile), "%s/%s.dtb",
    +				 CONFIG_TI_FDT_FOLDER_PATH, CONFIG_DEFAULT_DEVICE_TREE);
    +		}
    +	} else {
    +		snprintf(fdtfile, sizeof(fdtfile), "%s/%s", CONFIG_TI_FDT_FOLDER_PATH,
    +			 fdt_file_name);
    +	}
    +
    +	env_set("fdtfile", fdtfile);
    +
    +	/*
    +	 * XXX: DEPRECATION WARNING: 2 u-boot versions (2024.10).
    +	 *
    +	 * Maintain compatibility with downstream scripts that may be using
    +	 * name_fdt
    +	 */
    +	if (board_name)
    +		env_set("name_fdt", fdtfile);
    +	/* Also set the findfdt legacy script to warn users to stop using this */
    +	env_set("findfdt",
    +		"echo WARN: fdtfile already set. Stop using findfdt in script");
    +}
    diff --git a/board/liteon/common/fdt_ops.h b/board/liteon/common/fdt_ops.h
    new file mode 100644
    index 00000000000..5d304994fb6
    --- /dev/null
    +++ b/board/liteon/common/fdt_ops.h
    @@ -0,0 +1,42 @@
    +/* SPDX-License-Identifier: GPL-2.0-or-later */
    +/*
    + * Library to support common device tree manipulation for TI EVMs
    + *
    + * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com
    + */
    +
    +#ifndef __FDT_OPS_H
    +#define __FDT_OPS_H
    +
    +#define TI_BOARD_NAME_MAX 20
    +#define TI_FDT_FILE_MAX 200
    +
    +/**
    + *  struct ti_fdt_map - mapping of device tree blob name to board name
    + *  @board_name: board_name up to TI_BOARD_NAME_MAX long
    + *  @fdt_file_name: device tree blob name as described by kernel
    + */
    +struct ti_fdt_map {
    +	const char *board_name;
    +	char *fdt_file_name;
    +};
    +
    +/**
    + * ti_set_fdt_env  - Find the correct device tree file name based on the
    + * board name and set 'fdtfile' env variable with correct folder
    + * structure appropriate to the architecture and Linux kernel's
    + * 'make install_dtbs' conventions. This function is invoked typically
    + * as part of board_late_init.
    + *
    + * fdt name is picked by:
    + * a) If a board name match is found, use the match
    + * b) If not, CONFIG_DEFAULT_FDT_FILE (Boot OS device tree) if that is defined
    + *    and not null
    + * c) If not, Use CONFIG_DEFAULT_DEVICE_TREE (DT control for bootloader)
    + *
    + * @board_name: match to search with (max of TI_BOARD_NAME_MAX chars)
    + * @fdt_map: NULL terminated array of device tree file name matches.
    + */
    +void ti_set_fdt_env(const char *board_name, struct ti_fdt_map *fdt_map);
    +
    +#endif /* __FDT_OPS_H */
    diff --git a/board/liteon/common/k3-ddr-init.c b/board/liteon/common/k3-ddr-init.c
    new file mode 100644
    index 00000000000..228b95774b9
    --- /dev/null
    +++ b/board/liteon/common/k3-ddr-init.c
    @@ -0,0 +1,89 @@
    +// SPDX-License-Identifier: GPL-2.0+
    +/*
    + * Copyright (C) 2023, Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#include <fdt_support.h>
    +#include <dm/uclass.h>
    +#include <k3-ddrss.h>
    +#include <spl.h>
    +
    +#include "k3-ddr-init.h"
    +
    +int dram_init(void)
    +{
    +	s32 ret;
    +
    +	ret = fdtdec_setup_mem_size_base_lowest();
    +	if (ret)
    +		printf("Error setting up mem size and base. %d\n", ret);
    +
    +	return ret;
    +}
    +
    +int dram_init_banksize(void)
    +{
    +	s32 ret;
    +
    +	ret = fdtdec_setup_memory_banksize();
    +	if (ret)
    +		printf("Error setting up memory banksize. %d\n", ret);
    +
    +	return ret;
    +}
    +
    +#if defined(CONFIG_SPL_BUILD)
    +
    +void fixup_ddr_driver_for_ecc(struct spl_image_info *spl_image)
    +{
    +	struct udevice *dev;
    +	int ret, ctr = 1;
    +
    +	dram_init_banksize();
    +
    +	ret = uclass_get_device(UCLASS_RAM, 0, &dev);
    +	if (ret)
    +		panic("Cannnot get RAM device for ddr size fixup: %d\n", ret);
    +
    +	ret = k3_ddrss_ddr_fdt_fixup(dev, spl_image->fdt_addr, gd->bd);
    +	if (ret)
    +		printf("Error fixing up ddr node for ECC use! %d\n", ret);
    +
    +	dram_init_banksize();
    +
    +	ret = uclass_next_device_err(&dev);
    +
    +	while (!ret) {
    +		ret = k3_ddrss_ddr_fdt_fixup(dev, spl_image->fdt_addr, gd->bd);
    +		if (ret)
    +			printf("Error fixing up ddr node %d for ECC use! %d\n", ctr, ret);
    +
    +		dram_init_banksize();
    +		ret = uclass_next_device_err(&dev);
    +		ctr++;
    +	}
    +}
    +
    +void fixup_memory_node(struct spl_image_info *spl_image)
    +{
    +	u64 start[CONFIG_NR_DRAM_BANKS];
    +	u64 size[CONFIG_NR_DRAM_BANKS];
    +	int bank;
    +	int ret;
    +
    +	dram_init();
    +	dram_init_banksize();
    +
    +	for (bank = 0; bank < CONFIG_NR_DRAM_BANKS; bank++) {
    +		start[bank] = gd->bd->bi_dram[bank].start;
    +		size[bank] = gd->bd->bi_dram[bank].size;
    +	}
    +
    +	ret = fdt_fixup_memory_banks(spl_image->fdt_addr, start, size,
    +				     CONFIG_NR_DRAM_BANKS);
    +
    +	if (ret)
    +		printf("Error fixing up memory node! %d\n", ret);
    +}
    +
    +#endif
    diff --git a/board/liteon/common/k3-ddr-init.h b/board/liteon/common/k3-ddr-init.h
    new file mode 100644
    index 00000000000..9d1826815df
    --- /dev/null
    +++ b/board/liteon/common/k3-ddr-init.h
    @@ -0,0 +1,15 @@
    +/* SPDX-License-Identifier: GPL-2.0+ */
    +/*
    + * Copyright (C) 2023, Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#ifndef __K3_DDR_INIT_H
    +#define __K3_DDR_INIT_H
    +
    +int dram_init(void);
    +int dram_init_banksize(void);
    +
    +void fixup_ddr_driver_for_ecc(struct spl_image_info *spl_image);
    +void fixup_memory_node(struct spl_image_info *spl_image);
    +
    +#endif /* __K3_DDR_INIT_H */
    diff --git a/configs/am62x_charge_a53.config b/configs/am62x_charge_a53.config
    new file mode 100644
    index 00000000000..b47e926194e
    --- /dev/null
    +++ b/configs/am62x_charge_a53.config
    @@ -0,0 +1,2 @@
    +CONFIG_TARGET_AM625_A53_CHARGE=y # CONFIG_TARGET_AM625_A53_EVM is not set
    +CONFIG_DEFAULT_DEVICE_TREE="k3-am625-r5-charge"
    diff --git a/configs/am62x_charge_r5.config b/configs/am62x_charge_r5.config
    new file mode 100644
    index 00000000000..55312daf029
    --- /dev/null
    +++ b/configs/am62x_charge_r5.config
    @@ -0,0 +1,4 @@
    +CONFIG_TARGET_AM625_R5_CHARGE=y # CONFIG_TARGET_AM625_R5_EVM is not set
    +CONFIG_DEFAULT_DEVICE_TREE="k3-am625-charge" 
    +CONFIG_SPL_OF_LIST="k3-am625-charge"
    +CONFIG_OF_LIST="k3-am625-charge"
    \ No newline at end of file
    diff --git a/include/configs/charge.h b/include/configs/charge.h
    new file mode 100644
    index 00000000000..8665302ea80
    --- /dev/null
    +++ b/include/configs/charge.h
    @@ -0,0 +1,31 @@
    +/* SPDX-License-Identifier: GPL-2.0+ */
    +/*
    + * Configuration header file for K3 AM625 SoC family
    + *
    + * Copyright (C) 2020-2022 Texas Instruments Incorporated - https://www.ti.com/
    + *	Suman Anna <s-anna@ti.com>
    + */
    +
    +#ifndef __CONFIG_AM625_CHARGE_H
    +#define __CONFIG_AM625_CHARGE_H
    +
    +/* Now for the remaining common defines */
    +#include <configs/ti_armv7_common.h>
    +
    +/* NAND Driver config */
    +#define CFG_SYS_NAND_BASE            0x51000000
    +
    +#define CFG_SYS_NAND_ECCPOS		{ 2, 3, 4, 5, 6, 7, 8, 9, \
    +					 10, 11, 12, 13, 14, 15, 16, 17, \
    +					 18, 19, 20, 21, 22, 23, 24, 25, \
    +					 26, 27, 28, 29, 30, 31, 32, 33, \
    +					 34, 35, 36, 37, 38, 39, 40, 41, \
    +					 42, 43, 44, 45, 46, 47, 48, 49, \
    +					 50, 51, 52, 53, 54, 55, 56, 57, }
    +
    +#define CFG_SYS_NAND_ECCSIZE         512
    +
    +#define CFG_SYS_NAND_ECCBYTES        14
    +/*-- end NAND config --*/
    +
    +#endif /* __CONFIG_AM625_CHARGE_H */
    

    UBOOT.PATCH

  • diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile
    index ff0d7a0c205b..fe889760630a 100644
    --- a/arch/arm64/boot/dts/ti/Makefile
    +++ b/arch/arm64/boot/dts/ti/Makefile
    @@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-lincolntech-lcd185-panel.dtbo
     dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-microtips-mf101hie-panel.dtbo
     dtb-$(CONFIG_ARCH_K3) += k3-am625-sk-mcspi-loopback.dtbo
     dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk-nand.dtbo
    +dtb-$(CONFIG_ARCH_K3) += k3-am625-charge.dtb
     
     # Boards with AM62Ax SoC
     dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb
    diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
    index 066a82d2d4b8..d91ff8b59daf 100644
    --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
    +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi
    @@ -604,19 +604,10 @@ sdhci1: mmc@fa00000 {
     		power-domains = <&k3_pds 58 TI_SCI_PD_EXCLUSIVE>;
     		clocks = <&k3_clks 58 5>, <&k3_clks 58 6>;
     		clock-names = "clk_ahb", "clk_xin";
    -		bus-width = <4>;
    +		bus-width = <1>;
     		ti,clkbuf-sel = <0x7>;
     		ti,otap-del-sel-legacy = <0x8>;
    -		ti,otap-del-sel-sd-hs = <0x0>;
    -		ti,otap-del-sel-sdr12 = <0x0>;
    -		ti,otap-del-sel-sdr25 = <0x0>;
    -		ti,otap-del-sel-sdr50 = <0x8>;
    -		ti,otap-del-sel-sdr104 = <0x7>;
    -		ti,otap-del-sel-ddr50 = <0x4>;
     		ti,itap-del-sel-legacy = <0xa>;
    -		ti,itap-del-sel-sd-hs = <0x1>;
    -		ti,itap-del-sel-sdr12 = <0xa>;
    -		ti,itap-del-sel-sdr25 = <0x1>;
     		status = "disabled";
     	};
     
    diff --git a/arch/arm64/boot/dts/ti/k3-am625-charge.dts b/arch/arm64/boot/dts/ti/k3-am625-charge.dts
    new file mode 100644
    index 000000000000..690a06bb55df
    --- /dev/null
    +++ b/arch/arm64/boot/dts/ti/k3-am625-charge.dts
    @@ -0,0 +1,191 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * AM625 Minimal
    + *
    + * DT supports loading U-Boot binaries via UART and kernel image,
    + * initramfs, and kernel devicetree through SD.
    + *
    + * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +/dts-v1/;
    +
    +#include "k3-am625.dtsi"
    +
    +/ {
    +	compatible = "liteon,am625-charge", "liteon,am625";
    +	model = "LITEON AM625 CHAGE";
    +
    +	aliases {
    +        serial2 = &main_uart2;
    +        mmc0 = &sdhci0;
    +        mmc1 = &sdhci1;
    +	};
    +
    +	chosen {
    +		stdout-path = "serial2:115200n8";
    +        bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02820000";
    +        tick-timer = &main_timer0;
    +	};
    +
    +	reserved-memory {
    +		#address-cells = <2>;
    +		#size-cells = <2>;
    +		ranges;
    +
    +		secure_tfa_ddr: tfa@80000000 {
    +			reg = <0x00 0x80000000 0x00 0x80000>;
    +			alignment = <0x1000>;
    +			no-map;
    +		};
    +
    +		secure_ddr: optee@9e800000 {
    +			reg = <0x00 0x9e800000 0x00 0x01800000>;
    +			alignment = <0x1000>;
    +			no-map;
    +		};
    +	};
    +};
    +
    +
    +&main_pmx0 {
    +
    +	main_i2c0_pins_default: main-i2c0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16/E12) I2C0_SCL */
    +			AM62X_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16/D14) I2C0_SDA */
    +		>;
    +	};
    +	mcan0_pins_default: mcan0-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x01dc, PIN_INPUT, 0) /* (E15) MCAN0_RX */
    +			AM62X_IOPAD(0x01d8, PIN_OUTPUT, 0) /* (C15) MCAN0_TX */
    +		>;
    +	};
    +
    +	main_mdio1_pins_default: main-mdio1-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x160, PIN_OUTPUT, 0) /* (AD24/V17) MDIO0_MDC */
    +			AM62X_IOPAD(0x15c, PIN_INPUT, 0) /* (AB22/U16) MDIO0_MDIO */
    +		>;
    +	};
    +
    +	main_mmc0_pins_default: main-mmc0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (Y3/V3) MMC0_CMD */
    +			AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (AB1/Y1) MMC0_CLK */
    +			AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (AA2/V2) MMC0_DAT0 */
    +			AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (AA1/V1) MMC0_DAT1 */
    +			AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (AA3/W2) MMC0_DAT2 */
    +			AM62X_IOPAD(0x208, PIN_INPUT, 0) /* (Y4/W1) MMC0_DAT3 */
    +			AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (AB2/Y2) MMC0_DAT4 */
    +			AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (AC1/W3) MMC0_DAT5 */
    +			AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (AD2/W4) MMC0_DAT6 */
    +			AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (AC2/V4) MMC0_DAT7 */
    +		>;
    +	};
    +
    +	main_mmc1_pins_default: main-mmc1-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x23c, PIN_INPUT, 0) /* (A21/C18) MMC1_CMD */
    +			AM62X_IOPAD(0x234, PIN_INPUT, 0) /* (B22/A20) MMC1_CLK */
    +			AM62X_IOPAD(0x230, PIN_INPUT, 0) /* (A22/A19) MMC1_DAT0 */
    +			AM62X_IOPAD(0x22c, PIN_INPUT, 0) /* (B21/B19) MMC1_DAT1 */
    +			AM62X_IOPAD(0x228, PIN_INPUT, 0) /* (C21/B20) MMC1_DAT2 */
    +			AM62X_IOPAD(0x224, PIN_INPUT, 0) /* (D22/C19) MMC1_DAT3 */
    +			AM62X_IOPAD(0x240, PIN_INPUT, 0) /* (D17/C15) MMC1_SDCD */
    +		>;
    +	};
    +
    +	main_rgmii1_pins_default: main-rgmii1-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x14c, PIN_INPUT, 0) /* (AB17/W15) RGMII1_RD0 */
    +			AM62X_IOPAD(0x150, PIN_INPUT, 0) /* (AC17/Y16) RGMII1_RD1 */
    +			AM62X_IOPAD(0x154, PIN_INPUT, 0) /* (AB16/AA17) RGMII1_RD2 */
    +			AM62X_IOPAD(0x158, PIN_INPUT, 0) /* (AA15/Y15) RGMII1_RD3 */
    +			AM62X_IOPAD(0x148, PIN_INPUT, 0) /* (AD17/AA16) RGMII1_RXC */
    +			AM62X_IOPAD(0x144, PIN_INPUT, 0) /* (AE17/W14) RGMII1_RX_CTL */
    +			AM62X_IOPAD(0x134, PIN_OUTPUT, 0) /* (AE20/U14) RGMII1_TD0 */
    +			AM62X_IOPAD(0x138, PIN_OUTPUT, 0) /* (AD20/AA19) RGMII1_TD1 */
    +			AM62X_IOPAD(0x13c, PIN_OUTPUT, 0) /* (AE18/Y17) RGMII1_TD2 */
    +			AM62X_IOPAD(0x140, PIN_OUTPUT, 0) /* (AD18/AA18) RGMII1_TD3 */
    +			AM62X_IOPAD(0x130, PIN_OUTPUT, 0) /* (AE19/W16) RGMII1_TXC */
    +			AM62X_IOPAD(0x12c, PIN_OUTPUT, 0) /* (AD19/V15) RGMII1_TX_CTL */
    +		>;
    +	};
    +
    +    main_uart0_pins_default: main-uart0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14/A13) UART0_RXD */
    +			AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14/E11) UART0_TXD */
    +		>;
    +	};
    +
    +    main_uart1_pins_default: main-uart1-default-pins {
    +		bootph-pre-ram;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1ac, PIN_INPUT, 2) /* (E19/D15) MCASP0_AFSR.UART1_RXD */
    +			AM62X_IOPAD(0x1b0, PIN_OUTPUT, 2) /* (A20/D16) MCASP0_ACLKR.UART1_TXD */
    +		>;
    +	};
    +
    +	main_uart2_pins_default: main-uart2-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x01d0, PIN_INPUT, 3) /* (A15) UART0_CTSn.UART2_RXD */
    +			AM62X_IOPAD(0x01d4, PIN_OUTPUT, 3) /* (B15) UART0_RTSn.UART2_TXD */
    +		>;
    +	};
    +	main_uart4_pins_default: main-uart4-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x00b0, PIN_INPUT, 3) /* (K22) GPMC0_CSn2.UART4_RXD */
    +			AM62X_IOPAD(0x00b4, PIN_OUTPUT, 3) /* (K24) GPMC0_CSn3.UART4_TXD */
    +		>;
    +	};
    +	main_uart6_pins_default: main-uart6-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x009c, PIN_INPUT, 3) /* (V25) GPMC0_WAIT1.UART6_RXD */
    +			AM62X_IOPAD(0x00a0, PIN_OUTPUT, 3) /* (K25) GPMC0_WPn.UART6_TXD */
    +		>;
    +	};
    +};
    +
    +&main_uart0 {
    +	bootph-all;
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart0_pins_default>;
    +	interrupts-extended = <&gic500 GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>,
    +			       <&main_pmx0 0x1c8>; /* (D14) UART0_RXD PADCONFIG114 */
    +	interrupt-names = "irq", "wakeup";
    +};
    +
    +&main_uart1 {
    +	/* Main UART1 is used by TIFS firmware */
    +	bootph-pre-ram;
    +	status = "reserved";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart1_pins_default>;
    +};
    +
    +&main_uart2 {
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart2_pins_default>;
    +};
    +
    +&sdhci1 {
    +	/* SD/MMC */
    +	bootph-all;
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_mmc1_pins_default>;
    +	disable-wp;
    +};
    +
    +&cpsw3g {
    +	status = "disabled";
    +};
    

    kernel.patch

  • diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
    index 4d03a0f5b30..89fda17225b 100644
    --- a/arch/arm/dts/Makefile
    +++ b/arch/arm/dts/Makefile
    @@ -1450,7 +1450,9 @@ dtb-$(CONFIG_SOC_K3_AM625) += k3-am625-sk.dtb \
     			      k3-am625-phyboard-lyra-rdk.dtb \
     			      k3-am625-r5-phycore-som-2gb.dtb \
     			      k3-am62-lp-sk.dtb \
    -			      k3-am62-r5-lp-sk.dtb
    +			      k3-am62-r5-lp-sk.dtb \
    +                  k3-am625-charge.dtb \
    +                  k3-am625-r5-charge.dtb
     
     dtb-$(CONFIG_SOC_K3_AM62A7) += k3-am62a7-sk.dtb \
     			      k3-am62a7-r5-sk.dtb
    diff --git a/arch/arm/dts/k3-am62-main.dtsi b/arch/arm/dts/k3-am62-main.dtsi
    index 4d8ad7bd47e..607a913cfc0 100644
    --- a/arch/arm/dts/k3-am62-main.dtsi
    +++ b/arch/arm/dts/k3-am62-main.dtsi
    @@ -606,16 +606,7 @@
     		bus-width = <4>;
     		ti,clkbuf-sel = <0x7>;
     		ti,otap-del-sel-legacy = <0x8>;
    -		ti,otap-del-sel-sd-hs = <0x0>;
    -		ti,otap-del-sel-sdr12 = <0x0>;
    -		ti,otap-del-sel-sdr25 = <0x0>;
    -		ti,otap-del-sel-sdr50 = <0x8>;
    -		ti,otap-del-sel-sdr104 = <0x7>;
    -		ti,otap-del-sel-ddr50 = <0x4>;
     		ti,itap-del-sel-legacy = <0xa>;
    -		ti,itap-del-sel-sd-hs = <0x1>;
    -		ti,itap-del-sel-sdr12 = <0xa>;
    -		ti,itap-del-sel-sdr25 = <0x1>;
     		status = "disabled";
     	};
     
    diff --git a/arch/arm/dts/k3-am625-charge-binman.dtsi b/arch/arm/dts/k3-am625-charge-binman.dtsi
    new file mode 100644
    index 00000000000..7d3ae71e5b3
    --- /dev/null
    +++ b/arch/arm/dts/k3-am625-charge-binman.dtsi
    @@ -0,0 +1,456 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#include "k3-binman.dtsi"
    +
    +#ifdef CONFIG_TARGET_AM625_R5_CHARGE
    +
    +&binman {
    +	tiboot3-am62x-hs-evm.bin {
    +		filename = "tiboot3-am62x-hs-evm.bin";
    +		ti-secure-rom {
    +			content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
    +				<&combined_dm_cfg>, <&sysfw_inner_cert>;
    +			combined;
    +			dm-data;
    +			sysfw-inner-cert;
    +			keyfile = "custMpk.pem";
    +			sw-rev = <1>;
    +			content-sbl = <&u_boot_spl>;
    +			content-sysfw = <&ti_fs_enc>;
    +			content-sysfw-data = <&combined_tifs_cfg>;
    +			content-sysfw-inner-cert = <&sysfw_inner_cert>;
    +			content-dm-data = <&combined_dm_cfg>;
    +			load = <0x43c00000>;
    +			load-sysfw = <0x40000>;
    +			load-sysfw-data = <0x67000>;
    +			load-dm-data = <0x43c3a800>;
    +		};
    +		u_boot_spl: u-boot-spl {
    +			no-expanded;
    +		};
    +		ti_fs_enc: ti-fs-enc.bin {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_tifs_cfg: combined-tifs-cfg.bin {
    +			filename = "combined-tifs-cfg.bin";
    +			type = "blob-ext";
    +		};
    +		sysfw_inner_cert: sysfw-inner-cert {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_dm_cfg: combined-dm-cfg.bin {
    +			filename = "combined-dm-cfg.bin";
    +			type = "blob-ext";
    +		};
    +	};
    +};
    +
    +&binman {
    +	tiboot3-am62x-hs-fs-evm.bin {
    +		filename = "tiboot3-am62x-hs-fs-evm.bin";
    +		symlink = "tiboot3.bin";
    +		ti-secure-rom {
    +			content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
    +				<&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
    +			combined;
    +			dm-data;
    +			sysfw-inner-cert;
    +			keyfile = "custMpk.pem";
    +			sw-rev = <1>;
    +			content-sbl = <&u_boot_spl_fs>;
    +			content-sysfw = <&ti_fs_enc_fs>;
    +			content-sysfw-data = <&combined_tifs_cfg_fs>;
    +			content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
    +			content-dm-data = <&combined_dm_cfg_fs>;
    +			load = <0x43c00000>;
    +			load-sysfw = <0x40000>;
    +			load-sysfw-data = <0x67000>;
    +			load-dm-data = <0x43c3a800>;
    +		};
    +		u_boot_spl_fs: u-boot-spl {
    +			no-expanded;
    +		};
    +		ti_fs_enc_fs: ti-fs-enc.bin {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_tifs_cfg_fs: combined-tifs-cfg.bin {
    +			filename = "combined-tifs-cfg.bin";
    +			type = "blob-ext";
    +		};
    +		sysfw_inner_cert_fs: sysfw-inner-cert {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_dm_cfg_fs: combined-dm-cfg.bin {
    +			filename = "combined-dm-cfg.bin";
    +			type = "blob-ext";
    +		};
    +	};
    +};
    +
    +&binman {
    +	tiboot3-am62x-gp-evm.bin {
    +		filename = "tiboot3-am62x-gp-evm.bin";
    +		ti-secure-rom {
    +			content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
    +				<&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
    +			combined;
    +			dm-data;
    +			content-sbl = <&u_boot_spl_unsigned>;
    +			load = <0x43c00000>;
    +			content-sysfw = <&ti_fs_gp>;
    +			load-sysfw = <0x40000>;
    +			content-sysfw-data = <&combined_tifs_cfg_gp>;
    +			load-sysfw-data = <0x67000>;
    +			content-dm-data = <&combined_dm_cfg_gp>;
    +			load-dm-data = <0x43c3a800>;
    +			sw-rev = <1>;
    +			keyfile = "ti-degenerate-key.pem";
    +		};
    +		u_boot_spl_unsigned: u-boot-spl {
    +			no-expanded;
    +		};
    +		ti_fs_gp: ti-fs-gp.bin {
    +			filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
    +			filename = "combined-tifs-cfg.bin";
    +			type = "blob-ext";
    +		};
    +		combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
    +			filename = "combined-dm-cfg.bin";
    +			type = "blob-ext";
    +		};
    +
    +	};
    +};
    +
    +#endif
    +
    +#ifdef CONFIG_TARGET_AM625_A53_CHARGE
    +
    +#define SPL_AM625_SK_DTB "spl/dts/k3-am625-charge.dtb"
    +#define AM625_SK_DTB "u-boot.dtb"
    +
    +&binman {
    +	ti-dm {
    +		filename = "ti-dm.bin";
    +		blob-ext {
    +			filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
    +			optional;
    +		};
    +	};
    +
    +	tifsstub-hs {
    +		filename = "tifsstub.bin_hs";
    +		ti-secure-rom {
    +			content = <&tifsstub_hs_cert>;
    +			core = "secure";
    +			load = <0x40000>;
    +			sw-rev = <CONFIG_K3_X509_SWRV>;
    +			keyfile = "custMpk.pem";
    +			countersign;
    +			tifsstub;
    +		};
    +		tifsstub_hs_cert: tifsstub-hs-cert.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		tifsstub_hs_enc: tifsstub-hs-enc.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +	};
    +
    +	tifsstub-fs {
    +		filename = "tifsstub.bin_fs";
    +		tifsstub_fs_cert: tifsstub-fs-cert.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +		tifsstub_fs_enc: tifsstub-fs-enc.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +
    +	};
    +
    +	tifsstub-gp {
    +		filename = "tifsstub.bin_gp";
    +		ti-secure-rom {
    +			content = <&tifsstub_gp>;
    +			core = "secure";
    +			load = <0x60000>;
    +			sw-rev = <CONFIG_K3_X509_SWRV>;
    +			keyfile = "ti-degenerate-key.pem";
    +			tifsstub;
    +		};
    +		tifsstub_gp: tifsstub-gp.bin {
    +			filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin";
    +			type = "blob-ext";
    +			optional;
    +		};
    +	};
    +
    +	ti-spl {
    +		insert-template = <&ti_spl_template>;
    +
    +		fit {
    +			images {
    +
    +				tifsstub-hs {
    +					description = "TIFSSTUB";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-hs";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_hs";
    +					};
    +				};
    +
    +				tifsstub-fs {
    +					description = "TIFSSTUB";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-fs";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_fs";
    +					};
    +				};
    +
    +				tifsstub-gp {
    +					description = "TIFSSTUB";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-gp";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_gp";
    +					};
    +				};
    +
    +				dm {
    +					ti-secure {
    +						content = <&dm>;
    +						keyfile = "custMpk.pem";
    +					};
    +					dm: ti-dm {
    +						filename = "ti-dm.bin";
    +					};
    +				};
    +
    +				fdt-0 {
    +					description = "k3-am625-sk";
    +					type = "flat_dt";
    +					arch = "arm";
    +					compression = "none";
    +					ti-secure {
    +						content = <&spl_am625_sk_dtb>;
    +						keyfile = "custMpk.pem";
    +					};
    +					spl_am625_sk_dtb: blob-ext {
    +						filename = SPL_AM625_SK_DTB;
    +					};
    +
    +				};
    +
    +			};
    +
    +			configurations {
    +				default = "conf-0";
    +
    +				conf-0 {
    +					description = "k3-am625-sk";
    +					firmware = "atf";
    +					loadables = "tee", "tifsstub-hs", "tifsstub-fs",
    +					"tifsstub-gp", "dm", "spl";
    +					fdt = "fdt-0";
    +				};
    +			};
    +		};
    +	};
    +};
    +
    +&binman {
    +	u-boot {
    +		insert-template = <&u_boot_template>;
    +
    +		fit {
    +			images {
    +				uboot {
    +					description = "U-Boot for AM625 Board";
    +				};
    +
    +				fdt-0 {
    +					description = "k3-am625-sk";
    +					type = "flat_dt";
    +					arch = "arm";
    +					compression = "none";
    +					ti-secure {
    +						content = <&am625_sk_dtb>;
    +						keyfile = "custMpk.pem";
    +					};
    +					am625_sk_dtb: blob-ext {
    +						filename = AM625_SK_DTB;
    +					};
    +					hash {
    +						algo = "crc32";
    +					};
    +				};
    +			};
    +
    +			configurations {
    +				default = "conf-0";
    +
    +				conf-0 {
    +					description = "k3-am625-sk";
    +					firmware = "uboot";
    +					loadables = "uboot";
    +					fdt = "fdt-0";
    +				};
    +
    +			};
    +		};
    +	};
    +};
    +
    +&binman {
    +	ti-spl_unsigned {
    +		insert-template = <&ti_spl_unsigned_template>;
    +
    +		fit {
    +			images {
    +
    +				tifsstub-hs {
    +					description = "tifsstub";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-hs";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_hs";
    +					};
    +				};
    +
    +				tifsstub-fs {
    +					description = "tifsstub";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-fs";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_fs";
    +					};
    +				};
    +
    +				tifsstub-gp {
    +					description = "tifsstub";
    +					type = "firmware";
    +					arch = "arm32";
    +					compression = "none";
    +					os = "tifsstub-gp";
    +					load = <0x9dc00000>;
    +					entry = <0x9dc00000>;
    +					blob-ext {
    +						filename = "tifsstub.bin_gp";
    +					};
    +				};
    +
    +				dm {
    +					ti-dm {
    +						filename = "ti-dm.bin";
    +					};
    +				};
    +
    +				fdt-0 {
    +					description = "k3-am625-sk";
    +					type = "flat_dt";
    +					arch = "arm";
    +					compression = "none";
    +					spl_am625_sk_dtb_unsigned: blob {
    +						filename = SPL_AM625_SK_DTB;
    +					};
    +				};
    +			};
    +
    +			configurations {
    +				default = "conf-0";
    +
    +				conf-0 {
    +					description = "k3-am625-sk";
    +					firmware = "atf";
    +					loadables = "tee", "tifsstub-hs", "tifsstub-fs",
    +						  "tifsstub-gp", "dm", "spl";
    +					fdt = "fdt-0";
    +				};
    +			};
    +		};
    +	};
    +};
    +
    +&binman {
    +	u-boot_unsigned {
    +		insert-template = <&u_boot_unsigned_template>;
    +
    +		fit {
    +			images {
    +				uboot {
    +					description = "U-Boot for AM625 Board";
    +				};
    +
    +				fdt-0 {
    +					description = "k3-am625-sk";
    +					type = "flat_dt";
    +					arch = "arm";
    +					compression = "none";
    +					am625_sk_dtb_unsigned: blob {
    +						filename = AM625_SK_DTB;
    +					};
    +					hash {
    +						algo = "crc32";
    +					};
    +				};
    +			};
    +
    +			configurations {
    +				default = "conf-0";
    +
    +				conf-0 {
    +					description = "k3-am625-sk";
    +					firmware = "uboot";
    +					loadables = "uboot";
    +					fdt = "fdt-0";
    +				};
    +			};
    +		};
    +	};
    +};
    +#endif
    diff --git a/arch/arm/dts/k3-am625-charge-u-boot.dtsi b/arch/arm/dts/k3-am625-charge-u-boot.dtsi
    new file mode 100644
    index 00000000000..6b0723a62b9
    --- /dev/null
    +++ b/arch/arm/dts/k3-am625-charge-u-boot.dtsi
    @@ -0,0 +1,17 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * Common AM625 MINIMAL dts file for SPLs
    + * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#include "k3-am625-charge-binman.dtsi"
    +
    +/ {
    +	chosen {
    +		tick-timer = &main_timer0;
    +	};
    +};
    +
    +&main_timer0 {
    +	clock-frequency = <25000000>;
    +};
    diff --git a/arch/arm/dts/k3-am625-charge.dts b/arch/arm/dts/k3-am625-charge.dts
    new file mode 100644
    index 00000000000..690a06bb55d
    --- /dev/null
    +++ b/arch/arm/dts/k3-am625-charge.dts
    @@ -0,0 +1,191 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * AM625 Minimal
    + *
    + * DT supports loading U-Boot binaries via UART and kernel image,
    + * initramfs, and kernel devicetree through SD.
    + *
    + * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +/dts-v1/;
    +
    +#include "k3-am625.dtsi"
    +
    +/ {
    +	compatible = "liteon,am625-charge", "liteon,am625";
    +	model = "LITEON AM625 CHAGE";
    +
    +	aliases {
    +        serial2 = &main_uart2;
    +        mmc0 = &sdhci0;
    +        mmc1 = &sdhci1;
    +	};
    +
    +	chosen {
    +		stdout-path = "serial2:115200n8";
    +        bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02820000";
    +        tick-timer = &main_timer0;
    +	};
    +
    +	reserved-memory {
    +		#address-cells = <2>;
    +		#size-cells = <2>;
    +		ranges;
    +
    +		secure_tfa_ddr: tfa@80000000 {
    +			reg = <0x00 0x80000000 0x00 0x80000>;
    +			alignment = <0x1000>;
    +			no-map;
    +		};
    +
    +		secure_ddr: optee@9e800000 {
    +			reg = <0x00 0x9e800000 0x00 0x01800000>;
    +			alignment = <0x1000>;
    +			no-map;
    +		};
    +	};
    +};
    +
    +
    +&main_pmx0 {
    +
    +	main_i2c0_pins_default: main-i2c0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16/E12) I2C0_SCL */
    +			AM62X_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16/D14) I2C0_SDA */
    +		>;
    +	};
    +	mcan0_pins_default: mcan0-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x01dc, PIN_INPUT, 0) /* (E15) MCAN0_RX */
    +			AM62X_IOPAD(0x01d8, PIN_OUTPUT, 0) /* (C15) MCAN0_TX */
    +		>;
    +	};
    +
    +	main_mdio1_pins_default: main-mdio1-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x160, PIN_OUTPUT, 0) /* (AD24/V17) MDIO0_MDC */
    +			AM62X_IOPAD(0x15c, PIN_INPUT, 0) /* (AB22/U16) MDIO0_MDIO */
    +		>;
    +	};
    +
    +	main_mmc0_pins_default: main-mmc0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x220, PIN_INPUT, 0) /* (Y3/V3) MMC0_CMD */
    +			AM62X_IOPAD(0x218, PIN_INPUT, 0) /* (AB1/Y1) MMC0_CLK */
    +			AM62X_IOPAD(0x214, PIN_INPUT, 0) /* (AA2/V2) MMC0_DAT0 */
    +			AM62X_IOPAD(0x210, PIN_INPUT, 0) /* (AA1/V1) MMC0_DAT1 */
    +			AM62X_IOPAD(0x20c, PIN_INPUT, 0) /* (AA3/W2) MMC0_DAT2 */
    +			AM62X_IOPAD(0x208, PIN_INPUT, 0) /* (Y4/W1) MMC0_DAT3 */
    +			AM62X_IOPAD(0x204, PIN_INPUT, 0) /* (AB2/Y2) MMC0_DAT4 */
    +			AM62X_IOPAD(0x200, PIN_INPUT, 0) /* (AC1/W3) MMC0_DAT5 */
    +			AM62X_IOPAD(0x1fc, PIN_INPUT, 0) /* (AD2/W4) MMC0_DAT6 */
    +			AM62X_IOPAD(0x1f8, PIN_INPUT, 0) /* (AC2/V4) MMC0_DAT7 */
    +		>;
    +	};
    +
    +	main_mmc1_pins_default: main-mmc1-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x23c, PIN_INPUT, 0) /* (A21/C18) MMC1_CMD */
    +			AM62X_IOPAD(0x234, PIN_INPUT, 0) /* (B22/A20) MMC1_CLK */
    +			AM62X_IOPAD(0x230, PIN_INPUT, 0) /* (A22/A19) MMC1_DAT0 */
    +			AM62X_IOPAD(0x22c, PIN_INPUT, 0) /* (B21/B19) MMC1_DAT1 */
    +			AM62X_IOPAD(0x228, PIN_INPUT, 0) /* (C21/B20) MMC1_DAT2 */
    +			AM62X_IOPAD(0x224, PIN_INPUT, 0) /* (D22/C19) MMC1_DAT3 */
    +			AM62X_IOPAD(0x240, PIN_INPUT, 0) /* (D17/C15) MMC1_SDCD */
    +		>;
    +	};
    +
    +	main_rgmii1_pins_default: main-rgmii1-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x14c, PIN_INPUT, 0) /* (AB17/W15) RGMII1_RD0 */
    +			AM62X_IOPAD(0x150, PIN_INPUT, 0) /* (AC17/Y16) RGMII1_RD1 */
    +			AM62X_IOPAD(0x154, PIN_INPUT, 0) /* (AB16/AA17) RGMII1_RD2 */
    +			AM62X_IOPAD(0x158, PIN_INPUT, 0) /* (AA15/Y15) RGMII1_RD3 */
    +			AM62X_IOPAD(0x148, PIN_INPUT, 0) /* (AD17/AA16) RGMII1_RXC */
    +			AM62X_IOPAD(0x144, PIN_INPUT, 0) /* (AE17/W14) RGMII1_RX_CTL */
    +			AM62X_IOPAD(0x134, PIN_OUTPUT, 0) /* (AE20/U14) RGMII1_TD0 */
    +			AM62X_IOPAD(0x138, PIN_OUTPUT, 0) /* (AD20/AA19) RGMII1_TD1 */
    +			AM62X_IOPAD(0x13c, PIN_OUTPUT, 0) /* (AE18/Y17) RGMII1_TD2 */
    +			AM62X_IOPAD(0x140, PIN_OUTPUT, 0) /* (AD18/AA18) RGMII1_TD3 */
    +			AM62X_IOPAD(0x130, PIN_OUTPUT, 0) /* (AE19/W16) RGMII1_TXC */
    +			AM62X_IOPAD(0x12c, PIN_OUTPUT, 0) /* (AD19/V15) RGMII1_TX_CTL */
    +		>;
    +	};
    +
    +    main_uart0_pins_default: main-uart0-default-pins {
    +		bootph-all;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14/A13) UART0_RXD */
    +			AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14/E11) UART0_TXD */
    +		>;
    +	};
    +
    +    main_uart1_pins_default: main-uart1-default-pins {
    +		bootph-pre-ram;
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x1ac, PIN_INPUT, 2) /* (E19/D15) MCASP0_AFSR.UART1_RXD */
    +			AM62X_IOPAD(0x1b0, PIN_OUTPUT, 2) /* (A20/D16) MCASP0_ACLKR.UART1_TXD */
    +		>;
    +	};
    +
    +	main_uart2_pins_default: main-uart2-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x01d0, PIN_INPUT, 3) /* (A15) UART0_CTSn.UART2_RXD */
    +			AM62X_IOPAD(0x01d4, PIN_OUTPUT, 3) /* (B15) UART0_RTSn.UART2_TXD */
    +		>;
    +	};
    +	main_uart4_pins_default: main-uart4-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x00b0, PIN_INPUT, 3) /* (K22) GPMC0_CSn2.UART4_RXD */
    +			AM62X_IOPAD(0x00b4, PIN_OUTPUT, 3) /* (K24) GPMC0_CSn3.UART4_TXD */
    +		>;
    +	};
    +	main_uart6_pins_default: main-uart6-default-pins {
    +		pinctrl-single,pins = <
    +			AM62X_IOPAD(0x009c, PIN_INPUT, 3) /* (V25) GPMC0_WAIT1.UART6_RXD */
    +			AM62X_IOPAD(0x00a0, PIN_OUTPUT, 3) /* (K25) GPMC0_WPn.UART6_TXD */
    +		>;
    +	};
    +};
    +
    +&main_uart0 {
    +	bootph-all;
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart0_pins_default>;
    +	interrupts-extended = <&gic500 GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>,
    +			       <&main_pmx0 0x1c8>; /* (D14) UART0_RXD PADCONFIG114 */
    +	interrupt-names = "irq", "wakeup";
    +};
    +
    +&main_uart1 {
    +	/* Main UART1 is used by TIFS firmware */
    +	bootph-pre-ram;
    +	status = "reserved";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart1_pins_default>;
    +};
    +
    +&main_uart2 {
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_uart2_pins_default>;
    +};
    +
    +&sdhci1 {
    +	/* SD/MMC */
    +	bootph-all;
    +	status = "okay";
    +	pinctrl-names = "default";
    +	pinctrl-0 = <&main_mmc1_pins_default>;
    +	disable-wp;
    +};
    +
    +&cpsw3g {
    +	status = "disabled";
    +};
    diff --git a/arch/arm/dts/k3-am625-r5-charge.dts b/arch/arm/dts/k3-am625-r5-charge.dts
    new file mode 100644
    index 00000000000..0e323757502
    --- /dev/null
    +++ b/arch/arm/dts/k3-am625-r5-charge.dts
    @@ -0,0 +1,84 @@
    +// SPDX-License-Identifier: GPL-2.0
    +/*
    + * AM625 MINIMAL dts file for R5 SPL
    + * Copyright (C) 2021-2024 Texas Instruments Incorporated - https://www.ti.com/
    + */
    +
    +#include "k3-am625-charge.dts"
    +#include "k3-am62x-charge-ddr4-1600MTs.dtsi"
    +#include "k3-am62-ddr.dtsi"
    +
    +#include "k3-am625-charge-u-boot.dtsi"
    +
    +/ {
    +	aliases {
    +		remoteproc0 = &sysctrler;
    +		remoteproc1 = &a53_0;
    +	};
    +    
    +	a53_0: a53@0 {
    +		compatible = "ti,am654-rproc";
    +		reg = <0x00 0x00a90000 0x00 0x10>;
    +		power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>,
    +				<&k3_pds 135 TI_SCI_PD_EXCLUSIVE>,
    +				<&k3_pds 166 TI_SCI_PD_EXCLUSIVE>;
    +		resets = <&k3_reset 135 0>;
    +		clocks = <&k3_clks 61 0>;
    +		assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>;
    +		assigned-clock-parents = <&k3_clks 61 2>;
    +		assigned-clock-rates = <200000000>, <1200000000>;
    +		ti,sci = <&dmsc>;
    +		ti,sci-proc-id = <32>;
    +		ti,sci-host-id = <10>;
    +		bootph-pre-ram;
    +	};
    +
    +	dm_tifs: dm-tifs {
    +		compatible = "ti,j721e-dm-sci";
    +		ti,host-id = <36>;
    +		ti,secure-host;
    +		mbox-names = "rx", "tx";
    +		mboxes= <&secure_proxy_main 22>,
    +			<&secure_proxy_main 23>;
    +		bootph-pre-ram;
    +	};
    +};
    +
    +&dmsc {
    +	mboxes= <&secure_proxy_main 0>,
    +		<&secure_proxy_main 1>,
    +		<&secure_proxy_main 0>;
    +	mbox-names = "rx", "tx", "notify";
    +	ti,host-id = <35>;
    +	ti,secure-host;
    +};
    +
    +&secure_proxy_sa3 {
    +	/* We require this for boot handshake */
    +	status = "disabled";
    +};
    +
    +&cbass_main {
    +	sysctrler: sysctrler {
    +		compatible = "ti,am654-system-controller";
    +		mboxes= <&secure_proxy_main 1>, <&secure_proxy_main 0>, <&secure_proxy_sa3 0>;
    +		mbox-names = "tx", "rx", "boot_notify";
    +		bootph-pre-ram;
    +	};
    +};
    +
    +
    +/* WKUP UART0 is used for DM firmware logs */
    +&wkup_uart0 {
    +	status = "okay";
    +};
    +
    +/* Main UART1 is used for TIFS firmware logs */
    +&main_uart1 {
    +	status = "okay";
    +};
    +
    +&main_pktdma {
    +	ti,sci = <&dm_tifs>;
    +	bootph-all;
    +};
    \ No newline at end of file
    diff --git a/arch/arm/dts/k3-am62x-charge-ddr4-1600MTs.dtsi b/arch/arm/dts/k3-am62x-charge-ddr4-1600MTs.dtsi
    new file mode 100644
    index 00000000000..1a5322f5e4d
    --- /dev/null
    +++ b/arch/arm/dts/k3-am62x-charge-ddr4-1600MTs.dtsi
    @@ -0,0 +1,2193 @@
    +// SPDX-License-Identifier: GPL-2.0+
    +/*
    + * This file was generated with the
    + * AM623/AM625 SysConfig DDR Configuration Tool for AM64x, AM625, AM623, AM62Ax, AM62Px v0.10.02
    + * Thu Oct 31 2024 10:54:40 GMT+0800 (中国标准时间)
    + * DDR Type: DDR4
    + * Frequency = 800MHz (1600MTs)
    + * Density: 8Gb
    + * Number of Ranks: 1
    +*/
    +
    +
    

    UBOOT.patch

  • HI Prashant,

    Is there any solution?

  • Hi,

    kernel.patch

    It looks like you are using a custom minimal DTS. Have you tried using the default TI EVM dts & still see the failure?

    Thanks!