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
8f3dda75
Commit
8f3dda75
authored
Apr 18, 2011
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'kumar/merge' into merge
parents
a1b49cb7
e5462d16
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
7 deletions
+26
-7
arch/powerpc/Kconfig
arch/powerpc/Kconfig
+1
-1
arch/powerpc/include/asm/cputable.h
arch/powerpc/include/asm/cputable.h
+14
-2
arch/powerpc/kernel/cputable.c
arch/powerpc/kernel/cputable.c
+1
-1
arch/powerpc/kernel/legacy_serial.c
arch/powerpc/kernel/legacy_serial.c
+5
-3
arch/powerpc/sysdev/fsl_pci.c
arch/powerpc/sysdev/fsl_pci.c
+5
-0
No files found.
arch/powerpc/Kconfig
View file @
8f3dda75
...
...
@@ -209,7 +209,7 @@ config ARCH_HIBERNATION_POSSIBLE
config ARCH_SUSPEND_POSSIBLE
def_bool y
depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
PPC_85xx
|| PPC_86xx || PPC_PSERIES || 44x || 40x
(PPC_85xx && !SMP)
|| PPC_86xx || PPC_PSERIES || 44x || 40x
config PPC_DCR_NATIVE
bool
...
...
arch/powerpc/include/asm/cputable.h
View file @
8f3dda75
...
...
@@ -382,10 +382,12 @@ extern const char *powerpc_base_platform;
#define CPU_FTRS_E500_2 (CPU_FTR_MAYBE_CAN_DOZE | CPU_FTR_USE_TB | \
CPU_FTR_SPE_COMP | CPU_FTR_MAYBE_CAN_NAP | \
CPU_FTR_NODSISRALIGN | CPU_FTR_NOEXECUTE)
#define CPU_FTRS_E500MC (CPU_FTR_MAYBE_CAN_DOZE | CPU_FTR_USE_TB | \
CPU_FTR_MAYBE_CAN_NAP | CPU_FTR_NODSISRALIGN | \
#define CPU_FTRS_E500MC (CPU_FTR_USE_TB | CPU_FTR_NODSISRALIGN | \
CPU_FTR_L2CSR | CPU_FTR_LWSYNC | CPU_FTR_NOEXECUTE | \
CPU_FTR_DBELL)
#define CPU_FTRS_E5500 (CPU_FTR_USE_TB | CPU_FTR_NODSISRALIGN | \
CPU_FTR_L2CSR | CPU_FTR_LWSYNC | CPU_FTR_NOEXECUTE | \
CPU_FTR_DBELL | CPU_FTR_POPCNTB | CPU_FTR_POPCNTD)
#define CPU_FTRS_GENERIC_32 (CPU_FTR_COMMON | CPU_FTR_NODSISRALIGN)
/* 64-bit CPUs */
...
...
@@ -435,11 +437,15 @@ extern const char *powerpc_base_platform;
#define CPU_FTRS_COMPATIBLE (CPU_FTR_USE_TB | CPU_FTR_PPCAS_ARCH_V2)
#ifdef __powerpc64__
#ifdef CONFIG_PPC_BOOK3E
#define CPU_FTRS_POSSIBLE (CPU_FTRS_E5500)
#else
#define CPU_FTRS_POSSIBLE \
(CPU_FTRS_POWER3 | CPU_FTRS_RS64 | CPU_FTRS_POWER4 | \
CPU_FTRS_PPC970 | CPU_FTRS_POWER5 | CPU_FTRS_POWER6 | \
CPU_FTRS_POWER7 | CPU_FTRS_CELL | CPU_FTRS_PA6T | \
CPU_FTR_1T_SEGMENT | CPU_FTR_VSX)
#endif
#else
enum
{
CPU_FTRS_POSSIBLE
=
...
...
@@ -473,16 +479,21 @@ enum {
#endif
#ifdef CONFIG_E500
CPU_FTRS_E500
|
CPU_FTRS_E500_2
|
CPU_FTRS_E500MC
|
CPU_FTRS_E5500
|
#endif
0
,
};
#endif
/* __powerpc64__ */
#ifdef __powerpc64__
#ifdef CONFIG_PPC_BOOK3E
#define CPU_FTRS_ALWAYS (CPU_FTRS_E5500)
#else
#define CPU_FTRS_ALWAYS \
(CPU_FTRS_POWER3 & CPU_FTRS_RS64 & CPU_FTRS_POWER4 & \
CPU_FTRS_PPC970 & CPU_FTRS_POWER5 & CPU_FTRS_POWER6 & \
CPU_FTRS_POWER7 & CPU_FTRS_CELL & CPU_FTRS_PA6T & CPU_FTRS_POSSIBLE)
#endif
#else
enum
{
CPU_FTRS_ALWAYS
=
...
...
@@ -513,6 +524,7 @@ enum {
#endif
#ifdef CONFIG_E500
CPU_FTRS_E500
&
CPU_FTRS_E500_2
&
CPU_FTRS_E500MC
&
CPU_FTRS_E5500
&
#endif
CPU_FTRS_POSSIBLE
,
};
...
...
arch/powerpc/kernel/cputable.c
View file @
8f3dda75
...
...
@@ -1973,7 +1973,7 @@ static struct cpu_spec __initdata cpu_specs[] = {
.
pvr_mask
=
0xffff0000
,
.
pvr_value
=
0x80240000
,
.
cpu_name
=
"e5500"
,
.
cpu_features
=
CPU_FTRS_E5
00MC
,
.
cpu_features
=
CPU_FTRS_E5
500
,
.
cpu_user_features
=
COMMON_USER_BOOKE
,
.
mmu_features
=
MMU_FTR_TYPE_FSL_E
|
MMU_FTR_BIG_PHYS
|
MMU_FTR_USE_TLBILX
,
...
...
arch/powerpc/kernel/legacy_serial.c
View file @
8f3dda75
...
...
@@ -330,9 +330,11 @@ void __init find_legacy_serial_ports(void)
if
(
!
parent
)
continue
;
if
(
of_match_node
(
legacy_serial_parents
,
parent
)
!=
NULL
)
{
index
=
add_legacy_soc_port
(
np
,
np
);
if
(
index
>=
0
&&
np
==
stdout
)
legacy_serial_console
=
index
;
if
(
of_device_is_available
(
np
))
{
index
=
add_legacy_soc_port
(
np
,
np
);
if
(
index
>=
0
&&
np
==
stdout
)
legacy_serial_console
=
index
;
}
}
of_node_put
(
parent
);
}
...
...
arch/powerpc/sysdev/fsl_pci.c
View file @
8f3dda75
...
...
@@ -324,6 +324,11 @@ int __init fsl_add_bridge(struct device_node *dev, int is_primary)
struct
resource
rsrc
;
const
int
*
bus_range
;
if
(
!
of_device_is_available
(
dev
))
{
pr_warning
(
"%s: disabled
\n
"
,
dev
->
full_name
);
return
-
ENODEV
;
}
pr_debug
(
"Adding PCI host bridge %s
\n
"
,
dev
->
full_name
);
/* Fetch host bridge registers address */
...
...
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