
28 Sep
2012
28 Sep
'12
12:38 a.m.
On 09/27/2012 03:52 PM, Lucas Stach wrote:
Boards may require a different pinmux setup for NAND than the default one. Add a way to call into board specific code to set this up.
diff --git a/drivers/mtd/nand/tegra_nand.c b/drivers/mtd/nand/tegra_nand.c
void board_nand_init(void) { struct nand_chip *nand = &nand_chip[0];
- pin_mux_nand();
pin_mux_spi() and pin_mux_usb() are both called from board/nvidia/common/board.c right before the relevant drivers are initialized. I think we should centralize the NAND pinmux initialization there too if possible. That way, when we read the whole pinmux from DT in the future, there's only one place to go and clean up.
Admittedly, pin_mux_mmc() ends up being called from board_init_mmc() which is a little unfortunate:-(