Lines Matching +full:auto +full:- +full:refresh
4 * SPDX-License-Identifier: Apache-2.0
38 const struct memc_stm32_sdram_config *config = dev->config; in memc_stm32_sdram_init()
43 sdram.Instance = config->sdram; in memc_stm32_sdram_init()
45 for (size_t i = 0U; i < config->banks_len; i++) { in memc_stm32_sdram_init()
47 memcpy(&sdram.Init, &config->banks[i].init, sizeof(sdram.Init)); in memc_stm32_sdram_init()
51 (FMC_SDRAM_TimingTypeDef *)&config->banks[i].timing); in memc_stm32_sdram_init()
55 if (config->banks_len == 2U) { in memc_stm32_sdram_init()
57 } else if (config->banks[0].init.SDBank == FMC_SDRAM_BANK1) { in memc_stm32_sdram_init()
63 sdram_cmd.AutoRefreshNumber = config->num_auto_refresh; in memc_stm32_sdram_init()
64 sdram_cmd.ModeRegisterDefinition = config->mode_register; in memc_stm32_sdram_init()
70 k_usleep(config->power_up_delay); in memc_stm32_sdram_init()
72 /* pre-charge all */ in memc_stm32_sdram_init()
76 /* auto-refresh */ in memc_stm32_sdram_init()
84 /* program refresh count */ in memc_stm32_sdram_init()
85 (void)HAL_SDRAM_ProgramRefreshRate(&sdram, config->refresh_rate); in memc_stm32_sdram_init()