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
e37fe183
Commit
e37fe183
authored
Feb 06, 2004
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc32: Update PowerMac motherboard support
add support for newer laptops and G5 desktops
parent
fea796e8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
478 additions
and
127 deletions
+478
-127
arch/ppc/platforms/pmac_feature.c
arch/ppc/platforms/pmac_feature.c
+463
-123
include/asm-ppc/machdep.h
include/asm-ppc/machdep.h
+1
-1
include/asm-ppc/pmac_feature.h
include/asm-ppc/pmac_feature.h
+14
-3
No files found.
arch/ppc/platforms/pmac_feature.c
View file @
e37fe183
This diff is collapsed.
Click to expand it.
include/asm-ppc/machdep.h
View file @
e37fe183
...
...
@@ -95,7 +95,7 @@ struct machdep_calls {
* hook used to control some machine specific features (like reset
* lines, chip power control, etc...).
*/
int
(
*
feature_call
)(
unsigned
int
feature
,
...);
long
(
*
feature_call
)(
unsigned
int
feature
,
...);
#ifdef CONFIG_SMP
/* functions for dealing with other cpus */
...
...
include/asm-ppc/pmac_feature.h
View file @
e37fe183
...
...
@@ -112,6 +112,10 @@
*/
#define PMAC_TYPE_UNKNOWN_INTREPID 0x11f
/* Generic */
/* MacRISC4 / G5 machines
*/
#define PMAC_TYPE_POWERMAC_G5 0x150
/* First tower */
/*
* Motherboard flags
*/
...
...
@@ -131,8 +135,8 @@
*/
struct
device_node
;
static
inline
int
pmac_call_feature
(
int
selector
,
struct
device_node
*
node
,
int
param
,
int
value
)
static
inline
long
pmac_call_feature
(
int
selector
,
struct
device_node
*
node
,
long
param
,
long
value
)
{
if
(
!
ppc_md
.
feature_call
)
return
-
ENODEV
;
...
...
@@ -262,9 +266,15 @@ static inline int pmac_call_feature(int selector, struct device_node* node,
*/
#define PMAC_FTR_WRITE_GPIO PMAC_FTR_DEF(18)
/* PMAC_FTR_ENABLE_MPIC
*
* Enable the MPIC cell
*/
#define PMAC_FTR_ENABLE_MPIC PMAC_FTR_DEF(19)
/* Don't use those directly, they are for the sake of pmac_setup.c */
extern
int
pmac_do_feature_call
(
unsigned
int
selector
,
...);
extern
long
pmac_do_feature_call
(
unsigned
int
selector
,
...);
extern
void
pmac_feature_init
(
void
);
#define PMAC_FTR_DEF(x) ((_MACH_Pmac << 16) | (x))
...
...
@@ -289,6 +299,7 @@ enum {
macio_keylargo
,
macio_pangea
,
macio_intrepid
,
macio_keylargo2
,
};
struct
macio_chip
...
...
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