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
nexedi
linux
Commits
b4d36a25
Commit
b4d36a25
authored
Oct 28, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Add on-chip RTC support for SH7722.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
5ca8c485
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
3 deletions
+33
-3
arch/sh/include/cpu-sh4/cpu/rtc.h
arch/sh/include/cpu-sh4/cpu/rtc.h
+1
-1
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
+32
-2
No files found.
arch/sh/include/cpu-sh4/cpu/rtc.h
View file @
b4d36a25
#ifndef __ASM_SH_CPU_SH4_RTC_H
#define __ASM_SH_CPU_SH4_RTC_H
#if
def CONFIG_CPU_SUBTYPE_SH7723
#if
defined(CONFIG_CPU_SUBTYPE_SH7722) || defined(CONFIG_CPU_SUBTYPE_SH7723)
#define rtc_reg_size sizeof(u16)
#else
#define rtc_reg_size sizeof(u32)
...
...
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
View file @
b4d36a25
/*
* SH7722 Setup
*
* Copyright (C) 2006 - 200
7
Paul Mundt
* Copyright (C) 2006 - 200
8
Paul Mundt
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
...
...
@@ -16,6 +16,36 @@
#include <asm/clock.h>
#include <asm/mmzone.h>
static
struct
resource
rtc_resources
[]
=
{
[
0
]
=
{
.
start
=
0xa465fec0
,
.
end
=
0xa465fec0
+
0x58
-
1
,
.
flags
=
IORESOURCE_IO
,
},
[
1
]
=
{
/* Period IRQ */
.
start
=
45
,
.
flags
=
IORESOURCE_IRQ
,
},
[
2
]
=
{
/* Carry IRQ */
.
start
=
46
,
.
flags
=
IORESOURCE_IRQ
,
},
[
3
]
=
{
/* Alarm IRQ */
.
start
=
44
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
platform_device
rtc_device
=
{
.
name
=
"sh-rtc"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
rtc_resources
),
.
resource
=
rtc_resources
,
};
static
struct
resource
usbf_resources
[]
=
{
[
0
]
=
{
.
name
=
"m66592_udc"
,
...
...
@@ -150,6 +180,7 @@ static struct platform_device sci_device = {
};
static
struct
platform_device
*
sh7722_devices
[]
__initdata
=
{
&
rtc_device
,
&
usbf_device
,
&
iic_device
,
&
sci_device
,
...
...
@@ -202,7 +233,6 @@ enum {
IRDA
,
JPU
,
LCDC
,
/* interrupt groups */
SIM
,
RTC
,
DMAC0123
,
VIOVOU
,
USB
,
DMAC45
,
FLCTL
,
I2C
,
SDHI
,
};
...
...
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