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
2ea40dec
Commit
2ea40dec
authored
Dec 22, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: mach-sh03: Fix up pata_platform build breakage.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
b5868e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
arch/sh/boards/mach-sh03/setup.c
arch/sh/boards/mach-sh03/setup.c
+20
-9
No files found.
arch/sh/boards/mach-sh03/setup.c
View file @
2ea40dec
...
@@ -29,7 +29,22 @@ static void __init sh03_setup(char **cmdline_p)
...
@@ -29,7 +29,22 @@ static void __init sh03_setup(char **cmdline_p)
board_time_init
=
sh03_time_init
;
board_time_init
=
sh03_time_init
;
}
}
static
struct
resource
cf_ide_resources
[
3
];
static
struct
resource
cf_ide_resources
[]
=
{
[
0
]
=
{
.
start
=
0x1f0
,
.
end
=
0x1f0
+
8
,
.
flags
=
IORESOURCE_IO
,
},
[
1
]
=
{
.
start
=
0x1f0
+
0x206
,
.
end
=
0x1f0
+
8
+
0x206
+
8
,
.
flags
=
IORESOURCE_IO
,
},
[
2
]
=
{
.
start
=
IRL2_IRQ
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
platform_device
cf_ide_device
=
{
static
struct
platform_device
cf_ide_device
=
{
.
name
=
"pata_platform"
,
.
name
=
"pata_platform"
,
...
@@ -74,14 +89,10 @@ static int __init sh03_devices_setup(void)
...
@@ -74,14 +89,10 @@ static int __init sh03_devices_setup(void)
}
}
/* IDE cmd address : 0x1f0-0x1f7 and 0x3f6 */
/* IDE cmd address : 0x1f0-0x1f7 and 0x3f6 */
cf_ide_resources
[
0
].
start
=
(
unsigned
long
)
cf_ide_base
+
0x40
;
cf_ide_resources
[
0
].
start
+=
(
unsigned
long
)
cf_ide_base
;
cf_ide_resources
[
0
].
end
=
(
unsigned
long
)
cf_ide_base
+
0x40
+
0x0f
;
cf_ide_resources
[
0
].
end
+=
(
unsigned
long
)
cf_ide_base
;
cf_ide_resources
[
0
].
flags
=
IORESOURCE_IO
;
cf_ide_resources
[
1
].
start
+=
(
unsigned
long
)
cf_ide_base
;
cf_ide_resources
[
1
].
start
=
(
unsigned
long
)
cf_ide_base
+
0x2c
;
cf_ide_resources
[
1
].
end
+=
(
unsigned
long
)
cf_ide_base
;
cf_ide_resources
[
1
].
end
=
(
unsigned
long
)
cf_ide_base
+
0x2c
+
0x03
;
cf_ide_resources
[
1
].
flags
=
IORESOURCE_IO
;
cf_ide_resources
[
2
].
start
=
IRQ_FATA
;
cf_ide_resources
[
2
].
flags
=
IORESOURCE_IRQ
;
return
platform_add_devices
(
sh03_devices
,
ARRAY_SIZE
(
sh03_devices
));
return
platform_add_devices
(
sh03_devices
,
ARRAY_SIZE
(
sh03_devices
));
}
}
...
...
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