mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
SDIO: Commit optional code to run at 50MHz.
This commit is contained in:
parent
6f65cdf41e
commit
2993f7be1d
@ -200,8 +200,14 @@ static void sdio_cclk_set_400khz(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void sdio_cclk_set_fast(void) {
|
static void sdio_cclk_set_fast(void) {
|
||||||
|
#if defined(PORTAPACK_FAST_SDIO)
|
||||||
|
/* 200MHz / (2 * 2) = 50MHz */
|
||||||
|
/* TODO: Adjust SCU pin configurations: pull-up/down, slew, glitch filter? */
|
||||||
|
sdio_cclk_set(2);
|
||||||
|
#else
|
||||||
/* 200MHz / (2 * 4) = 25MHz */
|
/* 200MHz / (2 * 4) = 25MHz */
|
||||||
sdio_cclk_set(4);
|
sdio_cclk_set(4);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sdio_width_set_1bit(void) {
|
static void sdio_width_set_1bit(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user