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
1f51b001
Commit
1f51b001
authored
Sep 10, 2011
by
Arnd Bergmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'cns3xxx/fixes', 'omap/fixes' and 'davinci/fixes' into fixes
parents
7caaf7ef
87635501
897a6a1a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
64 additions
and
14 deletions
+64
-14
arch/arm/mach-davinci/board-da850-evm.c
arch/arm/mach-davinci/board-da850-evm.c
+28
-0
arch/arm/mach-davinci/include/mach/psc.h
arch/arm/mach-davinci/include/mach/psc.h
+1
-1
arch/arm/mach-davinci/sleep.S
arch/arm/mach-davinci/sleep.S
+5
-1
arch/arm/mach-omap2/clock3xxx_data.c
arch/arm/mach-omap2/clock3xxx_data.c
+2
-0
arch/arm/mach-omap2/clock44xx_data.c
arch/arm/mach-omap2/clock44xx_data.c
+9
-1
arch/arm/mach-omap2/clockdomain.c
arch/arm/mach-omap2/clockdomain.c
+2
-0
arch/arm/mach-omap2/omap_hwmod_2430_data.c
arch/arm/mach-omap2/omap_hwmod_2430_data.c
+1
-0
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/pm.c
+0
-2
arch/arm/mach-omap2/powerdomain.c
arch/arm/mach-omap2/powerdomain.c
+16
-9
No files found.
arch/arm/mach-davinci/board-da850-evm.c
View file @
1f51b001
...
@@ -115,6 +115,32 @@ static struct spi_board_info da850evm_spi_info[] = {
...
@@ -115,6 +115,32 @@ static struct spi_board_info da850evm_spi_info[] = {
},
},
};
};
#ifdef CONFIG_MTD
static
void
da850_evm_m25p80_notify_add
(
struct
mtd_info
*
mtd
)
{
char
*
mac_addr
=
davinci_soc_info
.
emac_pdata
->
mac_addr
;
size_t
retlen
;
if
(
!
strcmp
(
mtd
->
name
,
"MAC-Address"
))
{
mtd
->
read
(
mtd
,
0
,
ETH_ALEN
,
&
retlen
,
mac_addr
);
if
(
retlen
==
ETH_ALEN
)
pr_info
(
"Read MAC addr from SPI Flash: %pM
\n
"
,
mac_addr
);
}
}
static
struct
mtd_notifier
da850evm_spi_notifier
=
{
.
add
=
da850_evm_m25p80_notify_add
,
};
static
void
da850_evm_setup_mac_addr
(
void
)
{
register_mtd_user
(
&
da850evm_spi_notifier
);
}
#else
static
void
da850_evm_setup_mac_addr
(
void
)
{
}
#endif
static
struct
mtd_partition
da850_evm_norflash_partition
[]
=
{
static
struct
mtd_partition
da850_evm_norflash_partition
[]
=
{
{
{
.
name
=
"bootloaders + env"
,
.
name
=
"bootloaders + env"
,
...
@@ -1244,6 +1270,8 @@ static __init void da850_evm_init(void)
...
@@ -1244,6 +1270,8 @@ static __init void da850_evm_init(void)
if
(
ret
)
if
(
ret
)
pr_warning
(
"da850_evm_init: sata registration failed: %d
\n
"
,
pr_warning
(
"da850_evm_init: sata registration failed: %d
\n
"
,
ret
);
ret
);
da850_evm_setup_mac_addr
();
}
}
#ifdef CONFIG_SERIAL_8250_CONSOLE
#ifdef CONFIG_SERIAL_8250_CONSOLE
...
...
arch/arm/mach-davinci/include/mach/psc.h
View file @
1f51b001
...
@@ -243,7 +243,7 @@
...
@@ -243,7 +243,7 @@
#define PSC_STATE_DISABLE 2
#define PSC_STATE_DISABLE 2
#define PSC_STATE_ENABLE 3
#define PSC_STATE_ENABLE 3
#define MDSTAT_STATE_MASK 0x
1
f
#define MDSTAT_STATE_MASK 0x
3
f
#define MDCTL_FORCE BIT(31)
#define MDCTL_FORCE BIT(31)
#ifndef __ASSEMBLER__
#ifndef __ASSEMBLER__
...
...
arch/arm/mach-davinci/sleep.S
View file @
1f51b001
...
@@ -217,7 +217,11 @@ ddr2clk_stop_done:
...
@@ -217,7 +217,11 @@ ddr2clk_stop_done:
ENDPROC
(
davinci_ddr_psc_config
)
ENDPROC
(
davinci_ddr_psc_config
)
CACHE_FLUSH
:
CACHE_FLUSH
:
.
word
arm926_flush_kern_cache_all
#ifdef CONFIG_CPU_V6
.
word
v6_flush_kern_cache_all
#else
.
word
arm926_flush_kern_cache_all
#endif
ENTRY
(
davinci_cpu_suspend_sz
)
ENTRY
(
davinci_cpu_suspend_sz
)
.
word
.
-
davinci_cpu_suspend
.
word
.
-
davinci_cpu_suspend
...
...
arch/arm/mach-omap2/clock3xxx_data.c
View file @
1f51b001
...
@@ -3078,6 +3078,7 @@ static struct clk gpt12_fck = {
...
@@ -3078,6 +3078,7 @@ static struct clk gpt12_fck = {
.
name
=
"gpt12_fck"
,
.
name
=
"gpt12_fck"
,
.
ops
=
&
clkops_null
,
.
ops
=
&
clkops_null
,
.
parent
=
&
secure_32k_fck
,
.
parent
=
&
secure_32k_fck
,
.
clkdm_name
=
"wkup_clkdm"
,
.
recalc
=
&
followparent_recalc
,
.
recalc
=
&
followparent_recalc
,
};
};
...
@@ -3085,6 +3086,7 @@ static struct clk wdt1_fck = {
...
@@ -3085,6 +3086,7 @@ static struct clk wdt1_fck = {
.
name
=
"wdt1_fck"
,
.
name
=
"wdt1_fck"
,
.
ops
=
&
clkops_null
,
.
ops
=
&
clkops_null
,
.
parent
=
&
secure_32k_fck
,
.
parent
=
&
secure_32k_fck
,
.
clkdm_name
=
"wkup_clkdm"
,
.
recalc
=
&
followparent_recalc
,
.
recalc
=
&
followparent_recalc
,
};
};
...
...
arch/arm/mach-omap2/clock44xx_data.c
View file @
1f51b001
...
@@ -3376,10 +3376,18 @@ int __init omap4xxx_clk_init(void)
...
@@ -3376,10 +3376,18 @@ int __init omap4xxx_clk_init(void)
}
else
if
(
cpu_is_omap446x
())
{
}
else
if
(
cpu_is_omap446x
())
{
cpu_mask
=
RATE_IN_4460
;
cpu_mask
=
RATE_IN_4460
;
cpu_clkflg
=
CK_446X
;
cpu_clkflg
=
CK_446X
;
}
else
{
return
0
;
}
}
clk_init
(
&
omap2_clk_functions
);
clk_init
(
&
omap2_clk_functions
);
omap2_clk_disable_clkdm_control
();
/*
* Must stay commented until all OMAP SoC drivers are
* converted to runtime PM, or drivers may start crashing
*
* omap2_clk_disable_clkdm_control();
*/
for
(
c
=
omap44xx_clks
;
c
<
omap44xx_clks
+
ARRAY_SIZE
(
omap44xx_clks
);
for
(
c
=
omap44xx_clks
;
c
<
omap44xx_clks
+
ARRAY_SIZE
(
omap44xx_clks
);
c
++
)
c
++
)
...
...
arch/arm/mach-omap2/clockdomain.c
View file @
1f51b001
...
@@ -747,6 +747,7 @@ int clkdm_wakeup(struct clockdomain *clkdm)
...
@@ -747,6 +747,7 @@ int clkdm_wakeup(struct clockdomain *clkdm)
spin_lock_irqsave
(
&
clkdm
->
lock
,
flags
);
spin_lock_irqsave
(
&
clkdm
->
lock
,
flags
);
clkdm
->
_flags
&=
~
_CLKDM_FLAG_HWSUP_ENABLED
;
clkdm
->
_flags
&=
~
_CLKDM_FLAG_HWSUP_ENABLED
;
ret
=
arch_clkdm
->
clkdm_wakeup
(
clkdm
);
ret
=
arch_clkdm
->
clkdm_wakeup
(
clkdm
);
ret
|=
pwrdm_state_switch
(
clkdm
->
pwrdm
.
ptr
);
spin_unlock_irqrestore
(
&
clkdm
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
clkdm
->
lock
,
flags
);
return
ret
;
return
ret
;
}
}
...
@@ -818,6 +819,7 @@ void clkdm_deny_idle(struct clockdomain *clkdm)
...
@@ -818,6 +819,7 @@ void clkdm_deny_idle(struct clockdomain *clkdm)
spin_lock_irqsave
(
&
clkdm
->
lock
,
flags
);
spin_lock_irqsave
(
&
clkdm
->
lock
,
flags
);
clkdm
->
_flags
&=
~
_CLKDM_FLAG_HWSUP_ENABLED
;
clkdm
->
_flags
&=
~
_CLKDM_FLAG_HWSUP_ENABLED
;
arch_clkdm
->
clkdm_deny_idle
(
clkdm
);
arch_clkdm
->
clkdm_deny_idle
(
clkdm
);
pwrdm_state_switch
(
clkdm
->
pwrdm
.
ptr
);
spin_unlock_irqrestore
(
&
clkdm
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
clkdm
->
lock
,
flags
);
}
}
...
...
arch/arm/mach-omap2/omap_hwmod_2430_data.c
View file @
1f51b001
...
@@ -192,6 +192,7 @@ static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
...
@@ -192,6 +192,7 @@ static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
.
pa_end
=
OMAP243X_HS_BASE
+
SZ_4K
-
1
,
.
pa_end
=
OMAP243X_HS_BASE
+
SZ_4K
-
1
,
.
flags
=
ADDR_TYPE_RT
.
flags
=
ADDR_TYPE_RT
},
},
{
}
};
};
/* l4_core ->usbhsotg interface */
/* l4_core ->usbhsotg interface */
...
...
arch/arm/mach-omap2/pm.c
View file @
1f51b001
...
@@ -130,7 +130,6 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state)
...
@@ -130,7 +130,6 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state)
}
else
{
}
else
{
hwsup
=
clkdm_in_hwsup
(
pwrdm
->
pwrdm_clkdms
[
0
]);
hwsup
=
clkdm_in_hwsup
(
pwrdm
->
pwrdm_clkdms
[
0
]);
clkdm_wakeup
(
pwrdm
->
pwrdm_clkdms
[
0
]);
clkdm_wakeup
(
pwrdm
->
pwrdm_clkdms
[
0
]);
pwrdm_wait_transition
(
pwrdm
);
sleep_switch
=
FORCEWAKEUP_SWITCH
;
sleep_switch
=
FORCEWAKEUP_SWITCH
;
}
}
}
}
...
@@ -156,7 +155,6 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state)
...
@@ -156,7 +155,6 @@ int omap_set_pwrdm_state(struct powerdomain *pwrdm, u32 state)
return
ret
;
return
ret
;
}
}
pwrdm_wait_transition
(
pwrdm
);
pwrdm_state_switch
(
pwrdm
);
pwrdm_state_switch
(
pwrdm
);
err:
err:
return
ret
;
return
ret
;
...
...
arch/arm/mach-omap2/powerdomain.c
View file @
1f51b001
...
@@ -195,28 +195,35 @@ static int _pwrdm_post_transition_cb(struct powerdomain *pwrdm, void *unused)
...
@@ -195,28 +195,35 @@ static int _pwrdm_post_transition_cb(struct powerdomain *pwrdm, void *unused)
/**
/**
* pwrdm_init - set up the powerdomain layer
* pwrdm_init - set up the powerdomain layer
* @pwrdm
_list
: array of struct powerdomain pointers to register
* @pwrdm
s
: array of struct powerdomain pointers to register
* @custom_funcs: func pointers for arch specific implementations
* @custom_funcs: func pointers for arch specific implementations
*
*
* Loop through the array of powerdomains @pwrdm_list, registering all
* Loop through the array of powerdomains @pwrdms, registering all
* that are available on the current CPU. If pwrdm_list is supplied
* that are available on the current CPU. Also, program all
* and not null, all of the referenced powerdomains will be
* powerdomain target state as ON; this is to prevent domains from
* registered. No return value. XXX pwrdm_list is not really a
* hitting low power states (if bootloader has target states set to
* "list"; it is an array. Rename appropriately.
* something other than ON) and potentially even losing context while
* PM is not fully initialized. The PM late init code can then program
* the desired target state for all the power domains. No return
* value.
*/
*/
void
pwrdm_init
(
struct
powerdomain
**
pwrdm
_list
,
struct
pwrdm_ops
*
custom_funcs
)
void
pwrdm_init
(
struct
powerdomain
**
pwrdm
s
,
struct
pwrdm_ops
*
custom_funcs
)
{
{
struct
powerdomain
**
p
=
NULL
;
struct
powerdomain
**
p
=
NULL
;
struct
powerdomain
*
temp_p
;
if
(
!
custom_funcs
)
if
(
!
custom_funcs
)
WARN
(
1
,
"powerdomain: No custom pwrdm functions registered
\n
"
);
WARN
(
1
,
"powerdomain: No custom pwrdm functions registered
\n
"
);
else
else
arch_pwrdm
=
custom_funcs
;
arch_pwrdm
=
custom_funcs
;
if
(
pwrdm
_list
)
{
if
(
pwrdm
s
)
{
for
(
p
=
pwrdm
_list
;
*
p
;
p
++
)
for
(
p
=
pwrdm
s
;
*
p
;
p
++
)
_pwrdm_register
(
*
p
);
_pwrdm_register
(
*
p
);
}
}
list_for_each_entry
(
temp_p
,
&
pwrdm_list
,
node
)
pwrdm_set_next_pwrst
(
temp_p
,
PWRDM_POWER_ON
);
}
}
/**
/**
...
...
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