From: Vignesh Raghavendra Date: Thu, 6 May 2021 18:13:59 +0530 Subject: [PATCH 13/15] ram: k3-ddrss: Introduce common driver with J7 SoC support In-Reply-To: <20210504025204.6619-14-d-gerlach@ti.com> References: <20210504025204.6619-1-d-gerlach@ti.com> <20210504025204.6619-14-d-gerlach@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dave, On 5/4/21 8:22 AM, Dave Gerlach wrote: > static void k3_lpddr4_ack_freq_upd_req(void) > { > - if (infotype == LPDDR4_DRV_SOC_PLL_UPDATE) { > - j721e_lpddr4_ack_freq_upd_req(); > + u32 dram_class; > + > + debug("--->>> LPDDR4 Initialization is in progress ... <<<---\n"); > + > + dram_class = k3_lpddr4_read_ddr_type(); > + > + switch (dram_class) { > + case DENALI_CTL_0_DRAM_CLASS_DDR4: > + k3_ddr4_freq_update(); This had to be moved to am64_lpddr4_hardware_reg_init() in am64_ddrss_probe() for booting on my AM64 EVM. > + break; > + case DENALI_CTL_0_DRAM_CLASS_LPDDR4: > + k3_lpddr4_freq_update(); > + break; > + default: > + printf("Unrecognized dram_class cannot update frequency!\n"); > } > }