coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
i2c.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef AMD_STONEYRIDGE_I2C_H
4
#define AMD_STONEYRIDGE_I2C_H
5
6
#include <types.h>
7
#include <soc/gpio.h>
8
9
#define GPIO_I2C0_SCL BIT(0)
10
#define GPIO_I2C1_SCL BIT(1)
11
#define GPIO_I2C2_SCL BIT(2)
12
#define GPIO_I2C3_SCL BIT(3)
13
#define GPIO_I2C_MASK (BIT(0) | BIT(1) | BIT(2) | BIT(3))
14
15
#define I2C0_SCL_PIN GPIO_145
16
#define I2C1_SCL_PIN GPIO_147
17
#define I2C2_SCL_PIN GPIO_113
18
#define I2C3_SCL_PIN GPIO_19
19
20
#define I2C0_SCL_PIN_IOMUX_GPIOxx GPIO_145_IOMUX_GPIOxx
21
#define I2C1_SCL_PIN_IOMUX_GPIOxx GPIO_147_IOMUX_GPIOxx
22
#define I2C2_SCL_PIN_IOMUX_GPIOxx GPIO_113_IOMUX_GPIOxx
23
#define I2C3_SCL_PIN_IOMUX_GPIOxx GPIO_19_IOMUX_GPIOxx
24
25
#endif
/* AMD_STONEYRIDGE_I2C_H */
src
soc
amd
stoneyridge
include
soc
i2c.h
Generated by
1.9.1