mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 17:22:22 +02:00
ARM: tegra: prototype pinmux_init() in board.h
pinmux_init() is a board-level function, not a pinmux driver function. Move the prototype to a board header rather than the driver header. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
committed by
Tom Warren
parent
6ac1e542c6
commit
07bbd48b47
@@ -24,6 +24,7 @@ void gpio_early_init(void); /* overrideable GPIO config */
|
|||||||
* an empty stub function will be called.
|
* an empty stub function will be called.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void pinmux_init(void); /* overrideable general pinmux setup */
|
||||||
void pin_mux_usb(void); /* overrideable USB pinmux setup */
|
void pin_mux_usb(void); /* overrideable USB pinmux setup */
|
||||||
void pin_mux_spi(void); /* overrideable SPI pinmux setup */
|
void pin_mux_spi(void); /* overrideable SPI pinmux setup */
|
||||||
void pin_mux_nand(void); /* overrideable NAND pinmux setup */
|
void pin_mux_nand(void); /* overrideable NAND pinmux setup */
|
||||||
|
@@ -580,9 +580,6 @@ void pinmux_set_io(enum pmux_pingrp pin, enum pmux_pin_io io);
|
|||||||
*/
|
*/
|
||||||
void pinmux_config_table(struct pingroup_config *config, int len);
|
void pinmux_config_table(struct pingroup_config *config, int len);
|
||||||
|
|
||||||
/* Set a group of pins from a table */
|
|
||||||
void pinmux_init(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the GP pad configs
|
* Set the GP pad configs
|
||||||
*
|
*
|
||||||
|
@@ -584,9 +584,6 @@ void pinmux_set_io(enum pmux_pingrp pin, enum pmux_pin_io io);
|
|||||||
*/
|
*/
|
||||||
void pinmux_config_table(struct pingroup_config *config, int len);
|
void pinmux_config_table(struct pingroup_config *config, int len);
|
||||||
|
|
||||||
/* Set a group of pins from a table */
|
|
||||||
void pinmux_init(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the GP pad configs
|
* Set the GP pad configs
|
||||||
*
|
*
|
||||||
|
@@ -632,9 +632,6 @@ void pinmux_set_io(enum pmux_pingrp pin, enum pmux_pin_io io);
|
|||||||
*/
|
*/
|
||||||
void pinmux_config_table(struct pingroup_config *config, int len);
|
void pinmux_config_table(struct pingroup_config *config, int len);
|
||||||
|
|
||||||
/* Set a group of pins from a table */
|
|
||||||
void pinmux_init(void);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the GP pad configs
|
* Set the GP pad configs
|
||||||
*
|
*
|
||||||
|
@@ -48,6 +48,12 @@ const struct tegra_sysinfo sysinfo = {
|
|||||||
CONFIG_TEGRA_BOARD_STRING
|
CONFIG_TEGRA_BOARD_STRING
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void __pinmux_init(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void pinmux_init(void) __attribute__((weak, alias("__pinmux_init")));
|
||||||
|
|
||||||
void __pin_mux_usb(void)
|
void __pin_mux_usb(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -176,9 +182,7 @@ void gpio_early_init(void) __attribute__((weak, alias("__gpio_early_init")));
|
|||||||
|
|
||||||
int board_early_init_f(void)
|
int board_early_init_f(void)
|
||||||
{
|
{
|
||||||
#if !defined(CONFIG_TEGRA20)
|
|
||||||
pinmux_init();
|
pinmux_init();
|
||||||
#endif
|
|
||||||
board_init_uart_f();
|
board_init_uart_f();
|
||||||
|
|
||||||
/* Initialize periph GPIOs */
|
/* Initialize periph GPIOs */
|
||||||
|
Reference in New Issue
Block a user