Re: [PATCH v3 4/4] memory: tegra20-emc: Support matching timings by LPDDR2 configuration
From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-10-04 17:05:20
Also in:
linux-tegra, lkml
From: Dmitry Osipenko <digetx@gmail.com>
Date: 2021-10-04 17:05:20
Also in:
linux-tegra, lkml
04.10.2021 12:09, Krzysztof Kozlowski пишет:
quoted
static int emc_setup_hw(struct tegra_emc *emc) { + u32 emc_cfg, emc_dbg, emc_fbio, emc_adr_cfg; u32 intmask = EMC_REFRESH_OVERFLOW_INT; - u32 emc_cfg, emc_dbg, emc_fbio; + static bool print_sdram_info_once;How about moving print_sdram_info_once to emc_read_lpddr_sdram_info()? Less code here.
The SDRAM info is printed out for each attached SDRAM chip. There are two prints if two chips are attached to memory controller. Hence this print_once flag should cover both prints.