src/: Remove g_ prefixes and _g suffixes from variables
[coreboot.git] / src / soc / nvidia / tegra124 / i2c.c
blob0d65b9a018e0582963935e582a51e3f4394a5da5
1 /*
2 * This file is part of the coreboot project.
4 * Copyright 2013 Google Inc.
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.
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.
16 #include <soc/addressmap.h>
17 #include <soc/clock.h>
18 #include <soc/nvidia/tegra/i2c.h>
20 struct tegra_i2c_bus_info tegra_i2c_info[] = {
22 .base = (void *)TEGRA_I2C_BASE,
23 .reset_bit = CLK_L_I2C1,
24 .reset_func = &clock_reset_l
27 .base = (void *)TEGRA_I2C2_BASE,
28 .reset_bit = CLK_H_I2C2,
29 .reset_func = &clock_reset_h
32 .base = (void *)TEGRA_I2C3_BASE,
33 .reset_bit = CLK_U_I2C3,
34 .reset_func = &clock_reset_u
37 .base = (void *)TEGRA_I2C4_BASE,
38 .reset_bit = CLK_V_I2C4,
39 .reset_func = &clock_reset_v
42 .base = (void *)TEGRA_I2C5_BASE,
43 .reset_bit = CLK_H_I2C5,
44 .reset_func = &clock_reset_h
47 .base = (void *)TEGRA_I2C6_BASE,
48 .reset_bit = CLK_X_I2C6,
49 .reset_func = &clock_reset_x
53 unsigned int num_i2c_buses = ARRAY_SIZE(tegra_i2c_info);