Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
5a3a5e48
Commit
5a3a5e48
authored
Oct 04, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge with /home/tmlind/src/kernel/linux-omap-2.6
parents
deb7075a
3c5a55e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
8 deletions
+59
-8
arch/arm/mach-omap2/clock.h
arch/arm/mach-omap2/clock.h
+47
-2
include/asm-arm/arch-omap/system.h
include/asm-arm/arch-omap/system.h
+12
-6
No files found.
arch/arm/mach-omap2/clock.h
View file @
5a3a5e48
...
@@ -200,6 +200,33 @@ struct prcm_config {
...
@@ -200,6 +200,33 @@ struct prcm_config {
#define RII_CLKSEL_GFX (2 << 0)
/* 50MHz */
#define RII_CLKSEL_GFX (2 << 0)
/* 50MHz */
#define RII_CM_CLKSEL_GFX_VAL RII_CLKSEL_GFX
#define RII_CM_CLKSEL_GFX_VAL RII_CLKSEL_GFX
/* 2420-PRCM VII (boot) */
#define RVII_CLKSEL_L3 (1 << 0)
#define RVII_CLKSEL_L4 (1 << 5)
#define RVII_CLKSEL_DSS1 (1 << 8)
#define RVII_CLKSEL_DSS2 (0 << 13)
#define RVII_CLKSEL_VLYNQ (1 << 15)
#define RVII_CLKSEL_SSI (1 << 20)
#define RVII_CLKSEL_USB (1 << 25)
#define RVII_CM_CLKSEL1_CORE_VAL RVII_CLKSEL_USB | RVII_CLKSEL_SSI | \
RVII_CLKSEL_VLYNQ | RVII_CLKSEL_DSS2 | \
RVII_CLKSEL_DSS1 | RVII_CLKSEL_L4 | RVII_CLKSEL_L3
#define RVII_CLKSEL_MPU (1 << 0)
/* all divide by 1 */
#define RVII_CM_CLKSEL_MPU_VAL RVII_CLKSEL_MPU
#define RVII_CLKSEL_DSP (1 << 0)
#define RVII_CLKSEL_DSP_IF (1 << 5)
#define RVII_SYNC_DSP (0 << 7)
#define RVII_CLKSEL_IVA (1 << 8)
#define RVII_SYNC_IVA (0 << 13)
#define RVII_CM_CLKSEL_DSP_VAL RVII_SYNC_IVA | RVII_CLKSEL_IVA | RVII_SYNC_DSP | \
RVII_CLKSEL_DSP_IF | RVII_CLKSEL_DSP
#define RVII_CLKSEL_GFX (1 << 0)
#define RVII_CM_CLKSEL_GFX_VAL RVII_CLKSEL_GFX
/*-------------------------------------------------------------------------
/*-------------------------------------------------------------------------
* 2430 Target modes: Along with each configuration the CPU has several
* 2430 Target modes: Along with each configuration the CPU has several
* modes which goes along with them. Modes mainly are the addition of
* modes which goes along with them. Modes mainly are the addition of
...
@@ -318,6 +345,10 @@ struct prcm_config {
...
@@ -318,6 +345,10 @@ struct prcm_config {
MIII_DPLL_DIV_13 | MIII_DPLL_MULT_13 | \
MIII_DPLL_DIV_13 | MIII_DPLL_MULT_13 | \
MX_APLLS_CLIKIN_13
MX_APLLS_CLIKIN_13
/* PRCM VII (boot bypass) */
#define MVII_CM_CLKSEL1_PLL_12_VAL MB_CM_CLKSEL1_PLL_12_VAL
#define MVII_CM_CLKSEL1_PLL_13_VAL MB_CM_CLKSEL1_PLL_13_VAL
/* High and low operation value */
/* High and low operation value */
#define MX_CLKSEL2_PLL_2x_VAL (2 << 0)
#define MX_CLKSEL2_PLL_2x_VAL (2 << 0)
#define MX_CLKSEL2_PLL_1x_VAL (1 << 0)
#define MX_CLKSEL2_PLL_1x_VAL (1 << 0)
...
@@ -433,6 +464,20 @@ static struct prcm_config rate_table[] = {
...
@@ -433,6 +464,20 @@ static struct prcm_config rate_table[] = {
MX_CLKSEL2_PLL_2x_VAL
,
0
,
V24XX_SDRC_RFR_CTRL_133MHz
,
MX_CLKSEL2_PLL_2x_VAL
,
0
,
V24XX_SDRC_RFR_CTRL_133MHz
,
RATE_IN_242X
},
RATE_IN_242X
},
/* PRCM-VII (boot-bypass) */
{
S12M
,
S12M
,
S12M
,
RVII_CM_CLKSEL_MPU_VAL
,
/* 12MHz ARM*/
RVII_CM_CLKSEL_DSP_VAL
,
RVII_CM_CLKSEL_GFX_VAL
,
RVII_CM_CLKSEL1_CORE_VAL
,
MVII_CM_CLKSEL1_PLL_12_VAL
,
MX_CLKSEL2_PLL_2x_VAL
,
0
,
V24XX_SDRC_RFR_CTRL_BYPASS
,
RATE_IN_242X
},
/* PRCM-VII (boot-bypass) */
{
S13M
,
S13M
,
S13M
,
RVII_CM_CLKSEL_MPU_VAL
,
/* 13MHz ARM */
RVII_CM_CLKSEL_DSP_VAL
,
RVII_CM_CLKSEL_GFX_VAL
,
RVII_CM_CLKSEL1_CORE_VAL
,
MVII_CM_CLKSEL1_PLL_13_VAL
,
MX_CLKSEL2_PLL_2x_VAL
,
0
,
V24XX_SDRC_RFR_CTRL_BYPASS
,
RATE_IN_242X
},
/* PRCM #3 - ratio2 (ES2) - FAST */
/* PRCM #3 - ratio2 (ES2) - FAST */
{
S13M
,
S660M
,
S330M
,
R1_CM_CLKSEL_MPU_VAL
,
/* 330MHz ARM */
{
S13M
,
S660M
,
S330M
,
R1_CM_CLKSEL_MPU_VAL
,
/* 330MHz ARM */
R1_CM_CLKSEL_DSP_VAL
,
R1_CM_CLKSEL_GFX_VAL
,
R1_CM_CLKSEL_DSP_VAL
,
R1_CM_CLKSEL_GFX_VAL
,
...
@@ -487,7 +532,7 @@ static struct prcm_config rate_table[] = {
...
@@ -487,7 +532,7 @@ static struct prcm_config rate_table[] = {
RB_CM_CLKSEL1_CORE_VAL
,
MB_CM_CLKSEL1_PLL_13_VAL
,
RB_CM_CLKSEL1_CORE_VAL
,
MB_CM_CLKSEL1_PLL_13_VAL
,
MX_CLKSEL2_PLL_2x_VAL
,
RB_CM_CLKSEL_MDM_VAL
,
MX_CLKSEL2_PLL_2x_VAL
,
RB_CM_CLKSEL_MDM_VAL
,
V24XX_SDRC_RFR_CTRL_BYPASS
,
V24XX_SDRC_RFR_CTRL_BYPASS
,
RATE_IN_243X
|
RATE_IN_242X
},
RATE_IN_243X
},
/* PRCM-boot/bypass */
/* PRCM-boot/bypass */
{
S12M
,
S12M
,
S12M
,
RB_CM_CLKSEL_MPU_VAL
,
/* 12Mhz */
{
S12M
,
S12M
,
S12M
,
RB_CM_CLKSEL_MPU_VAL
,
/* 12Mhz */
...
@@ -495,7 +540,7 @@ static struct prcm_config rate_table[] = {
...
@@ -495,7 +540,7 @@ static struct prcm_config rate_table[] = {
RB_CM_CLKSEL1_CORE_VAL
,
MB_CM_CLKSEL1_PLL_12_VAL
,
RB_CM_CLKSEL1_CORE_VAL
,
MB_CM_CLKSEL1_PLL_12_VAL
,
MX_CLKSEL2_PLL_2x_VAL
,
RB_CM_CLKSEL_MDM_VAL
,
MX_CLKSEL2_PLL_2x_VAL
,
RB_CM_CLKSEL_MDM_VAL
,
V24XX_SDRC_RFR_CTRL_BYPASS
,
V24XX_SDRC_RFR_CTRL_BYPASS
,
RATE_IN_243X
|
RATE_IN_242X
},
RATE_IN_243X
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
};
};
...
...
include/asm-arm/arch-omap/system.h
View file @
5a3a5e48
...
@@ -41,12 +41,18 @@ static inline void omap2_arch_reset(char mode)
...
@@ -41,12 +41,18 @@ static inline void omap2_arch_reset(char mode)
{
{
u32
rate
;
u32
rate
;
struct
clk
*
vclk
,
*
sclk
;
struct
clk
*
vclk
,
*
sclk
;
unsigned
long
flags
;
vclk
=
clk_get
(
NULL
,
"virt_prcm_set"
);
vclk
=
clk_get
(
NULL
,
"virt_prcm_set"
);
sclk
=
clk_get
(
NULL
,
"sys_ck"
);
sclk
=
clk_get
(
NULL
,
"sys_ck"
);
printk
(
KERN_INFO
"Resetting the OMAP2
\n
"
);
local_irq_save
(
flags
);
/* no distractions, we are rebooting */
rate
=
clk_get_rate
(
sclk
);
rate
=
clk_get_rate
(
sclk
);
clk_set_rate
(
vclk
,
rate
);
/* go to bypass for OMAP limitation */
clk_set_rate
(
vclk
,
rate
);
/* go to bypass for OMAP limitation */
omap_writel
(
0x2
,
RM_RSTCTRL_WKUP
);
RM_RSTCTRL_WKUP
|=
2
;
local_irq_restore
(
flags
);
}
}
static
inline
void
arch_reset
(
char
mode
)
static
inline
void
arch_reset
(
char
mode
)
...
...
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