Colin Cross | d861196 | 2010-01-28 16:40:29 -0800 | [diff] [blame] | 1 | /* |
| 2 | * arch/arm/mach-tegra/include/mach/clk.h |
| 3 | * |
| 4 | * Copyright (C) 2010 Google, Inc. |
| 5 | * |
| 6 | * Author: |
| 7 | * Erik Gilling <konkers@google.com> |
| 8 | * |
| 9 | * This software is licensed under the terms of the GNU General Public |
| 10 | * License version 2, as published by the Free Software Foundation, and |
| 11 | * may be copied, distributed, and modified under those terms. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | */ |
| 19 | |
| 20 | #ifndef __MACH_CLK_H |
| 21 | #define __MACH_CLK_H |
| 22 | |
Colin Cross | b48b5f5 | 2011-01-22 21:24:14 -0800 | [diff] [blame] | 23 | struct clk; |
| 24 | |
Peter De Schrijver | 4fccf75 | 2012-01-09 05:35:11 +0000 | [diff] [blame] | 25 | enum tegra_clk_ex_param { |
| 26 | TEGRA_CLK_VI_INP_SEL, |
| 27 | TEGRA_CLK_DTV_INVERT, |
| 28 | TEGRA_CLK_NAND_PAD_DIV2_ENB, |
| 29 | TEGRA_CLK_PLLD_CSI_OUT_ENB, |
| 30 | TEGRA_CLK_PLLD_DSI_OUT_ENB, |
| 31 | TEGRA_CLK_PLLD_MIPI_MUX_SEL, |
| 32 | }; |
| 33 | |
Colin Cross | d861196 | 2010-01-28 16:40:29 -0800 | [diff] [blame] | 34 | void tegra_periph_reset_deassert(struct clk *c); |
| 35 | void tegra_periph_reset_assert(struct clk *c); |
| 36 | |
Colin Cross | 4729fd7 | 2011-02-12 16:43:05 -0800 | [diff] [blame] | 37 | unsigned long clk_get_rate_all_locked(struct clk *c); |
Peter De Schrijver | 742face | 2011-12-14 17:03:15 +0200 | [diff] [blame] | 38 | void tegra2_sdmmc_tap_delay(struct clk *c, int delay); |
Peter De Schrijver | 4fccf75 | 2012-01-09 05:35:11 +0000 | [diff] [blame] | 39 | int tegra_clk_cfg_ex(struct clk *c, enum tegra_clk_ex_param p, u32 setting); |
Colin Cross | 9743b38 | 2011-02-12 18:24:32 -0800 | [diff] [blame] | 40 | |
Colin Cross | d861196 | 2010-01-28 16:40:29 -0800 | [diff] [blame] | 41 | #endif |