Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
93cb1e87
Commit
93cb1e87
authored
Dec 21, 2005
by
Juha Yrjola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Support for new Retu chips
Signed-off-by:
Juha Yrjl
<
juha.yrjola@nokia.com
>
parent
4dd59dd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
drivers/cbus/retu.c
drivers/cbus/retu.c
+11
-2
drivers/cbus/retu.h
drivers/cbus/retu.h
+1
-1
No files found.
drivers/cbus/retu.c
View file @
93cb1e87
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
static
int
retu_initialized
;
static
int
retu_initialized
;
static
int
retu_irq_pin
;
static
int
retu_irq_pin
;
static
int
retu_is_vilma
;
static
struct
tasklet_struct
retu_tasklet
;
static
struct
tasklet_struct
retu_tasklet
;
spinlock_t
retu_lock
=
SPIN_LOCK_UNLOCKED
;
spinlock_t
retu_lock
=
SPIN_LOCK_UNLOCKED
;
...
@@ -295,7 +296,7 @@ static void retu_power_off(void)
...
@@ -295,7 +296,7 @@ static void retu_power_off(void)
static
int
__devinit
retu_probe
(
struct
device
*
dev
)
static
int
__devinit
retu_probe
(
struct
device
*
dev
)
{
{
const
struct
omap_em_asic_bb5_config
*
em_asic_config
;
const
struct
omap_em_asic_bb5_config
*
em_asic_config
;
int
ret
;
int
re
v
,
re
t
;
/* Prepare tasklet */
/* Prepare tasklet */
tasklet_init
(
&
retu_tasklet
,
retu_tasklet_handler
,
0
);
tasklet_init
(
&
retu_tasklet
,
retu_tasklet_handler
,
0
);
...
@@ -321,6 +322,14 @@ static int __devinit retu_probe(struct device *dev)
...
@@ -321,6 +322,14 @@ static int __devinit retu_probe(struct device *dev)
set_irq_type
(
OMAP_GPIO_IRQ
(
retu_irq_pin
),
IRQT_RISING
);
set_irq_type
(
OMAP_GPIO_IRQ
(
retu_irq_pin
),
IRQT_RISING
);
retu_initialized
=
1
;
retu_initialized
=
1
;
rev
=
retu_read_reg
(
RETU_REG_ASICR
)
&
0xff
;
if
(
rev
&
(
1
<<
7
))
retu_is_vilma
=
1
;
printk
(
KERN_INFO
"%s v%d.%d found
\n
"
,
retu_is_vilma
?
"Vilma"
:
"Retu"
,
(
rev
>>
4
)
&
0x07
,
rev
&
0x0f
);
/* Mask all RETU interrupts */
/* Mask all RETU interrupts */
retu_write_reg
(
RETU_REG_IMR
,
0xffff
);
retu_write_reg
(
RETU_REG_IMR
,
0xffff
);
...
@@ -392,7 +401,7 @@ static int __init retu_init(void)
...
@@ -392,7 +401,7 @@ static int __init retu_init(void)
{
{
int
ret
=
0
;
int
ret
=
0
;
printk
(
KERN_INFO
"Retu driver initialising
\n
"
);
printk
(
KERN_INFO
"Retu
/Vilma
driver initialising
\n
"
);
init_completion
(
&
device_release
);
init_completion
(
&
device_release
);
...
...
drivers/cbus/retu.h
View file @
93cb1e87
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#include <linux/types.h>
#include <linux/types.h>
/* Registers */
/* Registers */
#define RETU_REG_ASIC
ID
0x00
/* ASIC ID & revision */
#define RETU_REG_ASIC
R
0x00
/* ASIC ID & revision */
#define RETU_REG_IDR 0x01
/* Interrupt ID */
#define RETU_REG_IDR 0x01
/* Interrupt ID */
#define RETU_REG_IMR 0x02
/* Interrupt mask */
#define RETU_REG_IMR 0x02
/* Interrupt mask */
#define RETU_REG_RTCDSR 0x03
/* RTC seconds register */
#define RETU_REG_RTCDSR 0x03
/* RTC seconds register */
...
...
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