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
d744f881
Commit
d744f881
authored
Sep 14, 2005
by
Romain Goyet
Committed by
Tony Lindgren
Sep 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ARM: OMAP: Add basic cpu support for OMAP330 processor
Add basic 330 cpu support. 330 is handled as 15xx.
parent
c9c0b33b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
12 deletions
+26
-12
arch/arm/mach-omap1/id.c
arch/arm/mach-omap1/id.c
+2
-0
arch/arm/mach-omap1/irq.c
arch/arm/mach-omap1/irq.c
+8
-0
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/clock.c
+2
-2
arch/arm/plat-omap/sram.c
arch/arm/plat-omap/sram.c
+2
-0
include/asm-arm/arch-omap/cpu.h
include/asm-arm/arch-omap/cpu.h
+12
-10
No files found.
arch/arm/mach-omap1/id.c
View file @
d744f881
...
...
@@ -27,6 +27,7 @@ struct omap_id {
/* Register values to detect the OMAP version */
static
struct
omap_id
omap_ids
[]
__initdata
=
{
{
.
jtag_id
=
0xb574
,
.
die_rev
=
0x2
,
.
omap_id
=
0x03310315
,
.
type
=
0x03100000
},
{
.
jtag_id
=
0x355f
,
.
die_rev
=
0x0
,
.
omap_id
=
0x03320000
,
.
type
=
0x07300100
},
{
.
jtag_id
=
0xb55f
,
.
die_rev
=
0x0
,
.
omap_id
=
0x03320000
,
.
type
=
0x07300300
},
{
.
jtag_id
=
0xb470
,
.
die_rev
=
0x0
,
.
omap_id
=
0x03310100
,
.
type
=
0x15100000
},
...
...
@@ -164,6 +165,7 @@ void __init omap_check_revision(void)
case
0x07
:
system_rev
|=
0x07
;
break
;
case
0x03
:
case
0x15
:
system_rev
|=
0x15
;
break
;
...
...
arch/arm/mach-omap1/irq.c
View file @
d744f881
...
...
@@ -152,6 +152,10 @@ static struct omap_irq_bank omap1510_irq_banks[] = {
{
.
base_reg
=
OMAP_IH1_BASE
,
.
trigger_map
=
0xb3febfff
},
{
.
base_reg
=
OMAP_IH2_BASE
,
.
trigger_map
=
0xffbfffed
},
};
static
struct
omap_irq_bank
omap310_irq_banks
[]
=
{
{
.
base_reg
=
OMAP_IH1_BASE
,
.
trigger_map
=
0xb3faefc3
},
{
.
base_reg
=
OMAP_IH2_BASE
,
.
trigger_map
=
0x65b3c061
},
};
#endif
#if defined(CONFIG_ARCH_OMAP16XX)
...
...
@@ -186,6 +190,10 @@ void __init omap_init_irq(void)
irq_banks
=
omap1510_irq_banks
;
irq_bank_count
=
ARRAY_SIZE
(
omap1510_irq_banks
);
}
if
(
cpu_is_omap310
())
{
irq_banks
=
omap310_irq_banks
;
irq_bank_count
=
ARRAY_SIZE
(
omap310_irq_banks
);
}
#endif
#if defined(CONFIG_ARCH_OMAP16XX)
if
(
cpu_is_omap16xx
())
{
...
...
arch/arm/plat-omap/clock.c
View file @
d744f881
...
...
@@ -1158,7 +1158,7 @@ int __init clk_init(void)
omap_early_clk_reset
();
for
(
clkp
=
onchip_clks
;
clkp
<
onchip_clks
+
ARRAY_SIZE
(
onchip_clks
);
clkp
++
)
{
if
(((
*
clkp
)
->
flags
&
CLOCK_IN_OMAP1510
)
&&
cpu_is_omap15
10
())
{
if
(((
*
clkp
)
->
flags
&
CLOCK_IN_OMAP1510
)
&&
cpu_is_omap15
xx
())
{
clk_register
(
*
clkp
);
continue
;
}
...
...
@@ -1269,7 +1269,7 @@ int __init clk_init(void)
clk_use
(
&
armxor_ck
);
clk_use
(
&
armtim_ck
);
if
(
cpu_is_omap15
10
())
if
(
cpu_is_omap15
xx
())
clk_enable
(
&
arm_gpio_ck
);
return
0
;
...
...
arch/arm/plat-omap/sram.c
View file @
d744f881
...
...
@@ -42,6 +42,8 @@ void __init omap_detect_sram(void)
omap_sram_base
=
OMAP1_SRAM_BASE
;
if
(
cpu_is_omap730
())
omap_sram_size
=
0x30000
;
else
if
(
cpu_is_omap730
())
omap_sram_size
=
0x32000
;
else
if
(
cpu_is_omap1510
())
omap_sram_size
=
0x80000
;
...
...
include/asm-arm/arch-omap/cpu.h
View file @
d744f881
...
...
@@ -79,7 +79,7 @@ extern unsigned int system_rev;
* Macros to group OMAP into cpu classes.
* These can be used in most places.
* cpu_is_omap7xx(): True for OMAP730
* cpu_is_omap15xx(): True for OMAP1510
and OMAP59
10
* cpu_is_omap15xx(): True for OMAP1510
, OMAP5910 and OMAP3
10
* cpu_is_omap16xx(): True for OMAP1610, OMAP5912 and OMAP1710
* cpu_is_omap24xx(): True for OMAP2420
*/
...
...
@@ -136,6 +136,7 @@ IS_OMAP_CLASS(24xx, 0x24)
/*
* Macros to detect individual cpu types.
* These are only rarely needed.
* cpu_is_omap330(): True for OMAP330
* cpu_is_omap730(): True for OMAP730
* cpu_is_omap1510(): True for OMAP1510
* cpu_is_omap1610(): True for OMAP1610
...
...
@@ -153,6 +154,7 @@ static inline int is_omap ##type (void) \
return (GET_OMAP_TYPE == (id)) ? 1 : 0; \
}
IS_OMAP_TYPE
(
310
,
0x0310
)
IS_OMAP_TYPE
(
730
,
0x0730
)
IS_OMAP_TYPE
(
1510
,
0x1510
)
IS_OMAP_TYPE
(
1610
,
0x1610
)
...
...
@@ -162,6 +164,7 @@ IS_OMAP_TYPE(1621, 0x1621)
IS_OMAP_TYPE
(
1710
,
0x1710
)
IS_OMAP_TYPE
(
2420
,
0x2420
)
#define cpu_is_omap310() 0
#define cpu_is_omap730() 0
#define cpu_is_omap1510() 0
#define cpu_is_omap1610() 0
...
...
@@ -176,25 +179,24 @@ IS_OMAP_TYPE(2420, 0x2420)
# undef cpu_is_omap730
# define cpu_is_omap730() is_omap730()
# endif
# if defined(CONFIG_ARCH_OMAP1510)
# undef cpu_is_omap1510
# define cpu_is_omap1510() is_omap1510()
# endif
#else
# if defined(CONFIG_ARCH_OMAP730)
# undef cpu_is_omap730
# define cpu_is_omap730() 1
# endif
# if defined(CONFIG_ARCH_OMAP1510)
# undef cpu_is_omap1510
# define cpu_is_omap1510() 1
# endif
#endif
/*
* Whether we have MULTI_OMAP1 or not, we still need to distinguish
* between
1611B/5912 and
1710.
* between
330 vs. 1510 and 1611B/5912 vs.
1710.
*/
#if defined(CONFIG_ARCH_OMAP1510)
# undef cpu_is_omap310
# undef cpu_is_omap1510
# define cpu_is_omap310() is_omap310()
# define cpu_is_omap1510() is_omap1510()
#endif
#if defined(CONFIG_ARCH_OMAP16XX)
# undef cpu_is_omap1610
# undef cpu_is_omap1611
...
...
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