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
nexedi
linux
Commits
56ce835b
Commit
56ce835b
authored
Mar 26, 2008
by
Mike Frysinger
Committed by
Bryan Wu
Mar 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Blackfin] arch: add twi resources to CM_BF537 board as reported by Servaes Joordens
Signed-off-by:
Bryan Wu
<
cooloney@kernel.org
>
parent
f6929401
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
arch/blackfin/mach-bf537/boards/cm_bf537.c
arch/blackfin/mach-bf537/boards/cm_bf537.c
+26
-0
No files found.
arch/blackfin/mach-bf537/boards/cm_bf537.c
View file @
56ce835b
...
...
@@ -325,6 +325,28 @@ static struct platform_device bfin_uart_device = {
};
#endif
#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
static
struct
resource
bfin_twi0_resource
[]
=
{
[
0
]
=
{
.
start
=
TWI0_REGBASE
,
.
end
=
TWI0_REGBASE
,
.
flags
=
IORESOURCE_MEM
,
},
[
1
]
=
{
.
start
=
IRQ_TWI
,
.
end
=
IRQ_TWI
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
platform_device
i2c_bfin_twi_device
=
{
.
name
=
"i2c-bfin-twi"
,
.
id
=
0
,
.
num_resources
=
ARRAY_SIZE
(
bfin_twi0_resource
),
.
resource
=
bfin_twi0_resource
,
};
#endif
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
static
struct
platform_device
bfin_sport0_uart_device
=
{
.
name
=
"bfin-sport-uart"
,
...
...
@@ -393,6 +415,10 @@ static struct platform_device *cm_bf537_devices[] __initdata = {
&
bfin_uart_device
,
#endif
#if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE)
&
i2c_bfin_twi_device
,
#endif
#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
&
bfin_sport0_uart_device
,
&
bfin_sport1_uart_device
,
...
...
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