Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-boundary-uboot
Commits
d8d52b16
Commit
d8d52b16
authored
6 years ago
by
Troy Kisky
Browse files
Options
Downloads
Patches
Plain Diff
arm: clock_imx8mm s/enum pll_clocks pll/enum pll_clocks clock/
Signed-off-by:
Troy Kisky
<
troy.kisky@boundarydevices.com
>
parent
3ab8fb39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/arm/mach-imx/imx8m/clock_imx8mm.c
+4
-4
4 additions, 4 deletions
arch/arm/mach-imx/imx8m/clock_imx8mm.c
with
4 additions
and
4 deletions
arch/arm/mach-imx/imx8m/clock_imx8mm.c
+
4
−
4
View file @
d8d52b16
...
@@ -330,7 +330,7 @@ static struct dram_bypass_clk_setting imx8mm_dram_bypass_tbl[] = {
...
@@ -330,7 +330,7 @@ static struct dram_bypass_clk_setting imx8mm_dram_bypass_tbl[] = {
DRAM_BYPASS_ROOT_CONFIG
(
DRAM_BYPASSCLK_400M
,
1
,
CLK_ROOT_PRE_DIV2
,
3
,
CLK_ROOT_PRE_DIV2
),
DRAM_BYPASS_ROOT_CONFIG
(
DRAM_BYPASSCLK_400M
,
1
,
CLK_ROOT_PRE_DIV2
,
3
,
CLK_ROOT_PRE_DIV2
),
};
};
int
fracpll_configure
(
enum
pll_clocks
pll
,
u32
freq
)
int
fracpll_configure
(
enum
pll_clocks
clock
,
u32
freq
)
{
{
int
i
;
int
i
;
u32
tmp
,
div_val
;
u32
tmp
,
div_val
;
...
@@ -349,7 +349,7 @@ int fracpll_configure(enum pll_clocks pll, u32 freq)
...
@@ -349,7 +349,7 @@ int fracpll_configure(enum pll_clocks pll, u32 freq)
rate
=
&
imx8mm_fracpll_tbl
[
i
];
rate
=
&
imx8mm_fracpll_tbl
[
i
];
switch
(
pll
)
{
switch
(
clock
)
{
case
ANATOP_DRAM_PLL
:
case
ANATOP_DRAM_PLL
:
#define SRC_DDR1_ENABLE_MASK (0x8F000000UL)
#define SRC_DDR1_ENABLE_MASK (0x8F000000UL)
setbits_le32
(
GPC_BASE_ADDR
+
0xEC
,
1
<<
7
);
setbits_le32
(
GPC_BASE_ADDR
+
0xEC
,
1
<<
7
);
...
@@ -453,12 +453,12 @@ void dram_disable_bypass(void)
...
@@ -453,12 +453,12 @@ void dram_disable_bypass(void)
clock_set_target_val
(
DRAM_APB_CLK_ROOT
,
CLK_ROOT_ON
|
CLK_ROOT_SOURCE_SEL
(
4
)
|
CLK_ROOT_PRE_DIV
(
CLK_ROOT_PRE_DIV5
));
clock_set_target_val
(
DRAM_APB_CLK_ROOT
,
CLK_ROOT_ON
|
CLK_ROOT_SOURCE_SEL
(
4
)
|
CLK_ROOT_PRE_DIV
(
CLK_ROOT_PRE_DIV5
));
}
}
int
intpll_configure
(
enum
pll_clocks
pll
,
enum
intpll_out_freq
freq
)
int
intpll_configure
(
enum
pll_clocks
clock
,
enum
intpll_out_freq
freq
)
{
{
void
__iomem
*
pll_gnrl_ctl
,
__iomem
*
pll_div_ctl
;
void
__iomem
*
pll_gnrl_ctl
,
__iomem
*
pll_div_ctl
;
u32
pll_div_ctl_val
,
pll_clke_masks
;
u32
pll_div_ctl_val
,
pll_clke_masks
;
switch
(
pll
)
{
switch
(
clock
)
{
case
ANATOP_SYSTEM_PLL1
:
case
ANATOP_SYSTEM_PLL1
:
pll_gnrl_ctl
=
(
void
__iomem
*
)
SYS_PLL1_GNRL_CTL
;
pll_gnrl_ctl
=
(
void
__iomem
*
)
SYS_PLL1_GNRL_CTL
;
pll_div_ctl
=
(
void
__iomem
*
)
SYS_PLL1_DIV_CTL
;
pll_div_ctl
=
(
void
__iomem
*
)
SYS_PLL1_DIV_CTL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment