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
699fe145
Commit
699fe145
authored
Aug 23, 2010
by
Colin Cross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: tegra: Allow overriding arch_reset
Signed-off-by:
Colin Cross
<
ccross@android.com
>
parent
1eb2ecf1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
arch/arm/mach-tegra/board.h
arch/arm/mach-tegra/board.h
+2
-0
arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/common.c
+13
-0
arch/arm/mach-tegra/include/mach/system.h
arch/arm/mach-tegra/include/mach/system.h
+2
-8
No files found.
arch/arm/mach-tegra/board.h
View file @
699fe145
...
...
@@ -23,6 +23,8 @@
#include <linux/types.h>
void
tegra_assert_system_reset
(
char
mode
,
const
char
*
cmd
);
void
__init
tegra_common_init
(
void
);
void
__init
tegra_map_common_io
(
void
);
void
__init
tegra_init_irq
(
void
);
...
...
arch/arm/mach-tegra/common.c
View file @
699fe145
...
...
@@ -26,11 +26,24 @@
#include <mach/iomap.h>
#include <mach/dma.h>
#include <mach/system.h>
#include "board.h"
#include "clock.h"
#include "fuse.h"
void
(
*
arch_reset
)(
char
mode
,
const
char
*
cmd
)
=
tegra_assert_system_reset
;
void
tegra_assert_system_reset
(
char
mode
,
const
char
*
cmd
)
{
void
__iomem
*
reset
=
IO_ADDRESS
(
TEGRA_CLK_RESET_BASE
+
0x04
);
u32
reg
;
reg
=
readl
(
reset
);
reg
|=
0x04
;
writel
(
reg
,
reset
);
}
static
__initdata
struct
tegra_clk_init_table
common_clk_init_table
[]
=
{
/* name parent rate enabled */
{
"clk_m"
,
NULL
,
0
,
true
},
...
...
arch/arm/mach-tegra/include/mach/system.h
View file @
699fe145
...
...
@@ -24,16 +24,10 @@
#include <mach/hardware.h>
#include <mach/iomap.h>
static
inline
void
arch_idle
(
void
)
{
}
extern
void
(
*
arch_reset
)(
char
mode
,
const
char
*
cmd
);
static
inline
void
arch_
reset
(
char
mode
,
const
char
*
cm
d
)
static
inline
void
arch_
idle
(
voi
d
)
{
void
__iomem
*
reset
=
IO_ADDRESS
(
TEGRA_CLK_RESET_BASE
+
0x04
);
u32
reg
=
readl
(
reset
);
reg
|=
0x04
;
writel
(
reg
,
reset
);
}
#endif
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