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
0d50bd83
Commit
0d50bd83
authored
Jan 20, 2006
by
andrzej zaborowski
Committed by
Tony Lindgren
Jan 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ARM: OMAP: Replace selected omap1510 with omap15xx for OMAP310
Replace selected omap1510 with omap15xx for OMAP310.
parent
04731009
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
arch/arm/mach-omap1/board-generic.c
arch/arm/mach-omap1/board-generic.c
+1
-1
arch/arm/mach-omap1/io.c
arch/arm/mach-omap1/io.c
+1
-1
arch/arm/mach-omap1/pm.c
arch/arm/mach-omap1/pm.c
+11
-11
arch/arm/plat-omap/gpio.c
arch/arm/plat-omap/gpio.c
+4
-4
arch/arm/plat-omap/mcbsp.c
arch/arm/plat-omap/mcbsp.c
+4
-4
No files found.
arch/arm/mach-omap1/board-generic.c
View file @
0d50bd83
...
...
@@ -88,7 +88,7 @@ static struct omap_board_config_kernel generic_config[] = {
static
void
__init
omap_generic_init
(
void
)
{
#ifdef CONFIG_ARCH_OMAP15XX
if
(
cpu_is_omap15
10
())
{
if
(
cpu_is_omap15
xx
())
{
generic_config
[
0
].
data
=
&
generic1510_usb_config
;
}
#endif
...
...
arch/arm/mach-omap1/io.c
View file @
0d50bd83
...
...
@@ -110,7 +110,7 @@ void __init omap1_map_common_io(void)
}
#endif
#ifdef CONFIG_ARCH_OMAP15XX
if
(
cpu_is_omap15
10
())
{
if
(
cpu_is_omap15
xx
())
{
iotable_init
(
omap1510_io_desc
,
ARRAY_SIZE
(
omap1510_io_desc
));
}
#endif
...
...
arch/arm/mach-omap1/pm.c
View file @
0d50bd83
...
...
@@ -165,7 +165,7 @@ void omap_pm_idle(void)
if
((
use_idlect1
!=
~
0
)
||
!
do_sleep
)
{
__u32
saved_idlect1
=
omap_readl
(
ARM_IDLECT1
);
if
(
cpu_is_omap15
10
())
if
(
cpu_is_omap15
xx
())
use_idlect1
&=
OMAP1510_BIG_SLEEP_REQUEST
;
else
use_idlect1
&=
OMAP1610_IDLECT1_SLEEP_VAL
;
...
...
@@ -204,7 +204,7 @@ static void omap_pm_wakeup_setup(void)
if
(
cpu_is_omap730
())
level1_wake
=
OMAP_IRQ_BIT
(
INT_730_GPIO_BANK1
)
|
OMAP_IRQ_BIT
(
INT_730_IH2_IRQ
);
else
if
(
cpu_is_omap15
10
())
else
if
(
cpu_is_omap15
xx
())
level1_wake
=
OMAP_IRQ_BIT
(
INT_GPIO_BANK1
)
|
OMAP_IRQ_BIT
(
INT_1510_IH2_IRQ
);
else
if
(
cpu_is_omap16xx
())
...
...
@@ -218,7 +218,7 @@ static void omap_pm_wakeup_setup(void)
omap_writel
(
~
(
OMAP_IRQ_BIT
(
INT_730_WAKE_UP_REQ
)
|
OMAP_IRQ_BIT
(
INT_730_MPUIO_KEYPAD
)),
OMAP_IH2_1_MIR
);
}
else
if
(
cpu_is_omap15
10
())
{
}
else
if
(
cpu_is_omap15
xx
())
{
level2_wake
|=
OMAP_IRQ_BIT
(
INT_KEYBOARD
);
omap_writel
(
~
level2_wake
,
OMAP_IH2_MIR
);
}
else
if
(
cpu_is_omap16xx
())
{
...
...
@@ -284,7 +284,7 @@ void omap_pm_suspend(void)
MPUI730_SAVE
(
EMIFS_CONFIG
);
MPUI730_SAVE
(
EMIFF_SDRAM_CONFIG
);
}
else
if
(
cpu_is_omap15
10
())
{
}
else
if
(
cpu_is_omap15
xx
())
{
MPUI1510_SAVE
(
OMAP_IH1_MIR
);
MPUI1510_SAVE
(
OMAP_IH2_MIR
);
MPUI1510_SAVE
(
MPUI_CTRL
);
...
...
@@ -308,7 +308,7 @@ void omap_pm_suspend(void)
ARM_SAVE
(
ARM_CKCTL
);
ARM_SAVE
(
ARM_IDLECT1
);
ARM_SAVE
(
ARM_IDLECT2
);
if
(
!
(
cpu_is_omap15
10
()))
if
(
!
(
cpu_is_omap15
xx
()))
ARM_SAVE
(
ARM_IDLECT3
);
ARM_SAVE
(
ARM_EWUPCT
);
ARM_SAVE
(
ARM_RSTCT1
);
...
...
@@ -393,7 +393,7 @@ void omap_pm_suspend(void)
* Restore ARM state, except ARM_IDLECT1/2 which omap_cpu_suspend did
*/
if
(
!
(
cpu_is_omap15
10
()))
if
(
!
(
cpu_is_omap15
xx
()))
ARM_RESTORE
(
ARM_IDLECT3
);
ARM_RESTORE
(
ARM_CKCTL
);
ARM_RESTORE
(
ARM_EWUPCT
);
...
...
@@ -409,7 +409,7 @@ void omap_pm_suspend(void)
MPUI730_RESTORE
(
OMAP_IH1_MIR
);
MPUI730_RESTORE
(
OMAP_IH2_0_MIR
);
MPUI730_RESTORE
(
OMAP_IH2_1_MIR
);
}
else
if
(
cpu_is_omap15
10
())
{
}
else
if
(
cpu_is_omap15
xx
())
{
MPUI1510_RESTORE
(
MPUI_CTRL
);
MPUI1510_RESTORE
(
MPUI_DSP_BOOT_CONFIG
);
MPUI1510_RESTORE
(
MPUI_DSP_API_CONFIG
);
...
...
@@ -470,7 +470,7 @@ static int omap_pm_read_proc(
ARM_SAVE
(
ARM_CKCTL
);
ARM_SAVE
(
ARM_IDLECT1
);
ARM_SAVE
(
ARM_IDLECT2
);
if
(
!
(
cpu_is_omap15
10
()))
if
(
!
(
cpu_is_omap15
xx
()))
ARM_SAVE
(
ARM_IDLECT3
);
ARM_SAVE
(
ARM_EWUPCT
);
ARM_SAVE
(
ARM_RSTCT1
);
...
...
@@ -491,7 +491,7 @@ static int omap_pm_read_proc(
MPUI730_SAVE
(
MPUI_DSP_API_CONFIG
);
MPUI730_SAVE
(
EMIFF_SDRAM_CONFIG
);
MPUI730_SAVE
(
EMIFS_CONFIG
);
}
else
if
(
cpu_is_omap15
10
())
{
}
else
if
(
cpu_is_omap15
xx
())
{
MPUI1510_SAVE
(
MPUI_CTRL
);
MPUI1510_SAVE
(
MPUI_DSP_STATUS
);
MPUI1510_SAVE
(
MPUI_DSP_BOOT_CONFIG
);
...
...
@@ -554,7 +554,7 @@ static int omap_pm_read_proc(
MPUI730_SHOW
(
MPUI_DSP_API_CONFIG
),
MPUI730_SHOW
(
EMIFF_SDRAM_CONFIG
),
MPUI730_SHOW
(
EMIFS_CONFIG
));
}
else
if
(
cpu_is_omap15
10
())
{
}
else
if
(
cpu_is_omap15
xx
())
{
my_buffer_offset
+=
sprintf
(
my_base
+
my_buffer_offset
,
"MPUI1510_CTRL_REG 0x%-8x
\n
"
"MPUI1510_DSP_STATUS_REG: 0x%-8x
\n
"
...
...
@@ -714,7 +714,7 @@ static int __init omap_pm_init(void)
omap730_idle_loop_suspend_sz
);
omap_sram_suspend
=
omap_sram_push
(
omap730_cpu_suspend
,
omap730_cpu_suspend_sz
);
}
else
if
(
cpu_is_omap15
10
())
{
}
else
if
(
cpu_is_omap15
xx
())
{
omap_sram_idle
=
omap_sram_push
(
omap1510_idle_loop_suspend
,
omap1510_idle_loop_suspend_sz
);
omap_sram_suspend
=
omap_sram_push
(
omap1510_cpu_suspend
,
...
...
arch/arm/plat-omap/gpio.c
View file @
0d50bd83
...
...
@@ -174,7 +174,7 @@ static int gpio_bank_count;
static
inline
struct
gpio_bank
*
get_gpio_bank
(
int
gpio
)
{
#ifdef CONFIG_ARCH_OMAP15XX
if
(
cpu_is_omap15
10
())
{
if
(
cpu_is_omap15
xx
())
{
if
(
OMAP_GPIO_IS_MPUIO
(
gpio
))
return
&
gpio_bank
[
0
];
return
&
gpio_bank
[
1
];
...
...
@@ -223,7 +223,7 @@ static inline int gpio_valid(int gpio)
return
0
;
}
#ifdef CONFIG_ARCH_OMAP15XX
if
(
cpu_is_omap15
10
()
&&
gpio
<
16
)
if
(
cpu_is_omap15
xx
()
&&
gpio
<
16
)
return
0
;
#endif
#if defined(CONFIG_ARCH_OMAP16XX)
...
...
@@ -886,7 +886,7 @@ static int __init _omap_gpio_init(void)
initialized
=
1
;
if
(
cpu_is_omap15
10
())
{
if
(
cpu_is_omap15
xx
())
{
gpio_ick
=
clk_get
(
NULL
,
"arm_gpio_ck"
);
if
(
IS_ERR
(
gpio_ick
))
printk
(
"Could not get arm_gpio_ck
\n
"
);
...
...
@@ -907,7 +907,7 @@ static int __init _omap_gpio_init(void)
}
#ifdef CONFIG_ARCH_OMAP15XX
if
(
cpu_is_omap15
10
())
{
if
(
cpu_is_omap15
xx
())
{
printk
(
KERN_INFO
"OMAP1510 GPIO hardware
\n
"
);
gpio_bank_count
=
2
;
gpio_bank
=
gpio_bank_1510
;
...
...
arch/arm/plat-omap/mcbsp.c
View file @
0d50bd83
...
...
@@ -183,7 +183,7 @@ static int omap_mcbsp_check(unsigned int id)
return
0
;
}
if
(
cpu_is_omap15
10
()
||
cpu_is_omap16xx
()
||
cpu_is_omap24xx
())
{
if
(
cpu_is_omap15
xx
()
||
cpu_is_omap16xx
()
||
cpu_is_omap24xx
())
{
if
(
id
>
OMAP_MAX_MCBSP_COUNT
)
{
printk
(
KERN_ERR
"OMAP-McBSP: McBSP%d doesn't exist
\n
"
,
id
+
1
);
return
-
1
;
...
...
@@ -197,7 +197,7 @@ static int omap_mcbsp_check(unsigned int id)
#ifdef CONFIG_ARCH_OMAP1
static
void
omap_mcbsp_dsp_request
(
void
)
{
if
(
cpu_is_omap15
10
()
||
cpu_is_omap16xx
())
{
if
(
cpu_is_omap15
xx
()
||
cpu_is_omap16xx
())
{
omap_dsp_request_mem
();
clk_enable
(
mcbsp_dsp_ck
);
clk_enable
(
mcbsp_api_ck
);
...
...
@@ -216,7 +216,7 @@ static void omap_mcbsp_dsp_request(void)
static
void
omap_mcbsp_dsp_free
(
void
)
{
if
(
cpu_is_omap15
10
()
||
cpu_is_omap16xx
())
{
if
(
cpu_is_omap15
xx
()
||
cpu_is_omap16xx
())
{
omap_dsp_release_mem
();
clk_disable
(
mcbsp_dspxor_ck
);
clk_disable
(
mcbsp_dsp_ck
);
...
...
@@ -832,7 +832,7 @@ static int __init omap_mcbsp_init(void)
}
#endif
#ifdef CONFIG_ARCH_OMAP15XX
if
(
cpu_is_omap15
10
())
{
if
(
cpu_is_omap15
xx
())
{
mcbsp_info
=
mcbsp_1510
;
mcbsp_count
=
ARRAY_SIZE
(
mcbsp_1510
);
}
...
...
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