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
0d7ce5c5
Commit
0d7ce5c5
authored
Sep 03, 2020
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'omap-for-v5.10/prm-genpd' into omap-for-v5.10/ti-sysc-drop-pdata
parents
90aa4ed5
0fd1594b
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
298 additions
and
131 deletions
+298
-131
Documentation/devicetree/bindings/arm/omap/prm-inst.txt
Documentation/devicetree/bindings/arm/omap/prm-inst.txt
+2
-0
arch/arm/boot/dts/am33xx.dtsi
arch/arm/boot/dts/am33xx.dtsi
+2
-0
arch/arm/boot/dts/am4372.dtsi
arch/arm/boot/dts/am4372.dtsi
+2
-0
arch/arm/boot/dts/omap4-l4-abe.dtsi
arch/arm/boot/dts/omap4-l4-abe.dtsi
+4
-2
arch/arm/boot/dts/omap4.dtsi
arch/arm/boot/dts/omap4.dtsi
+6
-0
arch/arm/boot/dts/omap5-l4-abe.dtsi
arch/arm/boot/dts/omap5-l4-abe.dtsi
+4
-2
arch/arm/boot/dts/omap5.dtsi
arch/arm/boot/dts/omap5.dtsi
+6
-0
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/Kconfig
+1
-0
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
+0
-16
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
+0
-40
arch/arm/mach-omap2/omap_hwmod_33xx_data.c
arch/arm/mach-omap2/omap_hwmod_33xx_data.c
+0
-2
arch/arm/mach-omap2/omap_hwmod_43xx_data.c
arch/arm/mach-omap2/omap_hwmod_43xx_data.c
+0
-2
arch/arm/mach-omap2/omap_hwmod_44xx_data.c
arch/arm/mach-omap2/omap_hwmod_44xx_data.c
+0
-33
arch/arm/mach-omap2/omap_hwmod_54xx_data.c
arch/arm/mach-omap2/omap_hwmod_54xx_data.c
+0
-31
drivers/soc/ti/omap_prm.c
drivers/soc/ti/omap_prm.c
+271
-3
No files found.
Documentation/devicetree/bindings/arm/omap/prm-inst.txt
View file @
0d7ce5c5
...
...
@@ -18,6 +18,7 @@ Required properties:
(base address and length)
Optional properties:
- #power-domain-cells: Should be 0 if the instance is a power domain provider.
- #reset-cells: Should be 1 if the PRM instance in question supports resets.
Example:
...
...
@@ -25,5 +26,6 @@ Example:
prm_dsp2: prm@1b00 {
compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
reg = <0x1b00 0x40>;
#power-domain-cells = <0>;
#reset-cells = <1>;
};
arch/arm/boot/dts/am33xx.dtsi
View file @
0d7ce5c5
...
...
@@ -578,6 +578,7 @@ target-module@56000000 {
<SYSC_IDLE_SMART>;
clocks = <&gfx_l3_clkctrl AM3_GFX_L3_GFX_CLKCTRL 0>;
clock-names = "fck";
power-domains = <&prm_gfx>;
resets = <&prm_gfx 0>;
reset-names = "rstctrl";
#address-cells = <1>;
...
...
@@ -617,6 +618,7 @@ prm_device: prm@f00 {
prm_gfx: prm@1100 {
compatible = "ti,am3-prm-inst", "ti,omap-prm-inst";
reg = <0x1100 0x100>;
#power-domain-cells = <0>;
#reset-cells = <1>;
};
};
...
...
arch/arm/boot/dts/am4372.dtsi
View file @
0d7ce5c5
...
...
@@ -517,6 +517,7 @@ target-module@56000000 {
<SYSC_IDLE_SMART>;
clocks = <&gfx_l3_clkctrl AM4_GFX_L3_GFX_CLKCTRL 0>;
clock-names = "fck";
power-domains = <&prm_gfx>;
resets = <&prm_gfx 0>;
reset-names = "rstctrl";
#address-cells = <1>;
...
...
@@ -533,6 +534,7 @@ &prcm {
prm_gfx: prm@400 {
compatible = "ti,am4-prm-inst", "ti,omap-prm-inst";
reg = <0x400 0x100>;
#power-domain-cells = <0>;
#reset-cells = <1>;
};
...
...
arch/arm/boot/dts/omap4-l4-abe.dtsi
View file @
0d7ce5c5
&l4_abe { /* 0x40100000 */
compatible = "ti,omap4-l4-abe", "simple-bus";
compatible = "ti,omap4-l4-abe", "simple-
pm-
bus";
reg = <0x40100000 0x400>,
<0x40100400 0x400>;
reg-names = "la", "ap";
power-domains = <&prm_abe>;
/* OMAP4_L4_ABE_CLKCTRL is read-only */
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x00000000 0x40100000 0x100000>, /* segment 0 */
<0x49000000 0x49000000 0x100000>;
segment@0 { /* 0x40100000 */
compatible = "simple-bus";
compatible = "simple-
pm-
bus";
#address-cells = <1>;
#size-cells = <1>;
ranges =
...
...
arch/arm/boot/dts/omap4.dtsi
View file @
0d7ce5c5
...
...
@@ -658,6 +658,12 @@ prm_tesla: prm@400 {
#reset-cells = <1>;
};
prm_abe: prm@500 {
compatible = "ti,omap4-prm-inst", "ti,omap-prm-inst";
reg = <0x500 0x100>;
#power-domain-cells = <0>;
};
prm_core: prm@700 {
compatible = "ti,omap4-prm-inst", "ti,omap-prm-inst";
reg = <0x700 0x100>;
...
...
arch/arm/boot/dts/omap5-l4-abe.dtsi
View file @
0d7ce5c5
&l4_abe { /* 0x40100000 */
compatible = "ti,omap5-l4-abe", "simple-bus";
compatible = "ti,omap5-l4-abe", "simple-
pm-
bus";
reg = <0x40100000 0x400>,
<0x40100400 0x400>;
reg-names = "la", "ap";
power-domains = <&prm_abe>;
/* OMAP5_L4_ABE_CLKCTRL is read-only */
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x00000000 0x40100000 0x100000>, /* segment 0 */
<0x49000000 0x49000000 0x100000>;
segment@0 { /* 0x40100000 */
compatible = "simple-bus";
compatible = "simple-
pm-
bus";
#address-cells = <1>;
#size-cells = <1>;
ranges =
...
...
arch/arm/boot/dts/omap5.dtsi
View file @
0d7ce5c5
...
...
@@ -674,6 +674,12 @@ prm_dsp: prm@400 {
#reset-cells = <1>;
};
prm_abe: prm@500 {
compatible = "ti,omap5-prm-inst", "ti,omap-prm-inst";
reg = <0x500 0x100>;
#power-domain-cells = <0>;
};
prm_core: prm@700 {
compatible = "ti,omap5-prm-inst", "ti,omap-prm-inst";
reg = <0x700 0x100>;
...
...
arch/arm/mach-omap2/Kconfig
View file @
0d7ce5c5
...
...
@@ -7,6 +7,7 @@ config ARCH_OMAP2
depends on ARCH_MULTI_V6
select ARCH_OMAP2PLUS
select CPU_V6
select PM_GENERIC_DOMAINS if PM
select SOC_HAS_OMAP2_SDRC
config ARCH_OMAP3
...
...
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c
View file @
0d7ce5c5
...
...
@@ -74,22 +74,6 @@ struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = {
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* gfx -> l3 main */
struct
omap_hwmod_ocp_if
am33xx_gfx__l3_main
=
{
.
master
=
&
am33xx_gfx_hwmod
,
.
slave
=
&
am33xx_l3_main_hwmod
,
.
clk
=
"dpll_core_m4_ck"
,
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* l3 main -> gfx */
struct
omap_hwmod_ocp_if
am33xx_l3_main__gfx
=
{
.
master
=
&
am33xx_l3_main_hwmod
,
.
slave
=
&
am33xx_gfx_hwmod
,
.
clk
=
"dpll_core_m4_ck"
,
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* l3s cfg -> gpmc */
struct
omap_hwmod_ocp_if
am33xx_l3_s__gpmc
=
{
.
master
=
&
am33xx_l3_s_hwmod
,
...
...
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
View file @
0d7ce5c5
...
...
@@ -132,30 +132,6 @@ struct omap_hwmod_class am33xx_wkup_m3_hwmod_class = {
.
name
=
"wkup_m3"
,
};
/* gfx */
/* Pseudo hwmod for reset control purpose only */
static
struct
omap_hwmod_class
am33xx_gfx_hwmod_class
=
{
.
name
=
"gfx"
,
};
static
struct
omap_hwmod_rst_info
am33xx_gfx_resets
[]
=
{
{
.
name
=
"gfx"
,
.
rst_shift
=
0
,
.
st_shift
=
0
},
};
struct
omap_hwmod
am33xx_gfx_hwmod
=
{
.
name
=
"gfx"
,
.
class
=
&
am33xx_gfx_hwmod_class
,
.
clkdm_name
=
"gfx_l3_clkdm"
,
.
main_clk
=
"gfx_fck_div_ck"
,
.
prcm
=
{
.
omap4
=
{
.
modulemode
=
MODULEMODE_SWCTRL
,
},
},
.
rst_lines
=
am33xx_gfx_resets
,
.
rst_lines_cnt
=
ARRAY_SIZE
(
am33xx_gfx_resets
),
};
/*
* 'prcm' class
* power and reset manager (whole prcm infrastructure)
...
...
@@ -283,22 +259,14 @@ static void omap_hwmod_am33xx_clkctrl(void)
CLKCTRL
(
am33xx_l4_ls_hwmod
,
AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_l4_wkup_hwmod
,
AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_l3_main_hwmod
,
AM33XX_CM_PER_L3_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_gfx_hwmod
,
AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_mpu_hwmod
,
AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_l3_instr_hwmod
,
AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_ocmcram_hwmod
,
AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET
);
}
static
void
omap_hwmod_am33xx_rst
(
void
)
{
RSTCTRL
(
am33xx_gfx_hwmod
,
AM33XX_RM_GFX_RSTCTRL_OFFSET
);
RSTST
(
am33xx_gfx_hwmod
,
AM33XX_RM_GFX_RSTST_OFFSET
);
}
void
omap_hwmod_am33xx_reg
(
void
)
{
omap_hwmod_am33xx_clkctrl
();
omap_hwmod_am33xx_rst
();
}
static
void
omap_hwmod_am43xx_clkctrl
(
void
)
...
...
@@ -311,20 +279,12 @@ static void omap_hwmod_am43xx_clkctrl(void)
CLKCTRL
(
am33xx_l4_ls_hwmod
,
AM43XX_CM_PER_L4LS_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_l4_wkup_hwmod
,
AM43XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_l3_main_hwmod
,
AM43XX_CM_PER_L3_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_gfx_hwmod
,
AM43XX_CM_GFX_GFX_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_mpu_hwmod
,
AM43XX_CM_MPU_MPU_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_l3_instr_hwmod
,
AM43XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET
);
CLKCTRL
(
am33xx_ocmcram_hwmod
,
AM43XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET
);
}
static
void
omap_hwmod_am43xx_rst
(
void
)
{
RSTCTRL
(
am33xx_gfx_hwmod
,
AM43XX_RM_GFX_RSTCTRL_OFFSET
);
RSTST
(
am33xx_gfx_hwmod
,
AM43XX_RM_GFX_RSTST_OFFSET
);
}
void
omap_hwmod_am43xx_reg
(
void
)
{
omap_hwmod_am43xx_clkctrl
();
omap_hwmod_am43xx_rst
();
}
arch/arm/mach-omap2/omap_hwmod_33xx_data.c
View file @
0d7ce5c5
...
...
@@ -274,10 +274,8 @@ static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = {
&
am33xx_l3_main__l4_hs
,
&
am33xx_l3_main__l3_s
,
&
am33xx_l3_main__l3_instr
,
&
am33xx_l3_main__gfx
,
&
am33xx_l3_s__l3_main
,
&
am33xx_wkup_m3__l4_wkup
,
&
am33xx_gfx__l3_main
,
&
am33xx_l3_main__debugss
,
&
am33xx_l4_wkup__wkup_m3
,
&
am33xx_l4_wkup__control
,
...
...
arch/arm/mach-omap2/omap_hwmod_43xx_data.c
View file @
0d7ce5c5
...
...
@@ -143,11 +143,9 @@ static struct omap_hwmod_ocp_if *am43xx_hwmod_ocp_ifs[] __initdata = {
&
am43xx_l3_main__l4_hs
,
&
am33xx_l3_main__l3_s
,
&
am33xx_l3_main__l3_instr
,
&
am33xx_l3_main__gfx
,
&
am33xx_l3_s__l3_main
,
&
am43xx_l3_main__emif
,
&
am43xx_wkup_m3__l4_wkup
,
&
am33xx_gfx__l3_main
,
&
am43xx_l4_wkup__wkup_m3
,
&
am43xx_l4_wkup__control
,
&
am43xx_l4_wkup__smartreflex0
,
...
...
arch/arm/mach-omap2/omap_hwmod_44xx_data.c
View file @
0d7ce5c5
...
...
@@ -124,21 +124,6 @@ static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
.
name
=
"l4"
,
};
/* l4_abe */
static
struct
omap_hwmod
omap44xx_l4_abe_hwmod
=
{
.
name
=
"l4_abe"
,
.
class
=
&
omap44xx_l4_hwmod_class
,
.
clkdm_name
=
"abe_clkdm"
,
.
prcm
=
{
.
omap4
=
{
.
clkctrl_offs
=
OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET
,
.
context_offs
=
OMAP4_RM_ABE_AESS_CONTEXT_OFFSET
,
.
lostcontext_mask
=
OMAP4430_LOSTMEM_AESSMEM_MASK
,
.
flags
=
HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
},
},
};
/* l4_cfg */
static
struct
omap_hwmod
omap44xx_l4_cfg_hwmod
=
{
.
name
=
"l4_cfg"
,
...
...
@@ -771,22 +756,6 @@ static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* l3_main_1 -> l4_abe */
static
struct
omap_hwmod_ocp_if
omap44xx_l3_main_1__l4_abe
=
{
.
master
=
&
omap44xx_l3_main_1_hwmod
,
.
slave
=
&
omap44xx_l4_abe_hwmod
,
.
clk
=
"l3_div_ck"
,
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* mpu -> l4_abe */
static
struct
omap_hwmod_ocp_if
omap44xx_mpu__l4_abe
=
{
.
master
=
&
omap44xx_mpu_hwmod
,
.
slave
=
&
omap44xx_l4_abe_hwmod
,
.
clk
=
"ocp_abe_iclk"
,
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* l3_main_1 -> l4_cfg */
static
struct
omap_hwmod_ocp_if
omap44xx_l3_main_1__l4_cfg
=
{
.
master
=
&
omap44xx_l3_main_1_hwmod
,
...
...
@@ -988,8 +957,6 @@ static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
&
omap44xx_l3_main_1__l3_main_3
,
&
omap44xx_l3_main_2__l3_main_3
,
&
omap44xx_l4_cfg__l3_main_3
,
&
omap44xx_l3_main_1__l4_abe
,
&
omap44xx_mpu__l4_abe
,
&
omap44xx_l3_main_1__l4_cfg
,
&
omap44xx_l3_main_2__l4_per
,
&
omap44xx_l4_cfg__l4_wkup
,
...
...
arch/arm/mach-omap2/omap_hwmod_54xx_data.c
View file @
0d7ce5c5
...
...
@@ -121,19 +121,6 @@ static struct omap_hwmod_class omap54xx_l4_hwmod_class = {
.
name
=
"l4"
,
};
/* l4_abe */
static
struct
omap_hwmod
omap54xx_l4_abe_hwmod
=
{
.
name
=
"l4_abe"
,
.
class
=
&
omap54xx_l4_hwmod_class
,
.
clkdm_name
=
"abe_clkdm"
,
.
prcm
=
{
.
omap4
=
{
.
clkctrl_offs
=
OMAP54XX_CM_ABE_L4_ABE_CLKCTRL_OFFSET
,
.
flags
=
HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT
,
},
},
};
/* l4_cfg */
static
struct
omap_hwmod
omap54xx_l4_cfg_hwmod
=
{
.
name
=
"l4_cfg"
,
...
...
@@ -395,22 +382,6 @@ static struct omap_hwmod_ocp_if omap54xx_l4_cfg__l3_main_3 = {
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* l3_main_1 -> l4_abe */
static
struct
omap_hwmod_ocp_if
omap54xx_l3_main_1__l4_abe
=
{
.
master
=
&
omap54xx_l3_main_1_hwmod
,
.
slave
=
&
omap54xx_l4_abe_hwmod
,
.
clk
=
"abe_iclk"
,
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* mpu -> l4_abe */
static
struct
omap_hwmod_ocp_if
omap54xx_mpu__l4_abe
=
{
.
master
=
&
omap54xx_mpu_hwmod
,
.
slave
=
&
omap54xx_l4_abe_hwmod
,
.
clk
=
"abe_iclk"
,
.
user
=
OCP_USER_MPU
|
OCP_USER_SDMA
,
};
/* l3_main_1 -> l4_cfg */
static
struct
omap_hwmod_ocp_if
omap54xx_l3_main_1__l4_cfg
=
{
.
master
=
&
omap54xx_l3_main_1_hwmod
,
...
...
@@ -478,8 +449,6 @@ static struct omap_hwmod_ocp_if *omap54xx_hwmod_ocp_ifs[] __initdata = {
&
omap54xx_l3_main_1__l3_main_3
,
&
omap54xx_l3_main_2__l3_main_3
,
&
omap54xx_l4_cfg__l3_main_3
,
&
omap54xx_l3_main_1__l4_abe
,
&
omap54xx_mpu__l4_abe
,
&
omap54xx_l3_main_1__l4_cfg
,
&
omap54xx_l3_main_2__l4_per
,
&
omap54xx_l3_main_1__l4_wkup
,
...
...
drivers/soc/ti/omap_prm.c
View file @
0d7ce5c5
This diff is collapsed.
Click to expand it.
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