Home
last modified time | relevance | path

Searched refs:pwrseq (Results 1 – 25 of 184) sorted by relevance

12345678

/kernel/linux/linux-5.10/drivers/mmc/core/
Dpwrseq_simple.c26 struct mmc_pwrseq pwrseq; member
34 #define to_pwrseq_simple(p) container_of(p, struct mmc_pwrseq_simple, pwrseq)
36 static void mmc_pwrseq_simple_set_gpios_value(struct mmc_pwrseq_simple *pwrseq, in mmc_pwrseq_simple_set_gpios_value() argument
39 struct gpio_descs *reset_gpios = pwrseq->reset_gpios; in mmc_pwrseq_simple_set_gpios_value()
63 struct mmc_pwrseq_simple *pwrseq = to_pwrseq_simple(host->pwrseq); in mmc_pwrseq_simple_pre_power_on() local
65 if (!IS_ERR(pwrseq->ext_clk) && !pwrseq->clk_enabled) { in mmc_pwrseq_simple_pre_power_on()
66 clk_prepare_enable(pwrseq->ext_clk); in mmc_pwrseq_simple_pre_power_on()
67 pwrseq->clk_enabled = true; in mmc_pwrseq_simple_pre_power_on()
70 mmc_pwrseq_simple_set_gpios_value(pwrseq, 1); in mmc_pwrseq_simple_pre_power_on()
75 struct mmc_pwrseq_simple *pwrseq = to_pwrseq_simple(host->pwrseq); in mmc_pwrseq_simple_post_power_on() local
[all …]
Dpwrseq.c37 host->pwrseq = p; in mmc_pwrseq_alloc()
46 if (!host->pwrseq) in mmc_pwrseq_alloc()
56 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_pre_power_on() local
58 if (pwrseq && pwrseq->ops->pre_power_on) in mmc_pwrseq_pre_power_on()
59 pwrseq->ops->pre_power_on(host); in mmc_pwrseq_pre_power_on()
64 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_post_power_on() local
66 if (pwrseq && pwrseq->ops->post_power_on) in mmc_pwrseq_post_power_on()
67 pwrseq->ops->post_power_on(host); in mmc_pwrseq_post_power_on()
72 struct mmc_pwrseq *pwrseq = host->pwrseq; in mmc_pwrseq_power_off() local
74 if (pwrseq && pwrseq->ops->power_off) in mmc_pwrseq_power_off()
[all …]
Dpwrseq_sd8787.c27 struct mmc_pwrseq pwrseq; member
32 #define to_pwrseq_sd8787(p) container_of(p, struct mmc_pwrseq_sd8787, pwrseq)
36 struct mmc_pwrseq_sd8787 *pwrseq = to_pwrseq_sd8787(host->pwrseq); in mmc_pwrseq_sd8787_pre_power_on() local
38 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_sd8787_pre_power_on()
41 gpiod_set_value_cansleep(pwrseq->pwrdn_gpio, 1); in mmc_pwrseq_sd8787_pre_power_on()
46 struct mmc_pwrseq_sd8787 *pwrseq = to_pwrseq_sd8787(host->pwrseq); in mmc_pwrseq_sd8787_power_off() local
48 gpiod_set_value_cansleep(pwrseq->pwrdn_gpio, 0); in mmc_pwrseq_sd8787_power_off()
49 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_sd8787_power_off()
65 struct mmc_pwrseq_sd8787 *pwrseq; in mmc_pwrseq_sd8787_probe() local
68 pwrseq = devm_kzalloc(dev, sizeof(*pwrseq), GFP_KERNEL); in mmc_pwrseq_sd8787_probe()
[all …]
Dpwrseq_emmc.c25 struct mmc_pwrseq pwrseq; member
30 #define to_pwrseq_emmc(p) container_of(p, struct mmc_pwrseq_emmc, pwrseq)
34 struct mmc_pwrseq_emmc *pwrseq = to_pwrseq_emmc(host->pwrseq); in mmc_pwrseq_emmc_reset() local
36 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_emmc_reset()
38 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_emmc_reset()
45 struct mmc_pwrseq_emmc *pwrseq = container_of(this, in mmc_pwrseq_emmc_reset_nb() local
47 gpiod_set_value(pwrseq->reset_gpio, 1); in mmc_pwrseq_emmc_reset_nb()
49 gpiod_set_value(pwrseq->reset_gpio, 0); in mmc_pwrseq_emmc_reset_nb()
61 struct mmc_pwrseq_emmc *pwrseq; in mmc_pwrseq_emmc_probe() local
64 pwrseq = devm_kzalloc(dev, sizeof(*pwrseq), GFP_KERNEL); in mmc_pwrseq_emmc_probe()
[all …]
Dpwrseq.h32 int mmc_pwrseq_register(struct mmc_pwrseq *pwrseq);
33 void mmc_pwrseq_unregister(struct mmc_pwrseq *pwrseq);
44 static inline int mmc_pwrseq_register(struct mmc_pwrseq *pwrseq) in mmc_pwrseq_register() argument
48 static inline void mmc_pwrseq_unregister(struct mmc_pwrseq *pwrseq) {} in mmc_pwrseq_unregister() argument
/kernel/linux/linux-5.10/arch/arm64/boot/dts/amlogic/
Dmeson-gxl-s805x-p241.dts38 emmc_pwrseq: emmc-pwrseq {
39 compatible = "mmc-pwrseq-emmc";
87 emmc_pwrseq: emmc-pwrseq {
88 compatible = "mmc-pwrseq-emmc";
99 sdio_pwrseq: sdio-pwrseq {
100 compatible = "mmc-pwrseq-simple";
171 mmc-pwrseq = <&sdio_pwrseq>;
192 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxl-s905x-nexbox-a95x.dts66 emmc_pwrseq: emmc-pwrseq {
67 compatible = "mmc-pwrseq-emmc";
78 sdio_pwrseq: sdio-pwrseq {
79 compatible = "mmc-pwrseq-simple";
171 mmc-pwrseq = <&sdio_pwrseq>;
210 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxm-rbox-pro.dts75 emmc_pwrseq: emmc-pwrseq {
76 compatible = "mmc-pwrseq-emmc";
87 sdio_pwrseq: sdio-pwrseq {
88 compatible = "mmc-pwrseq-simple";
154 mmc-pwrseq = <&sdio_pwrseq>;
196 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxl-s905x-hwacom-amazetv.dts66 emmc_pwrseq: emmc-pwrseq {
67 compatible = "mmc-pwrseq-emmc";
78 sdio_pwrseq: sdio-pwrseq {
79 compatible = "mmc-pwrseq-simple";
155 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxl-s905x-p212.dtsi70 emmc_pwrseq: emmc-pwrseq {
71 compatible = "mmc-pwrseq-emmc";
82 sdio_pwrseq: sdio-pwrseq {
83 compatible = "mmc-pwrseq-simple";
124 mmc-pwrseq = <&sdio_pwrseq>;
163 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxbb-p20x.dtsi77 emmc_pwrseq: emmc-pwrseq {
78 compatible = "mmc-pwrseq-emmc";
89 sdio_pwrseq: sdio-pwrseq {
90 compatible = "mmc-pwrseq-simple";
176 mmc-pwrseq = <&sdio_pwrseq>;
223 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxbb-wetek.dtsi78 emmc_pwrseq: emmc-pwrseq {
79 compatible = "mmc-pwrseq-emmc";
90 sdio_pwrseq: sdio-pwrseq {
91 compatible = "mmc-pwrseq-simple";
213 mmc-pwrseq = <&sdio_pwrseq>;
257 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxbb-vega-s95.dtsi71 emmc_pwrseq: emmc-pwrseq {
72 compatible = "mmc-pwrseq-emmc";
94 sdio_pwrseq: sdio-pwrseq {
95 compatible = "mmc-pwrseq-simple";
190 mmc-pwrseq = <&sdio_pwrseq>;
234 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxbb-nexbox-a95x.dts103 emmc_pwrseq: emmc-pwrseq {
104 compatible = "mmc-pwrseq-emmc";
115 sdio_pwrseq: sdio-pwrseq {
116 compatible = "mmc-pwrseq-simple";
226 mmc-pwrseq = <&sdio_pwrseq>;
265 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gx-p23x-q20x.dtsi82 emmc_pwrseq: emmc-pwrseq {
83 compatible = "mmc-pwrseq-emmc";
94 sdio_pwrseq: sdio-pwrseq {
95 compatible = "mmc-pwrseq-simple";
270 mmc-pwrseq = <&sdio_pwrseq>;
309 mmc-pwrseq = <&emmc_pwrseq>;
Dmeson-gxm-khadas-vim2.dts45 emmc_pwrseq: emmc-pwrseq {
46 compatible = "mmc-pwrseq-emmc";
95 sdio_pwrseq: sdio-pwrseq {
96 compatible = "mmc-pwrseq-simple";
281 mmc-pwrseq = <&sdio_pwrseq>;
325 mmc-pwrseq = <&emmc_pwrseq>;
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dsun7i-a20-olinuxino-lime-emmc.dts13 mmc2_pwrseq: pwrseq {
14 compatible = "mmc-pwrseq-emmc";
24 mmc-pwrseq = <&mmc2_pwrseq>;
Dimx6ull-colibri-wifi.dtsi14 wifi_pwrseq: sdio-pwrseq {
15 compatible = "mmc-pwrseq-simple";
47 mmc-pwrseq = <&wifi_pwrseq>;
Dsun7i-a20-olimex-som-evb-emmc.dts18 compatible = "mmc-pwrseq-emmc";
25 mmc-pwrseq = <&mmc2_pwrseq>;
Dsun7i-a20-olimex-som204-evb-emmc.dts17 compatible = "mmc-pwrseq-emmc";
24 mmc-pwrseq = <&mmc2_pwrseq>;
Dbcm2835-rpi-zero-w.dts31 wifi_pwrseq: wifi-pwrseq {
32 compatible = "mmc-pwrseq-simple";
120 mmc-pwrseq = <&wifi_pwrseq>;
Dimx6ul-imx6ull-opos6ul.dtsi18 usdhc3_pwrseq: usdhc3-pwrseq {
19 compatible = "mmc-pwrseq-simple";
73 mmc-pwrseq = <&usdhc3_pwrseq>;
/kernel/linux/linux-5.10/arch/arm64/boot/dts/rockchip/
Drk3368-r88.dts23 emmc_pwrseq: emmc-pwrseq {
24 compatible = "mmc-pwrseq-emmc";
61 sdio_pwrseq: sdio-pwrseq {
62 compatible = "mmc-pwrseq-simple";
152 mmc-pwrseq = <&emmc_pwrseq>;
216 mmc-pwrseq = <&sdio_pwrseq>;
Drk3399-sapphire-excavator.dts122 sdio_pwrseq: sdio-pwrseq {
123 compatible = "mmc-pwrseq-simple";
204 sdio-pwrseq {
224 mmc-pwrseq = <&sdio_pwrseq>;
/kernel/linux/linux-5.10/arch/mips/boot/dts/ingenic/
Dcu1830-neo.dts34 wlan_pwrseq: msc1-pwrseq {
35 compatible = "mmc-pwrseq-simple";
101 mmc-pwrseq = <&wlan_pwrseq>;

12345678