Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ea9b706b
Commit
ea9b706b
authored
Aug 20, 2014
by
Sonic Zhang
Committed by
Steven Miao
Apr 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bf609: add gpio soft switch platform data for mcp23017 i2c devices
Signed-off-by:
Sonic Zhang
<
sonic.zhang@analog.com
>
parent
374feb1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
arch/blackfin/mach-bf609/boards/ezkit.c
arch/blackfin/mach-bf609/boards/ezkit.c
+27
-0
No files found.
arch/blackfin/mach-bf609/boards/ezkit.c
View file @
ea9b706b
...
@@ -1862,6 +1862,19 @@ static struct platform_device i2c_bfin_twi1_device = {
...
@@ -1862,6 +1862,19 @@ static struct platform_device i2c_bfin_twi1_device = {
};
};
#endif
#endif
#if IS_ENABLED(CONFIG_GPIO_MCP23S08)
#include <linux/spi/mcp23s08.h>
static
const
struct
mcp23s08_platform_data
bfin_mcp23s08_soft_switch0
=
{
.
base
=
120
,
};
static
const
struct
mcp23s08_platform_data
bfin_mcp23s08_soft_switch1
=
{
.
base
=
130
,
};
static
const
struct
mcp23s08_platform_data
bfin_mcp23s08_soft_switch2
=
{
.
base
=
140
,
};
#endif
static
struct
i2c_board_info
__initdata
bfin_i2c_board_info0
[]
=
{
static
struct
i2c_board_info
__initdata
bfin_i2c_board_info0
[]
=
{
#if IS_ENABLED(CONFIG_INPUT_ADXL34X_I2C)
#if IS_ENABLED(CONFIG_INPUT_ADXL34X_I2C)
{
{
...
@@ -1881,6 +1894,20 @@ static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
...
@@ -1881,6 +1894,20 @@ static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
I2C_BOARD_INFO
(
"ssm2602"
,
0x1b
),
I2C_BOARD_INFO
(
"ssm2602"
,
0x1b
),
},
},
#endif
#endif
#if IS_ENABLED(CONFIG_GPIO_MCP23S08)
{
I2C_BOARD_INFO
(
"mcp23017"
,
0x21
),
.
platform_data
=
(
void
*
)
&
bfin_mcp23s08_soft_switch0
},
{
I2C_BOARD_INFO
(
"mcp23017"
,
0x22
),
.
platform_data
=
(
void
*
)
&
bfin_mcp23s08_soft_switch1
},
{
I2C_BOARD_INFO
(
"mcp23017"
,
0x23
),
.
platform_data
=
(
void
*
)
&
bfin_mcp23s08_soft_switch2
},
#endif
};
};
static
struct
i2c_board_info
__initdata
bfin_i2c_board_info1
[]
=
{
static
struct
i2c_board_info
__initdata
bfin_i2c_board_info1
[]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment