1 // Copyright 2015-2020 Espressif Systems (Shanghai) PTE LTD
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #include "soc/sdmmc_periph.h"
16 
17 const sdmmc_slot_info_t sdmmc_slot_info[SOC_SDMMC_NUM_SLOTS] = {
18     {
19         .width = 8,
20         .card_detect = SDHOST_CARD_DETECT_N_1_IDX,
21         .write_protect = SDHOST_CARD_WRITE_PRT_1_IDX,
22         .card_int = SDHOST_CARD_INT_N_1_IDX,
23     },
24     {
25         .width = 8,
26         .card_detect = SDHOST_CARD_DETECT_N_2_IDX,
27         .write_protect = SDHOST_CARD_WRITE_PRT_2_IDX,
28         .card_int = SDHOST_CARD_INT_N_2_IDX,
29     }
30 };
31 
32 const sdmmc_slot_io_info_t sdmmc_slot_gpio_sig[SOC_SDMMC_NUM_SLOTS] = {
33     {
34         .clk = SDHOST_CCLK_OUT_1_IDX,
35         .cmd = SDHOST_CCMD_OUT_1_IDX,
36         .d0 = SDHOST_CDATA_OUT_10_IDX,
37         .d1 = SDHOST_CDATA_OUT_11_IDX,
38         .d2 = SDHOST_CDATA_OUT_12_IDX,
39         .d3 = SDHOST_CDATA_OUT_13_IDX,
40         .d4 = SDHOST_CDATA_OUT_14_IDX,
41         .d5 = SDHOST_CDATA_OUT_15_IDX,
42         .d6 = SDHOST_CDATA_OUT_16_IDX,
43         .d7 = SDHOST_CDATA_OUT_17_IDX,
44     },
45     {
46         .clk = SDHOST_CCLK_OUT_2_IDX,
47         .cmd = SDHOST_CCMD_OUT_2_IDX,
48         .d0 = SDHOST_CDATA_OUT_20_IDX,
49         .d1 = SDHOST_CDATA_OUT_21_IDX,
50         .d2 = SDHOST_CDATA_OUT_22_IDX,
51         .d3 = SDHOST_CDATA_OUT_23_IDX,
52         .d4 = SDHOST_CDATA_OUT_24_IDX,
53         .d5 = SDHOST_CDATA_OUT_25_IDX,
54         .d6 = SDHOST_CDATA_OUT_26_IDX,
55         .d7 = SDHOST_CDATA_OUT_27_IDX,
56     }
57 };
58