[PATCH 13/15] ram: k3-ddrss: Introduce common driver with J7 SoC support

Vignesh Raghavendra vigneshr at ti.com
Thu May 6 14:43:59 CEST 2021


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");
>  	}
>  }


More information about the U-Boot mailing list