/kernel/linux/linux-5.10/drivers/mmc/core/ |
D | pwrseq_simple.c | 26 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 …]
|
D | pwrseq.c | 37 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 …]
|
D | pwrseq_sd8787.c | 27 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 …]
|
D | pwrseq_emmc.c | 25 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 …]
|
D | pwrseq.h | 32 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/ |
D | meson-gxl-s805x-p241.dts | 38 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>;
|
D | meson-gxl-s905x-nexbox-a95x.dts | 66 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>;
|
D | meson-gxm-rbox-pro.dts | 75 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>;
|
D | meson-gxl-s905x-hwacom-amazetv.dts | 66 emmc_pwrseq: emmc-pwrseq { 67 compatible = "mmc-pwrseq-emmc"; 78 sdio_pwrseq: sdio-pwrseq { 79 compatible = "mmc-pwrseq-simple"; 155 mmc-pwrseq = <&emmc_pwrseq>;
|
D | meson-gxl-s905x-p212.dtsi | 70 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>;
|
D | meson-gxbb-p20x.dtsi | 77 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>;
|
D | meson-gxbb-wetek.dtsi | 78 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>;
|
D | meson-gxbb-vega-s95.dtsi | 71 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>;
|
D | meson-gxbb-nexbox-a95x.dts | 103 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>;
|
D | meson-gx-p23x-q20x.dtsi | 82 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>;
|
D | meson-gxm-khadas-vim2.dts | 45 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/ |
D | sun7i-a20-olinuxino-lime-emmc.dts | 13 mmc2_pwrseq: pwrseq { 14 compatible = "mmc-pwrseq-emmc"; 24 mmc-pwrseq = <&mmc2_pwrseq>;
|
D | imx6ull-colibri-wifi.dtsi | 14 wifi_pwrseq: sdio-pwrseq { 15 compatible = "mmc-pwrseq-simple"; 47 mmc-pwrseq = <&wifi_pwrseq>;
|
D | sun7i-a20-olimex-som-evb-emmc.dts | 18 compatible = "mmc-pwrseq-emmc"; 25 mmc-pwrseq = <&mmc2_pwrseq>;
|
D | sun7i-a20-olimex-som204-evb-emmc.dts | 17 compatible = "mmc-pwrseq-emmc"; 24 mmc-pwrseq = <&mmc2_pwrseq>;
|
D | bcm2835-rpi-zero-w.dts | 31 wifi_pwrseq: wifi-pwrseq { 32 compatible = "mmc-pwrseq-simple"; 120 mmc-pwrseq = <&wifi_pwrseq>;
|
D | imx6ul-imx6ull-opos6ul.dtsi | 18 usdhc3_pwrseq: usdhc3-pwrseq { 19 compatible = "mmc-pwrseq-simple"; 73 mmc-pwrseq = <&usdhc3_pwrseq>;
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/rockchip/ |
D | rk3368-r88.dts | 23 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>;
|
D | rk3399-sapphire-excavator.dts | 122 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/ |
D | cu1830-neo.dts | 34 wlan_pwrseq: msc1-pwrseq { 35 compatible = "mmc-pwrseq-simple"; 101 mmc-pwrseq = <&wlan_pwrseq>;
|