mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-16 01:17:01 +02:00
All identifiers, regardless of use, that start with two underscores are reserved. This means they can't be used in header guards. The style that this project is now to use the full name of the file in capital letters followed by 'H'. For example, for a file called "uart_example.h", the header guard is UART_EXAMPLE_H. The exceptions are files that are imported from other projects: - CryptoCell driver - dt-bindings folders - zlib headers Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
29 lines
607 B
C
29 lines
607 B
C
/*
|
|
* Copyright (C) 2018 Icenowy Zheng <icenowy@aosc.io>
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
* https://spdx.org/licenses
|
|
*/
|
|
/* This driver provides I2C support for Allwinner sunXi SoCs */
|
|
|
|
#ifndef MENTOR_I2C_PLAT_H
|
|
#define MENTOR_I2C_PLAT_H
|
|
|
|
#define CONFIG_SYS_TCLK 24000000
|
|
#define CONFIG_SYS_I2C_SPEED 100000
|
|
#define CONFIG_SYS_I2C_SLAVE 0
|
|
|
|
#define I2C_INTERRUPT_CLEAR_INVERTED
|
|
|
|
struct mentor_i2c_regs {
|
|
uint32_t slave_address;
|
|
uint32_t xtnd_slave_addr;
|
|
uint32_t data;
|
|
uint32_t control;
|
|
uint32_t status;
|
|
uint32_t baudrate;
|
|
uint32_t soft_reset;
|
|
};
|
|
|
|
#endif /* MENTOR_I2C_PLAT_H */
|