X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Favionic-design%2Fcommon%2Ftamonten.c;h=988f057a281cab446f12824a89775ef51878a544;hb=83d290c56fab2d38cd1ab4c4cc7099559c1d5046;hp=915247c760c69f14c523ac782221f3430c55f02f;hpb=22d58506f5d04918d2bde62c5fe71abee24e4ea8;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/avionic-design/common/tamonten.c b/board/avionic-design/common/tamonten.c index 915247c..988f057 100644 --- a/board/avionic-design/common/tamonten.c +++ b/board/avionic-design/common/tamonten.c @@ -1,83 +1,43 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2010,2011 * NVIDIA Corporation * (C) Copyright 2011-2012 * Avionic Design GmbH - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA */ #include #include #include #include -#include -#include -#include -#include #include #include #include -#include -#include - -#ifdef CONFIG_TEGRA2_MMC -#include -#endif - -/* - * Routine: gpio_config_uart - * Description: Does nothing on Tamonten - no conflict w/SPI. - */ -void gpio_config_uart(void) -{ -} +#include +#include +#include +#include +#include #ifdef CONFIG_BOARD_EARLY_INIT_F void gpio_early_init(void) { - gpio_request(GPIO_PI4, NULL); - gpio_direction_output(GPIO_PI4, 1); + gpio_request(TEGRA_GPIO(I, 4), NULL); + gpio_direction_output(TEGRA_GPIO(I, 4), 1); } #endif -#ifdef CONFIG_TEGRA2_MMC +#ifdef CONFIG_MMC_SDHCI_TEGRA /* * Routine: pin_mux_mmc * Description: setup the pin muxes/tristate values for the SDMMC(s) */ -static void pin_mux_mmc(void) +void pin_mux_mmc(void) { funcmux_select(PERIPH_ID_SDMMC4, FUNCMUX_SDMMC4_ATB_GMA_GME_8_BIT); + /* for write-protect GPIO PI6 */ + pinmux_tristate_disable(PMUX_PINGRP_ATA); /* for CD GPIO PH2 */ - pinmux_tristate_disable(PINGRP_ATD); -} - -/* this is a weak define that we are overriding */ -int board_mmc_init(bd_t *bd) -{ - /* Enable muxes, etc. for SDMMC controllers */ - pin_mux_mmc(); - - /* init dev 0, SD slot, with 4-bit bus */ - tegra2_mmc_init(0, 4, -1, GPIO_PH2); - - return 0; + pinmux_tristate_disable(PMUX_PINGRP_ATD); } #endif