Tom Warren | 7a3fa01 | 2013-01-28 13:32:13 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2010-2013, NVIDIA CORPORATION. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms and conditions of the GNU General Public License, |
| 6 | * version 2, as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 11 | * more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #include <common.h> |
| 18 | #include <asm/arch/pinmux.h> |
Tom Warren | 3086f6a | 2013-03-18 14:47:55 -0700 | [diff] [blame^] | 19 | #include <asm/arch/gp_padctrl.h> |
Tom Warren | 7a3fa01 | 2013-01-28 13:32:13 +0000 | [diff] [blame] | 20 | #include "pinmux-config-dalmore.h" |
| 21 | |
| 22 | /* |
| 23 | * Routine: pinmux_init |
| 24 | * Description: Do individual peripheral pinmux configs |
| 25 | */ |
| 26 | void pinmux_init(void) |
| 27 | { |
Tom Warren | 8495b22 | 2013-03-01 14:38:20 -0700 | [diff] [blame] | 28 | pinmux_config_table(tegra114_pinmux_set_nontristate, |
| 29 | ARRAY_SIZE(tegra114_pinmux_set_nontristate)); |
| 30 | |
Tom Warren | 7a3fa01 | 2013-01-28 13:32:13 +0000 | [diff] [blame] | 31 | pinmux_config_table(tegra114_pinmux_common, |
| 32 | ARRAY_SIZE(tegra114_pinmux_common)); |
| 33 | |
| 34 | pinmux_config_table(unused_pins_lowpower, |
| 35 | ARRAY_SIZE(unused_pins_lowpower)); |
Tom Warren | 3086f6a | 2013-03-18 14:47:55 -0700 | [diff] [blame^] | 36 | |
| 37 | /* Initialize any non-default pad configs (APB_MISC_GP regs) */ |
| 38 | padgrp_config_table(dalmore_padctrl, ARRAY_SIZE(dalmore_padctrl)); |
Tom Warren | 7a3fa01 | 2013-01-28 13:32:13 +0000 | [diff] [blame] | 39 | } |