Lines Matching +full:cs +full:- +full:mode
4 * SPDX-License-Identifier: Apache-2.0
18 uint32_t cs; member
19 uint32_t mode; member
36 const struct memc_smc_config *cfg = dev->config; in memc_smc_init()
41 (clock_control_subsys_t)&cfg->clock_cfg); in memc_smc_init()
43 ret = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT); in memc_smc_init()
48 for (size_t i = 0U; i < cfg->banks_len; i++) { in memc_smc_init()
49 if (cfg->banks[i].cs >= SMCCS_NUMBER_NUMBER) { in memc_smc_init()
50 return -EINVAL; in memc_smc_init()
53 bank = &cfg->regs->SMC_CS_NUMBER[cfg->banks[i].cs]; in memc_smc_init()
55 bank->SMC_SETUP = cfg->banks[i].setup_timing; in memc_smc_init()
56 bank->SMC_PULSE = cfg->banks[i].pulse_timing; in memc_smc_init()
57 bank->SMC_CYCLE = cfg->banks[i].cycle_timing; in memc_smc_init()
58 bank->SMC_MODE = cfg->banks[i].mode; in memc_smc_init()
80 .cs = DT_REG_ADDR(node_id), \
81 .mode = COND_CODE_1(DT_ENUM_IDX(node_id, atmel_smc_write_mode), \