This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你好
我的系統是DM385,kernel是2.6.37.我遇到了SD card沒有辦法掛載的問題.
ls /dev 並沒有 mmcblk0 或 mmcblk0p1的device.是因為driver沒有掛上去嗎?我該怎麼去debug呢?謝謝!!
你好,
以下是我的配置
static struct omap2_hsmmc_info mmc[] = {
{
#ifdef CONFIG_WL12XX_PLATFORM_DATA
//Custom Usage
/* WLAN_EN is GP0[28] */
#define GPIO_WLAN_EN ((0 * 32) + 28)
/* WLAN_IRQ is GP2[2] */
#define GPIO_WLAN_IRQ ((2 * 32) + 2)
.mmc = 1,
.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD,
.gpio_cd = -EINVAL,
.gpio_wp = -EINVAL,
.ocr_mask = MMC_VDD_165_195,//ipnc
.nonremovable = true,
},
{
.mmc = 2,
#else
.mmc = 1,
#endif
.caps = MMC_CAP_4_BIT_DATA,// | MMC_CAP_NEEDS_POLL,
.gpio_cd = -EINVAL, /* Dedicated pins for CD and WP */
.gpio_wp = -EINVAL,
.ocr_mask = MMC_VDD_33_34,
},
{} /* Terminator */
};
我有兩個硬件.一個是配SD卡,另一張是配micro SD卡的.MMC0的線路是相同的.
上面pinmux配置在配micro SD卡的硬件可以成功work,可以順利抓到SD卡.但在配一般SD卡的硬件卻無法順利抓取,所以不知道這兩個有什麼差異?請問有建議再到哪裡debug嗎?謝謝!!
你好
1.從上面附的kernel message,我發現detect micro sd的板子系統抓的是MMC1,而detect sd的板子是抓MMC0,但我們設計上MMC0是給wifi,MMC1是給SD card.是否在系統偵測上有問題了?
2.另外,偵測micro sd的板子是有wifi的,而偵測sd的板子是暫時沒有wifi,是將來預留給wifi用的.是否因為這樣的問題而導致出現問題一?
3.我的pinmux是如下列的,
static struct omap2_hsmmc_info mmc[] = {
{
//Custom Usage
/* WLAN_EN is GP0[28] */
#define GPIO_WLAN_EN ((0 * 32) + 28)
/* WLAN_IRQ is GP2[2] */
#define GPIO_WLAN_IRQ ((2 * 32) + 2)
.mmc = 1,
.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD,
.gpio_cd = -EINVAL,
.gpio_wp = -EINVAL,
.ocr_mask = MMC_VDD_165_195,//ipnc
.nonremovable = true,
},
{
.mmc = 2,
.caps = MMC_CAP_4_BIT_DATA,// | MMC_CAP_NEEDS_POLL,
.gpio_cd = -EINVAL, /* Dedicated pins for CD and WP */
.gpio_wp = -EINVAL,
.ocr_mask = MMC_VDD_33_34,
},
{} /* Terminator */
};
你好,
1.
原來的sd card detect pin是在GP1[6], 而我在mux.h裡將它修改後,系統就認不到這個sd card了.看起來是有作用的
/* -80 */ BIT(0), BIT(0), BIT(0), BIT(1), ============>/* -80 */ BIT(0), BIT(0), BIT(0), BIT(0)
但我想將detect pin改到GP3[20],而在mux.h裡應該是PINCNTL228,
/* -228 */ BIT(0), BIT(0), BIT(0), BIT(0), ============> /* -228 */ BIT(0), BIT(0), BIT(0), BIT(1),
測試的結果是沒有用的,是否我還缺了修改哪裡呢?
2.
請問sd card detect pin GP1[6]可以修改成其他的GPIO pin腳嗎?