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
62b40def
Commit
62b40def
authored
Apr 19, 2016
by
Thierry Reding
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.7/soc' into for-4.7/genpd
parents
f55532a0
605aa5e4
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
124 additions
and
91 deletions
+124
-91
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt
...tion/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt
+7
-5
arch/arm/mach-tegra/platsmp.c
arch/arm/mach-tegra/platsmp.c
+3
-13
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/drm.h
+1
-1
drivers/soc/tegra/pmc.c
drivers/soc/tegra/pmc.c
+95
-55
include/soc/tegra/pmc.h
include/soc/tegra/pmc.h
+18
-17
No files found.
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra20-pmc.txt
View file @
62b40def
...
@@ -6,11 +6,13 @@ modes. It provides power-gating controllers for SoC and CPU power-islands.
...
@@ -6,11 +6,13 @@ modes. It provides power-gating controllers for SoC and CPU power-islands.
Required properties:
Required properties:
- name : Should be pmc
- name : Should be pmc
- compatible : For Tegra20, must contain "nvidia,tegra20-pmc". For Tegra30,
- compatible : Should contain one of the following:
must contain "nvidia,tegra30-pmc". For Tegra114, must contain
For Tegra20 must contain "nvidia,tegra20-pmc".
"nvidia,tegra114-pmc". For Tegra124, must contain "nvidia,tegra124-pmc".
For Tegra30 must contain "nvidia,tegra30-pmc".
Otherwise, must contain "nvidia,<chip>-pmc", plus at least one of the
For Tegra114 must contain "nvidia,tegra114-pmc"
above, where <chip> is tegra132.
For Tegra124 must contain "nvidia,tegra124-pmc"
For Tegra132 must contain "nvidia,tegra124-pmc"
For Tegra210 must contain "nvidia,tegra210-pmc"
- reg : Offset and length of the register set for the device
- reg : Offset and length of the register set for the device
- clocks : Must contain an entry for each entry in clock-names.
- clocks : Must contain an entry for each entry in clock-names.
See ../clocks/clock-bindings.txt for details.
See ../clocks/clock-bindings.txt for details.
...
...
arch/arm/mach-tegra/platsmp.c
View file @
62b40def
...
@@ -108,19 +108,9 @@ static int tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle)
...
@@ -108,19 +108,9 @@ static int tegra30_boot_secondary(unsigned int cpu, struct task_struct *idle)
* be un-gated by un-toggling the power gate register
* be un-gated by un-toggling the power gate register
* manually.
* manually.
*/
*/
if
(
!
tegra_pmc_cpu_is_powered
(
cpu
))
{
ret
=
tegra_pmc_cpu_power_on
(
cpu
);
ret
=
tegra_pmc_cpu_power_on
(
cpu
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
/* Wait for the power to come up. */
timeout
=
jiffies
+
msecs_to_jiffies
(
100
);
while
(
!
tegra_pmc_cpu_is_powered
(
cpu
))
{
if
(
time_after
(
jiffies
,
timeout
))
return
-
ETIMEDOUT
;
udelay
(
10
);
}
}
remove_clamps:
remove_clamps:
/* CPU partition is powered. Enable the CPU clock. */
/* CPU partition is powered. Enable the CPU clock. */
...
...
drivers/gpu/drm/tegra/drm.h
View file @
62b40def
...
@@ -121,7 +121,7 @@ struct tegra_dc {
...
@@ -121,7 +121,7 @@ struct tegra_dc {
spinlock_t
lock
;
spinlock_t
lock
;
struct
drm_crtc
base
;
struct
drm_crtc
base
;
int
powergate
;
unsigned
int
powergate
;
int
pipe
;
int
pipe
;
struct
clk
*
clk
;
struct
clk
*
clk
;
...
...
drivers/soc/tegra/pmc.c
View file @
62b40def
This diff is collapsed.
Click to expand it.
include/soc/tegra/pmc.h
View file @
62b40def
...
@@ -33,9 +33,9 @@ void tegra_pmc_enter_suspend_mode(enum tegra_suspend_mode mode);
...
@@ -33,9 +33,9 @@ void tegra_pmc_enter_suspend_mode(enum tegra_suspend_mode mode);
#endif
/* CONFIG_PM_SLEEP */
#endif
/* CONFIG_PM_SLEEP */
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
bool
tegra_pmc_cpu_is_powered
(
int
cpuid
);
bool
tegra_pmc_cpu_is_powered
(
unsigned
int
cpuid
);
int
tegra_pmc_cpu_power_on
(
int
cpuid
);
int
tegra_pmc_cpu_power_on
(
unsigned
int
cpuid
);
int
tegra_pmc_cpu_remove_clamping
(
int
cpuid
);
int
tegra_pmc_cpu_remove_clamping
(
unsigned
int
cpuid
);
#endif
/* CONFIG_SMP */
#endif
/* CONFIG_SMP */
/*
/*
...
@@ -108,50 +108,51 @@ int tegra_pmc_cpu_remove_clamping(int cpuid);
...
@@ -108,50 +108,51 @@ int tegra_pmc_cpu_remove_clamping(int cpuid);
#define TEGRA_IO_RAIL_SYS_DDC 58
#define TEGRA_IO_RAIL_SYS_DDC 58
#ifdef CONFIG_ARCH_TEGRA
#ifdef CONFIG_ARCH_TEGRA
int
tegra_powergate_is_powered
(
int
id
);
int
tegra_powergate_is_powered
(
unsigned
int
id
);
int
tegra_powergate_power_on
(
int
id
);
int
tegra_powergate_power_on
(
unsigned
int
id
);
int
tegra_powergate_power_off
(
int
id
);
int
tegra_powergate_power_off
(
unsigned
int
id
);
int
tegra_powergate_remove_clamping
(
int
id
);
int
tegra_powergate_remove_clamping
(
unsigned
int
id
);
/* Must be called with clk disabled, and returns with clk enabled */
/* Must be called with clk disabled, and returns with clk enabled */
int
tegra_powergate_sequence_power_up
(
int
id
,
struct
clk
*
clk
,
int
tegra_powergate_sequence_power_up
(
unsigned
int
id
,
struct
clk
*
clk
,
struct
reset_control
*
rst
);
struct
reset_control
*
rst
);
int
tegra_io_rail_power_on
(
int
id
);
int
tegra_io_rail_power_on
(
unsigned
int
id
);
int
tegra_io_rail_power_off
(
int
id
);
int
tegra_io_rail_power_off
(
unsigned
int
id
);
#else
#else
static
inline
int
tegra_powergate_is_powered
(
int
id
)
static
inline
int
tegra_powergate_is_powered
(
unsigned
int
id
)
{
{
return
-
ENOSYS
;
return
-
ENOSYS
;
}
}
static
inline
int
tegra_powergate_power_on
(
int
id
)
static
inline
int
tegra_powergate_power_on
(
unsigned
int
id
)
{
{
return
-
ENOSYS
;
return
-
ENOSYS
;
}
}
static
inline
int
tegra_powergate_power_off
(
int
id
)
static
inline
int
tegra_powergate_power_off
(
unsigned
int
id
)
{
{
return
-
ENOSYS
;
return
-
ENOSYS
;
}
}
static
inline
int
tegra_powergate_remove_clamping
(
int
id
)
static
inline
int
tegra_powergate_remove_clamping
(
unsigned
int
id
)
{
{
return
-
ENOSYS
;
return
-
ENOSYS
;
}
}
static
inline
int
tegra_powergate_sequence_power_up
(
int
id
,
struct
clk
*
clk
,
static
inline
int
tegra_powergate_sequence_power_up
(
unsigned
int
id
,
struct
clk
*
clk
,
struct
reset_control
*
rst
)
struct
reset_control
*
rst
)
{
{
return
-
ENOSYS
;
return
-
ENOSYS
;
}
}
static
inline
int
tegra_io_rail_power_on
(
int
id
)
static
inline
int
tegra_io_rail_power_on
(
unsigned
int
id
)
{
{
return
-
ENOSYS
;
return
-
ENOSYS
;
}
}
static
inline
int
tegra_io_rail_power_off
(
int
id
)
static
inline
int
tegra_io_rail_power_off
(
unsigned
int
id
)
{
{
return
-
ENOSYS
;
return
-
ENOSYS
;
}
}
...
...
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