提交 a016e144 编写于 作者: S Stephen Warren 提交者: Albert ARIBAUD (U-Boot)

tegra: add GMC/GMD funcmux entry for SFLASH

This is used on TrimSlice.
Signed-off-by: NStephen Warren <swarren@nvidia.com>
Signed-off-by: NTom Warren <twarren@nvidia.com>
上级 f78d348c
......@@ -224,6 +224,16 @@ int funcmux_select(enum periph_id id, int config)
}
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:
debug("%s: invalid periph_id %d", __func__, id);
return -1;
......
......@@ -54,6 +54,9 @@ enum {
/* USB configs */
FUNCMUX_USB2_ULPI = 0,
/* Serial Flash configs */
FUNCMUX_SPI1_GMC_GMD = 0,
};
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册