Skip to content

Commit f5005f7

Browse files
Wolfram SangWolfram Sang
authored andcommitted
dt-bindings: add header for generic I2C flags in bindings
Tested-by: Andrey Danin <danindrey@mail.ru> Acked-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent 28c0a84 commit f5005f7

File tree

1 file changed

+18
-0
lines changed
  • include/dt-bindings/i2c

1 file changed

+18
-0
lines changed

include/dt-bindings/i2c/i2c.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* This header provides constants for I2C bindings
3+
*
4+
* Copyright (C) 2015 by Sang Engineering
5+
* Copyright (C) 2015 by Renesas Electronics Corporation
6+
*
7+
* Wolfram Sang <wsa@sang-engineering.com>
8+
*
9+
* GPLv2 only
10+
*/
11+
12+
#ifndef _DT_BINDINGS_I2C_I2C_H
13+
#define _DT_BINDINGS_I2C_I2C_H
14+
15+
#define I2C_TEN_BIT_ADDRESS (1 << 31)
16+
#define I2C_OWN_SLAVE_ADDRESS (1 << 30)
17+
18+
#endif

0 commit comments

Comments
 (0)