It is clear even at this early stage that some board/nvidia code needs to move into the cpu area. Stephen Warren suggested two changes which are the subject of the first two patches in this series.
This series also introduces a new function mux concept, which allows selecting of pin options for a particular peripheral. This makes it easy for boards to set up pin muxing without having to know the details, and copy lots of code. Most platforms will want UARTs to be configured, so we move this into the cpu area also. The new board_init_uart_f() function looks after configuring the UARTs as selected by the CONFIG_TEGRA2_ENABLE_... options. The last patch fixes a build error not introduced by this series. Simon Glass (6): tegra: Move cpu_init_cp15() to arch_cpu_init() tegra: Move clock_early_init() to arch_cpu_init() tegra: Add a function mux feature tegra: Add support for UART init in cpu board.c tegra: Move boards over to use arch-level board UART function tegra: Fix build error in plutux, medcom arch/arm/cpu/armv7/tegra2/Makefile | 2 +- arch/arm/cpu/armv7/tegra2/board.c | 57 +++++++++++++++++++ arch/arm/cpu/armv7/tegra2/funcmux.c | 80 +++++++++++++++++++++++++++ arch/arm/include/asm/arch-tegra2/board.h | 30 ++++++++++ arch/arm/include/asm/arch-tegra2/funcmux.h | 44 +++++++++++++++ board/avionic-design/common/tamonten.c | 50 +---------------- board/nvidia/common/board.c | 82 +--------------------------- include/configs/medcom.h | 2 + include/configs/plutux.h | 2 + 9 files changed, 221 insertions(+), 128 deletions(-) create mode 100644 arch/arm/cpu/armv7/tegra2/funcmux.c create mode 100644 arch/arm/include/asm/arch-tegra2/board.h create mode 100644 arch/arm/include/asm/arch-tegra2/funcmux.h -- 1.7.3.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot