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
f3e19f32
Commit
f3e19f32
authored
May 01, 2003
by
Benjamin Herrenschmidt
Committed by
Paul Mackerras
May 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Updates for newer PowerMac/PowerBook machines.
parent
988ce1a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
arch/ppc/platforms/pmac_cpufreq.c
arch/ppc/platforms/pmac_cpufreq.c
+9
-3
arch/ppc/platforms/pmac_feature.c
arch/ppc/platforms/pmac_feature.c
+15
-3
No files found.
arch/ppc/platforms/pmac_cpufreq.c
View file @
f3e19f32
...
...
@@ -262,13 +262,19 @@ pmac_cpufreq_setup(void)
goto
out
;
cur_freq
=
(
*
value
)
/
1000
;
/* Check for tibook 800Mhz or 1Ghz */
if
(
machine_is_compatible
(
"PowerBook3,4"
)
||
machine_is_compatible
(
"PowerBook3,5"
))
{
/* Check for newer machines */
if
(
machine_is_compatible
(
"PowerBook3,4"
)
||
machine_is_compatible
(
"PowerBook3,5"
)
||
machine_is_compatible
(
"MacRISC3"
))
{
value
=
(
u32
*
)
get_property
(
cpunode
,
"min-clock-frequency"
,
NULL
);
if
(
!
value
)
goto
out
;
low_freq
=
(
*
value
)
/
1000
;
/* The PowerBook G4 12" (PowerBook6,1) has an error in the device-tree
* here */
if
(
low_freq
<
100000
)
low_freq
*=
10
;
value
=
(
u32
*
)
get_property
(
cpunode
,
"max-clock-frequency"
,
NULL
);
if
(
!
value
)
goto
out
;
...
...
arch/ppc/platforms/pmac_feature.c
View file @
f3e19f32
...
...
@@ -52,8 +52,8 @@
#endif
/* Exported from arch/ppc/kernel/idle.c */
extern
int
powersave_nap
;
extern
int
powersave_lowspeed
;
extern
int
powersave_nap
;
/*
* We use a single global lock to protect accesses. Each driver has
...
...
@@ -1894,10 +1894,22 @@ static struct pmac_mb_def pmac_mb_defs[] __pmacdata = {
PMAC_TYPE_RACKMAC
,
rackmac_features
,
0
,
},
{
"RackMac1,2"
,
"XServe rev. 2"
,
PMAC_TYPE_RACKMAC
,
rackmac_features
,
0
,
},
{
"PowerMac3,6"
,
"PowerMac G4 Windtunnel"
,
PMAC_TYPE_WINDTUNNEL
,
rackmac_features
,
0
,
},
{
"PowerBook5,1"
,
"PowerBook G4 17
\"
"
,
PMAC_TYPE_UNKNOWN_INTREPID
,
intrepid_features
,
PMAC_MB_HAS_FW_POWER
|
PMAC_MB_MOBILE
,
},
{
"PowerBook6,1"
,
"PowerBook G4 12
\"
"
,
PMAC_TYPE_UNKNOWN_INTREPID
,
intrepid_features
,
PMAC_MB_HAS_FW_POWER
|
PMAC_MB_MOBILE
,
},
};
/*
...
...
@@ -1994,8 +2006,8 @@ probe_motherboard(void)
pmac_mb
.
features
=
pangea_features
;
break
;
case
macio_intrepid
:
pmac_mb
.
model_id
=
PMAC_TYPE_UNKNOWN_
PANGEA
;
pmac_mb
.
model_name
=
"Unknown
Pangea
-based"
;
pmac_mb
.
model_id
=
PMAC_TYPE_UNKNOWN_
INTREPID
;
pmac_mb
.
model_name
=
"Unknown
Intrepid
-based"
;
pmac_mb
.
features
=
intrepid_features
;
break
;
default:
...
...
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