mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 22:52:18 +00:00
tegra: add GMC/GMD funcmux entry for SFLASH
This is used on TrimSlice. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
f78d348cb8
commit
a016e144ed
2 changed files with 13 additions and 0 deletions
|
@ -224,6 +224,16 @@ int funcmux_select(enum periph_id id, int config)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PERIPH_ID_SPI1:
|
||||||
|
if (config == FUNCMUX_SPI1_GMC_GMD) {
|
||||||
|
pinmux_set_func(PINGRP_GMC, PMUX_FUNC_SFLASH);
|
||||||
|
pinmux_set_func(PINGRP_GMD, PMUX_FUNC_SFLASH);
|
||||||
|
|
||||||
|
pinmux_tristate_disable(PINGRP_GMC);
|
||||||
|
pinmux_tristate_disable(PINGRP_GMD);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
debug("%s: invalid periph_id %d", __func__, id);
|
debug("%s: invalid periph_id %d", __func__, id);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -54,6 +54,9 @@ enum {
|
||||||
|
|
||||||
/* USB configs */
|
/* USB configs */
|
||||||
FUNCMUX_USB2_ULPI = 0,
|
FUNCMUX_USB2_ULPI = 0,
|
||||||
|
|
||||||
|
/* Serial Flash configs */
|
||||||
|
FUNCMUX_SPI1_GMC_GMD = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue