]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: k3-ddrss: add auto-generated macros for am62a support
authorBryan Brattlof <bb@ti.com>
Mon, 24 Oct 2022 21:53:28 +0000 (16:53 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 9 Dec 2022 19:10:28 +0000 (14:10 -0500)
commitee31be429ba4be734fcb7bcb037d38afc82cc052
treeb1413b5ed9808d8a39d8b82ebbb00f18a4f1dcde
parent640aecb416cff52cf8a89d786d41e6eee54c94ff
ram: k3-ddrss: add auto-generated macros for am62a support

The new 32bit DDR controller for TI's am62a family of SoCs shares much
of the same functionality with the existing 16bit (am64) and 32bit
(j721e) controllers, so this patch reorganizes the existing
auto-generated macros for the 16bit and 32bit controllers to make room
for the macros for the am62a's controller

This patch consists mostly of header/macro renames and additions with a
new Kconfig option (K3_AM62A_DDRSS) allowing us to select these new
macros during compilation.

Signed-off-by: Bryan Brattlof <bb@ti.com>
66 files changed:
drivers/ram/Kconfig
drivers/ram/k3-ddrss/16bit/lpddr4_16bit_obj_if.h [deleted file]
drivers/ram/k3-ddrss/16bit/lpddr4_16bit_structs_if.h [deleted file]
drivers/ram/k3-ddrss/32bit/lpddr4_32bit_obj_if.h [deleted file]
drivers/ram/k3-ddrss/32bit/lpddr4_32bit_structs_if.h [deleted file]
drivers/ram/k3-ddrss/Makefile
drivers/ram/k3-ddrss/am62a/lpddr4_address_slice_0_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_address_slice_1_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_address_slice_2_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_am62a_ctl_regs_rw_masks.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_am62a_if.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_am62a_obj_if.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_am62a_structs_if.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_ctl_regs.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_data_slice_0_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_data_slice_1_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_data_slice_2_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_data_slice_3_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_ddr_controller_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_phy_core_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am62a/lpddr4_pi_macros.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am64/lpddr4_address_slice_0_macros.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_address_slice_0_macros.h with 99% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_address_slice_1_macros.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_address_slice_1_macros.h with 99% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_address_slice_2_macros.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_address_slice_2_macros.h with 99% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_am64_ctl_regs_rw_masks.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_ctl_regs_rw_masks.h with 82% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_am64_if.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_16bit_if.h with 94% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_am64_obj_if.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am64/lpddr4_am64_structs_if.h [new file with mode: 0644]
drivers/ram/k3-ddrss/am64/lpddr4_ctl_regs.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_ctl_regs.h with 99% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_data_slice_0_macros.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_data_slice_0_macros.h with 99% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_data_slice_1_macros.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_data_slice_1_macros.h with 99% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_ddr_controller_macros.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_ddr_controller_macros.h with 99% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_phy_core_macros.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_phy_core_macros.h with 99% similarity]
drivers/ram/k3-ddrss/am64/lpddr4_pi_macros.h [moved from drivers/ram/k3-ddrss/16bit/lpddr4_pi_macros.h with 99% similarity]
drivers/ram/k3-ddrss/cps_drv_lpddr4.h
drivers/ram/k3-ddrss/j721e/lpddr4_address_slice_0_macros.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_address_slice_0_macros.h with 99% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_ctl_regs.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_ctl_regs.h with 99% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_data_slice_0_macros.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_data_slice_0_macros.h with 99% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_data_slice_1_macros.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_data_slice_1_macros.h with 99% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_data_slice_2_macros.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_data_slice_2_macros.h with 99% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_data_slice_3_macros.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_data_slice_3_macros.h with 99% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_ddr_controller_macros.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_ddr_controller_macros.h with 99% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_j721e_ctl_regs_rw_masks.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_ctl_regs_rw_masks.h with 82% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_j721e_if.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_32bit_if.h with 93% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_j721e_obj_if.h [new file with mode: 0644]
drivers/ram/k3-ddrss/j721e/lpddr4_j721e_structs_if.h [new file with mode: 0644]
drivers/ram/k3-ddrss/j721e/lpddr4_phy_core_macros.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_phy_core_macros.h with 99% similarity]
drivers/ram/k3-ddrss/j721e/lpddr4_pi_macros.h [moved from drivers/ram/k3-ddrss/32bit/lpddr4_pi_macros.h with 99% similarity]
drivers/ram/k3-ddrss/lpddr4.c
drivers/ram/k3-ddrss/lpddr4.h
drivers/ram/k3-ddrss/lpddr4_16bit.h [deleted file]
drivers/ram/k3-ddrss/lpddr4_am62a_ctl_regs_rw_masks.c [new file with mode: 0644]
drivers/ram/k3-ddrss/lpddr4_am64_ctl_regs_rw_masks.c [moved from drivers/ram/k3-ddrss/lpddr4_16bit_ctl_regs_rw_masks.c with 99% similarity]
drivers/ram/k3-ddrss/lpddr4_am6x.c [moved from drivers/ram/k3-ddrss/lpddr4_16bit.c with 97% similarity]
drivers/ram/k3-ddrss/lpddr4_am6x.h [new file with mode: 0644]
drivers/ram/k3-ddrss/lpddr4_am6x_sanity.h [moved from drivers/ram/k3-ddrss/lpddr4_16bit_sanity.h with 97% similarity]
drivers/ram/k3-ddrss/lpddr4_if.h
drivers/ram/k3-ddrss/lpddr4_j721e.c [moved from drivers/ram/k3-ddrss/lpddr4_32bit.c with 98% similarity]
drivers/ram/k3-ddrss/lpddr4_j721e.h [moved from drivers/ram/k3-ddrss/lpddr4_32bit.h with 56% similarity]
drivers/ram/k3-ddrss/lpddr4_j721e_ctl_regs_rw_masks.c [moved from drivers/ram/k3-ddrss/lpddr4_32bit_ctl_regs_rw_masks.c with 99% similarity]
drivers/ram/k3-ddrss/lpddr4_j721e_sanity.h [moved from drivers/ram/k3-ddrss/lpddr4_32bit_sanity.h with 96% similarity]
drivers/ram/k3-ddrss/lpddr4_obj_if.c
drivers/ram/k3-ddrss/lpddr4_obj_if.h
drivers/ram/k3-ddrss/lpddr4_private.h [deleted file]
drivers/ram/k3-ddrss/lpddr4_sanity.h
drivers/ram/k3-ddrss/lpddr4_structs_if.h