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
61dc6eae
Commit
61dc6eae
authored
Oct 23, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: mach-highlander: Handle SCIF pinmuxing on R7785RP.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
0835f127
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
5 deletions
+34
-5
arch/sh/boards/mach-highlander/Kconfig
arch/sh/boards/mach-highlander/Kconfig
+1
-0
arch/sh/boards/mach-highlander/Makefile
arch/sh/boards/mach-highlander/Makefile
+5
-5
arch/sh/boards/mach-highlander/pinmux-r7785rp.c
arch/sh/boards/mach-highlander/pinmux-r7785rp.c
+20
-0
arch/sh/boards/mach-highlander/setup.c
arch/sh/boards/mach-highlander/setup.c
+2
-0
arch/sh/include/mach-common/mach/highlander.h
arch/sh/include/mach-common/mach/highlander.h
+6
-0
No files found.
arch/sh/boards/mach-highlander/Kconfig
View file @
61dc6eae
...
...
@@ -18,6 +18,7 @@ config SH_R7780MP
config SH_R7785RP
bool "R7785RP board support"
depends on CPU_SUBTYPE_SH7785
select GENERIC_GPIO
endchoice
...
...
arch/sh/boards/mach-highlander/Makefile
View file @
61dc6eae
#
# Makefile for the
R7780RP-1
specific parts of the kernel
# Makefile for the
Highlander
specific parts of the kernel
#
irqinit-$(CONFIG_SH_R7780MP)
:=
irq-r7780m
p.o
irqinit-$(CONFIG_SH_R7785RP)
:=
irq-r7785
rp.o
irqinit-$(CONFIG_SH_R7780RP)
:=
irq-r7780r
p.o
obj-
y
:=
setup.o
$
(
irqinit-y
)
obj-y
:=
setu
p.o
obj-$(CONFIG_SH_R7780RP)
+=
irq-r7780
rp.o
obj-$(CONFIG_SH_R7780MP)
+=
irq-r7780m
p.o
obj-
$(CONFIG_SH_R7785RP)
+=
irq-r7785rp.o pinmux-r7785rp.o
ifneq
($(CONFIG_SH_R7785RP),y)
obj-$(CONFIG_PUSH_SWITCH)
+=
psw.o
...
...
arch/sh/boards/mach-highlander/pinmux-r7785rp.c
0 → 100644
View file @
61dc6eae
/*
* Copyright (C) 2008 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
* for more details.
*/
#include <linux/init.h>
#include <linux/gpio.h>
#include <cpu/sh7785.h>
void
__init
highlander_plat_pinmux_setup
(
void
)
{
/* SCIF0 */
gpio_request
(
GPIO_FN_SCIF0_CTS
,
NULL
);
gpio_request
(
GPIO_FN_SCIF0_RTS
,
NULL
);
gpio_request
(
GPIO_FN_SCIF0_SCK
,
NULL
);
gpio_request
(
GPIO_FN_SCIF0_RXD
,
NULL
);
gpio_request
(
GPIO_FN_SCIF0_TXD
,
NULL
);
}
arch/sh/boards/mach-highlander/setup.c
View file @
61dc6eae
...
...
@@ -294,6 +294,8 @@ static void __init highlander_setup(char **cmdline_p)
(
ver
>>
12
)
&
0xf
,
(
ver
>>
8
)
&
0xf
,
(
ver
>>
4
)
&
0xf
,
ver
&
0xf
);
highlander_plat_pinmux_setup
();
/*
* Enable the important clocks right away..
*/
...
...
arch/sh/include/mach-common/mach/highlander.h
View file @
61dc6eae
...
...
@@ -195,4 +195,10 @@
unsigned
char
*
highlander_plat_irq_setup
(
void
);
#ifdef CONFIG_SH_R7785RP
void
highlander_plat_pinmux_setup
(
void
);
#else
#define highlander_plat_pinmux_setup() do { } while (0)
#endif
#endif
/* __ASM_SH_RENESAS_R7780RP */
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