Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
14b7b401
Commit
14b7b401
authored
Sep 13, 2008
by
Dmitry Baryshkov
Committed by
Richard Purdie
Oct 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tosa: add support for bl/lcd driver
Signed-off-by:
Dmitry Baryshkov
<
dbaryshkov@gmail.com
>
parent
fbd1b17b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
arch/arm/mach-pxa/tosa.c
arch/arm/mach-pxa/tosa.c
+20
-1
No files found.
arch/arm/mach-pxa/tosa.c
View file @
14b7b401
...
...
@@ -31,6 +31,7 @@
#include <linux/gpio.h>
#include <linux/pda_power.h>
#include <linux/rfkill.h>
#include <linux/spi/spi.h>
#include <asm/setup.h>
#include <asm/mach-types.h>
...
...
@@ -42,6 +43,7 @@
#include <mach/mmc.h>
#include <mach/udc.h>
#include <mach/tosa_bt.h>
#include <mach/pxa2xx_spi.h>
#include <asm/mach/arch.h>
#include <mach/tosa.h>
...
...
@@ -612,7 +614,7 @@ static int tosa_tc6393xb_enable(struct platform_device *dev)
rc
=
gpio_request
(
TOSA_GPIO_TC6393XB_SUSPEND
,
"tc6393xb #suspend"
);
if
(
rc
)
goto
err_req_suspend
;
rc
=
gpio_request
(
TOSA_GPIO_TC6393XB_L3V_ON
,
"l3v"
);
rc
=
gpio_request
(
TOSA_GPIO_TC6393XB_L3V_ON
,
"
tc6393xb
l3v"
);
if
(
rc
)
goto
err_req_l3v
;
rc
=
gpio_direction_output
(
TOSA_GPIO_TC6393XB_L3V_ON
,
0
);
...
...
@@ -772,6 +774,20 @@ static struct platform_device tosa_bt_device = {
.
dev
.
platform_data
=
&
tosa_bt_data
,
};
static
struct
pxa2xx_spi_master
pxa_ssp_master_info
=
{
.
num_chipselect
=
1
,
};
static
struct
spi_board_info
spi_board_info
[]
__initdata
=
{
{
.
modalias
=
"tosa-lcd"
,
// .platform_data
.
max_speed_hz
=
28750
,
.
bus_num
=
2
,
.
chip_select
=
0
,
.
mode
=
SPI_MODE_0
,
},
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
tosascoop_device
,
...
...
@@ -826,6 +842,9 @@ static void __init tosa_init(void)
pxa_set_i2c_info
(
NULL
);
platform_scoop_config
=
&
tosa_pcmcia_config
;
pxa2xx_set_spi_info
(
2
,
&
pxa_ssp_master_info
);
spi_register_board_info
(
spi_board_info
,
ARRAY_SIZE
(
spi_board_info
));
clk_add_alias
(
"CLK_CK3P6MI"
,
&
tc6393xb_device
.
dev
,
"GPIO11_CLK"
,
NULL
);
platform_add_devices
(
devices
,
ARRAY_SIZE
(
devices
));
...
...
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