mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-08-24 06:06:17 -04:00
tegra: Add NAND support to funcmux
Add selection of NAND flash pins to the funcmux. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
b572595ee9
commit
35e1132c88
@ -234,6 +234,13 @@ int funcmux_select(enum periph_id id, int config)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PERIPH_ID_NDFLASH:
|
||||||
|
if (config == FUNCMUX_NDFLASH_ATC) {
|
||||||
|
pinmux_set_func(PINGRP_ATC, PMUX_FUNC_NAND);
|
||||||
|
pinmux_tristate_disable(PINGRP_ATC);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
debug("%s: invalid periph_id %d", __func__, id);
|
debug("%s: invalid periph_id %d", __func__, id);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -57,6 +57,9 @@ enum {
|
|||||||
|
|
||||||
/* Serial Flash configs */
|
/* Serial Flash configs */
|
||||||
FUNCMUX_SPI1_GMC_GMD = 0,
|
FUNCMUX_SPI1_GMC_GMD = 0,
|
||||||
|
|
||||||
|
/* NAND flags */
|
||||||
|
FUNCMUX_NDFLASH_ATC = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user