[root@buildroot:/]#
[root@buildroot:/]# ls /dev/sdio0
/dev/sdio0
[root@buildroot:/]#
[root@buildroot:/]# ls /sys/bus/sdio/devices/
mmc0:2ab1:1
[root@buildroot:/]#
[root@buildroot:/]# cat /sys/devices/platform/ff380000.dwmmc/of_node/name
dwmmc[root@buildroot:/]#[root@buildroot:/]#
[root@buildroot:/]#
[root@buildroot:/]# cat /sys/devices/platform/ff380000.dwmmc/of_node/compatible
rockchip,px30-dw-mshcrockchip,rk3288-dw-mshc
[root@buildroot:/]#
- <blockquote>static int dw_mci_card_busy(struct mmc_host *mmc)
复制代码
- /* EVB-X301 micro SD card */
- &sdio {
- status = "okay";
- clock-frequency = <50000000>;
- clock-freq-min-max = <200000 20000000>;
- bus-width = <4>;
- cap-sd-highspeed;
- //cap-sdio-irq;
- disable-wp;
- keep-power-in-suspend;
- //mmc-pwrseq = <&sdio_pwrseq>;
- non-removable;
- num-slots = <1>;
- supports-sdio;
- };
复制代码
- sdio: dwmmc@ff380000 {
- compatible = "rockchip,px30-dw-mshc", "rockchip,rk3288-dw-mshc";
- reg = <0x0 0xff380000 0x0 0x4000>;
- max-frequency = <150000000>;
- clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
- <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
- clock-names = "biu", "ciu", "ciu-drv", "ciu-sample";
- assigned-clocks = <&cru SCLK_SDIO>;
- assigned-clock-parents = <&cru SCLK_SDIO_DIV50>;
- power-domains = <&power PX30_PD_MMC_NAND>;
- fifo-depth = <0x100>;
- interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
- pinctrl-names = "default";
- pinctrl-0 = <&sdio_bus4 &sdio_cmd &sdio_clk>;
- status = "disabled";
- };
复制代码
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |