Lines Matching +full:cs +full:- +full:2
1 /* SPDX-License-Identifier: GPL-2.0 */
8 * Author: Boris Brezillon <boris.brezillon@free-electrons.com>
18 #define ATMEL_SMC_SETUP(cs) (((cs) * 0x10)) argument
19 #define ATMEL_HSMC_SETUP(layout, cs) \ argument
20 ((layout)->timing_regs_offset + ((cs) * 0x14))
21 #define ATMEL_SMC_PULSE(cs) (((cs) * 0x10) + 0x4) argument
22 #define ATMEL_HSMC_PULSE(layout, cs) \ argument
23 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x4)
24 #define ATMEL_SMC_CYCLE(cs) (((cs) * 0x10) + 0x8) argument
25 #define ATMEL_HSMC_CYCLE(layout, cs) \ argument
26 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x8)
32 #define ATMEL_SMC_MODE(cs) (((cs) * 0x10) + 0xc) argument
33 #define ATMEL_HSMC_MODE(layout, cs) \ argument
34 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0x10)
43 #define ATMEL_SMC_MODE_EXNWMODE_FROZEN (2 << 4)
51 #define ATMEL_SMC_MODE_DBW_32 (2 << 12)
53 #define ATMEL_SMC_MODE_TDF(x) (((x) - 1) << 16)
61 #define ATMEL_SMC_MODE_PS_16 (2 << 28)
64 #define ATMEL_HSMC_TIMINGS(layout, cs) \ argument
65 ((layout)->timing_regs_offset + ((cs) * 0x14) + 0xc)
80 * struct atmel_smc_cs_conf - SMC CS config as described in the datasheet.
106 void atmel_smc_cs_conf_apply(struct regmap *regmap, int cs,
110 int cs, const struct atmel_smc_cs_conf *conf);
111 void atmel_smc_cs_conf_get(struct regmap *regmap, int cs,
115 int cs, struct atmel_smc_cs_conf *conf);