3 * Stefan Agner <stefan@agner.ch>
5 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/gp_padctrl.h>
10 #include <asm/arch/pinmux.h>
11 #include <asm/arch-tegra/ap.h>
12 #include <asm/arch-tegra/tegra.h>
16 #include "pinmux-config-colibri_t30.h"
18 int arch_misc_init(void)
20 if (readl(NV_PA_BASE_SRAM + NVBOOTINFOTABLE_BOOTTYPE) ==
22 printf("USB recovery mode\n");
28 * Routine: pinmux_init
29 * Description: Do individual peripheral pinmux configs
31 void pinmux_init(void)
33 pinmux_config_pingrp_table(tegra3_pinmux_common,
34 ARRAY_SIZE(tegra3_pinmux_common));
36 pinmux_config_pingrp_table(unused_pins_lowpower,
37 ARRAY_SIZE(unused_pins_lowpower));
39 /* Initialize any non-default pad configs (APB_MISC_GP regs) */
40 pinmux_config_drvgrp_table(colibri_t30_padctrl,
41 ARRAY_SIZE(colibri_t30_padctrl));
45 * Enable AX88772B USB to LAN controller
47 void pin_mux_usb(void)
49 /* Reset ASIX using LAN_RESET */
50 gpio_request(TEGRA_GPIO(DD, 0), "LAN_RESET");
51 gpio_direction_output(TEGRA_GPIO(DD, 0), 0);
53 gpio_set_value(TEGRA_GPIO(DD, 0), 1);