blob: 35ee77712e60369f319baba3ceed384a46cf66c2 [file] [log] [blame]
Patrick Georgi40a3e322015-06-22 19:41:29 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2014 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Patrick Georgi40a3e322015-06-22 19:41:29 +020014 */
15
16#include <soc/addressmap.h>
17#include <soc/clock.h>
18#include <soc/nvidia/tegra/i2c.h>
19
20struct tegra_i2c_bus_info tegra_i2c_info[] = {
21 {
22 .base = (void *)TEGRA_I2C1_BASE,
23 .reset_bit = CLK_L_I2C1,
24 .reset_func = &clock_reset_l
25 },
26 {
27 .base = (void *)TEGRA_I2C2_BASE,
28 .reset_bit = CLK_H_I2C2,
29 .reset_func = &clock_reset_h
30 },
31 {
32 .base = (void *)TEGRA_I2C3_BASE,
33 .reset_bit = CLK_U_I2C3,
34 .reset_func = &clock_reset_u
35 },
36 {
37 .base = (void *)TEGRA_I2C4_BASE,
38 .reset_bit = CLK_V_I2C4,
39 .reset_func = &clock_reset_v
40 },
41 {
42 .base = (void *)TEGRA_I2C5_BASE,
43 .reset_bit = CLK_H_I2C5,
44 .reset_func = &clock_reset_h
45 },
46 {
47 .base = (void *)TEGRA_I2C6_BASE,
48 .reset_bit = CLK_X_I2C6,
49 .reset_func = &clock_reset_x
50 }
51};
52
53unsigned g_num_i2c_buses = ARRAY_SIZE(tegra_i2c_info);