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
37035d62
Commit
37035d62
authored
Nov 15, 2013
by
Steven Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blackfin: pinctrl-adi2: code cleanup after using pinctrl-adi2
Signed-off-by:
Steven Miao
<
realmz6@gmail.com
>
parent
54e4ff4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
66 deletions
+4
-66
arch/blackfin/mach-bf609/boards/ezkit.c
arch/blackfin/mach-bf609/boards/ezkit.c
+4
-66
No files found.
arch/blackfin/mach-bf609/boards/ezkit.c
View file @
37035d62
...
@@ -678,14 +678,9 @@ static struct mtd_partition ezkit_partitions[] = {
...
@@ -678,14 +678,9 @@ static struct mtd_partition ezkit_partitions[] = {
int
bf609_nor_flash_init
(
struct
platform_device
*
pdev
)
int
bf609_nor_flash_init
(
struct
platform_device
*
pdev
)
{
{
#define CONFIG_SMC_GCTL_VAL 0x00000010
#define CONFIG_SMC_GCTL_VAL 0x00000010
const
unsigned
short
pins
[]
=
{
P_A3
,
P_A4
,
P_A5
,
P_A6
,
P_A7
,
P_A8
,
P_A9
,
P_A10
,
P_A11
,
P_A12
,
P_A13
,
P_A14
,
P_A15
,
P_A16
,
P_A17
,
P_A18
,
P_A19
,
P_A20
,
P_A21
,
P_A22
,
P_A23
,
P_A24
,
P_A25
,
P_NORCK
,
0
,
};
peripheral_request_list
(
pins
,
"smc0"
);
if
(
!
devm_pinctrl_get_select_default
(
&
pdev
->
dev
))
return
-
EBUSY
;
bfin_write32
(
SMC_GCTL
,
CONFIG_SMC_GCTL_VAL
);
bfin_write32
(
SMC_GCTL
,
CONFIG_SMC_GCTL_VAL
);
bfin_write32
(
SMC_B0CTL
,
0x01002011
);
bfin_write32
(
SMC_B0CTL
,
0x01002011
);
bfin_write32
(
SMC_B0TIM
,
0x08170977
);
bfin_write32
(
SMC_B0TIM
,
0x08170977
);
...
@@ -693,16 +688,9 @@ int bf609_nor_flash_init(struct platform_device *pdev)
...
@@ -693,16 +688,9 @@ int bf609_nor_flash_init(struct platform_device *pdev)
return
0
;
return
0
;
}
}
void
bf609_nor_flash_exit
(
struct
platform_device
*
dev
)
void
bf609_nor_flash_exit
(
struct
platform_device
*
p
dev
)
{
{
const
unsigned
short
pins
[]
=
{
devm_pinctrl_put
(
pdev
->
dev
.
pins
->
p
);
P_A3
,
P_A4
,
P_A5
,
P_A6
,
P_A7
,
P_A8
,
P_A9
,
P_A10
,
P_A11
,
P_A12
,
P_A13
,
P_A14
,
P_A15
,
P_A16
,
P_A17
,
P_A18
,
P_A19
,
P_A20
,
P_A21
,
P_A22
,
P_A23
,
P_A24
,
P_A25
,
P_NORCK
,
0
,
};
peripheral_free_list
(
pins
);
bfin_write32
(
SMC_GCTL
,
0
);
bfin_write32
(
SMC_GCTL
,
0
);
}
}
...
@@ -1331,17 +1319,6 @@ static struct platform_device bfin_pinctrl_device = {
...
@@ -1331,17 +1319,6 @@ static struct platform_device bfin_pinctrl_device = {
.
id
=
0
,
.
id
=
0
,
};
};
#ifdef CONFIG_PINCTRL_ADI2
# define ADI_PINT_DEVNAME "adi-gpio-pint"
# define ADI_GPIO_DEVNAME "adi-gpio"
# define ADI_PINCTRL_DEVNAME "pinctrl-adi2"
static
struct
platform_device
bfin_pinctrl_device
=
{
.
name
=
ADI_PINCTRL_DEVNAME
,
.
id
=
0
,
};
static
struct
resource
bfin_pint0_resources
[]
=
{
static
struct
resource
bfin_pint0_resources
[]
=
{
{
{
.
start
=
PINT0_MASK_SET
,
.
start
=
PINT0_MASK_SET
,
...
@@ -2092,45 +2069,6 @@ static struct pinctrl_map __initdata bfin_pinmux_map[] = {
...
@@ -2092,45 +2069,6 @@ static struct pinctrl_map __initdata bfin_pinmux_map[] = {
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.2"
,
"pinctrl-adi2.0"
,
NULL
,
"sport2"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.2"
,
"pinctrl-adi2.0"
,
NULL
,
"sport2"
),
};
};
/* Pin control settings */
static
struct
pinctrl_map
__initdata
bfin_pinmux_map
[]
=
{
/* per-device maps */
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-uart.0"
,
"pinctrl-adi2.0"
,
NULL
,
"uart0"
),
#ifdef CONFIG_BFIN_UART0_CTSRTS
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-uart.0"
,
"pinctrl-adi2.0"
,
NULL
,
"uart0_ctsrts"
),
#endif
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-uart.1"
,
"pinctrl-adi2.0"
,
NULL
,
"uart1"
),
#ifdef CONFIG_BFIN_UART1_CTSRTS
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-uart.1"
,
"pinctrl-adi2.0"
,
NULL
,
"uart1_ctsrts"
),
#endif
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_sir.0"
,
"pinctrl-adi2.0"
,
NULL
,
"uart0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_sir.1"
,
"pinctrl-adi2.0"
,
NULL
,
"uart1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-sdh.0"
,
"pinctrl-adi2.0"
,
NULL
,
"rsi0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"stmmaceth.0"
,
"pinctrl-adi2.0"
,
NULL
,
"eth0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-spi3.0"
,
"pinctrl-adi2.0"
,
NULL
,
"spi0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-spi3.1"
,
"pinctrl-adi2.0"
,
NULL
,
"spi1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"i2c-bfin-twi.0"
,
"pinctrl-adi2.0"
,
NULL
,
"twi0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"i2c-bfin-twi.1"
,
"pinctrl-adi2.0"
,
NULL
,
"twi1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-rotary"
,
"pinctrl-adi2.0"
,
NULL
,
"rotary"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_can.0"
,
"pinctrl-adi2.0"
,
NULL
,
"can0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"physmap-flash.0"
,
"pinctrl-adi2.0"
,
NULL
,
"smc0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bf609_nl8048.2"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi2_16b"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_display.0"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi2_16b"
),
#if defined(CONFIG_VIDEO_MT9M114) || defined(CONFIG_VIDEO_MT9M114_MODULE)
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_capture.0"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi0_8b"
),
#elif defined(CONFIG_VIDEO_VS6624) || defined(CONFIG_VIDEO_VS6624_MODULE)
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_capture.0"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi0_16b"
),
#else
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin_capture.0"
,
"pinctrl-adi2.0"
,
NULL
,
"ppi0_24b"
),
#endif
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-i2s.0"
,
"pinctrl-adi2.0"
,
NULL
,
"sport0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.0"
,
"pinctrl-adi2.0"
,
NULL
,
"sport0"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-i2s.1"
,
"pinctrl-adi2.0"
,
NULL
,
"sport1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.1"
,
"pinctrl-adi2.0"
,
NULL
,
"sport1"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-i2s.2"
,
"pinctrl-adi2.0"
,
NULL
,
"sport2"
),
PIN_MAP_MUX_GROUP_DEFAULT
(
"bfin-tdm.2"
,
"pinctrl-adi2.0"
,
NULL
,
"sport2"
),
};
static
int
__init
ezkit_init
(
void
)
static
int
__init
ezkit_init
(
void
)
{
{
printk
(
KERN_INFO
"%s(): registering device resources
\n
"
,
__func__
);
printk
(
KERN_INFO
"%s(): registering device resources
\n
"
,
__func__
);
...
...
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