clk.c (0c4565de5fb9cffd6744bc84b26bae2cbb892671) | clk.c (306a7f9139318a28063282a15b9f9ebacf09c9b9) |
---|---|
1/* 2 * Copyright (c) 2012, 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 --- 5 unchanged lines hidden (view full) --- 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17#include <linux/clk.h> 18#include <linux/clk-provider.h> 19#include <linux/of.h> 20#include <linux/clk/tegra.h> 21#include <linux/reset-controller.h> | 1/* 2 * Copyright (c) 2012, 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 --- 5 unchanged lines hidden (view full) --- 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17#include <linux/clk.h> 18#include <linux/clk-provider.h> 19#include <linux/of.h> 20#include <linux/clk/tegra.h> 21#include <linux/reset-controller.h> |
22#include <linux/tegra-soc.h> | |
23 | 22 |
23#include <soc/tegra/fuse.h> 24 |
|
24#include "clk.h" 25 26#define CLK_OUT_ENB_L 0x010 27#define CLK_OUT_ENB_H 0x014 28#define CLK_OUT_ENB_U 0x018 29#define CLK_OUT_ENB_V 0x360 30#define CLK_OUT_ENB_W 0x364 31#define CLK_OUT_ENB_X 0x280 --- 240 unchanged lines hidden (view full) --- 272 273void __init tegra_register_devclks(struct tegra_devclk *dev_clks, int num) 274{ 275 int i; 276 277 for (i = 0; i < num; i++, dev_clks++) 278 clk_register_clkdev(clks[dev_clks->dt_id], dev_clks->con_id, 279 dev_clks->dev_id); | 25#include "clk.h" 26 27#define CLK_OUT_ENB_L 0x010 28#define CLK_OUT_ENB_H 0x014 29#define CLK_OUT_ENB_U 0x018 30#define CLK_OUT_ENB_V 0x360 31#define CLK_OUT_ENB_W 0x364 32#define CLK_OUT_ENB_X 0x280 --- 240 unchanged lines hidden (view full) --- 273 274void __init tegra_register_devclks(struct tegra_devclk *dev_clks, int num) 275{ 276 int i; 277 278 for (i = 0; i < num; i++, dev_clks++) 279 clk_register_clkdev(clks[dev_clks->dt_id], dev_clks->con_id, 280 dev_clks->dev_id); |
280 281 for (i = 0; i < clk_num; i++) { 282 if (!IS_ERR_OR_NULL(clks[i])) 283 clk_register_clkdev(clks[i], __clk_get_name(clks[i]), 284 "tegra-clk-debug"); 285 } | |
286} 287 288struct clk ** __init tegra_lookup_dt_id(int clk_id, 289 struct tegra_clk *tegra_clk) 290{ 291 if (tegra_clk[clk_id].present) 292 return &clks[tegra_clk[clk_id].dt_id]; 293 else --- 12 unchanged lines hidden --- | 281} 282 283struct clk ** __init tegra_lookup_dt_id(int clk_id, 284 struct tegra_clk *tegra_clk) 285{ 286 if (tegra_clk[clk_id].present) 287 return &clks[tegra_clk[clk_id].dt_id]; 288 else --- 12 unchanged lines hidden --- |