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
a056bef4
Commit
a056bef4
authored
Feb 09, 2010
by
Eric Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pxa: introduce PXA_SSP_LEGACY for legacy SSP API
Signed-off-by:
Eric Miao
<
eric.y.miao@gmail.com
>
parent
98acdbe4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
arch/arm/mach-pxa/Kconfig
arch/arm/mach-pxa/Kconfig
+6
-0
arch/arm/mach-pxa/include/mach/ssp.h
arch/arm/mach-pxa/include/mach/ssp.h
+2
-0
arch/arm/mach-pxa/ssp.c
arch/arm/mach-pxa/ssp.c
+5
-0
sound/soc/pxa/Kconfig
sound/soc/pxa/Kconfig
+1
-0
No files found.
arch/arm/mach-pxa/Kconfig
View file @
a056bef4
...
...
@@ -458,6 +458,7 @@ config SHARPSL_PM
config CORGI_SSP_DEPRECATED
bool
select PXA_SSP
select PXA_SSP_LEGACY
help
This option will include corgi_ssp.c and corgi_lcd.c
that corgi_ts.c and other legacy drivers (corgi_bl.c
...
...
@@ -658,6 +659,11 @@ config PXA_SSP
help
Enable support for PXA2xx SSP ports
config PXA_SSP_LEGACY
bool
help
Support of legacy SSP API
config TOSA_BT
tristate "Control the state of built-in bluetooth chip on Sharp SL-6000"
depends on MACH_TOSA
...
...
arch/arm/mach-pxa/include/mach/ssp.h
View file @
a056bef4
...
...
@@ -46,6 +46,7 @@ struct ssp_device {
int
drcmr_tx
;
};
#ifdef CONFIG_PXA_SSP_LEGACY
/*
* SSP initialisation flags
*/
...
...
@@ -78,6 +79,7 @@ void ssp_restore_state(struct ssp_dev *dev, struct ssp_state *ssp);
int
ssp_init
(
struct
ssp_dev
*
dev
,
u32
port
,
u32
init_flags
);
int
ssp_config
(
struct
ssp_dev
*
dev
,
u32
mode
,
u32
flags
,
u32
psp_flags
,
u32
speed
);
void
ssp_exit
(
struct
ssp_dev
*
dev
);
#endif
/* CONFIG_PXA_SSP_LEGACY */
/**
* ssp_write_reg - Write to a SSP register
...
...
arch/arm/mach-pxa/ssp.c
View file @
a056bef4
...
...
@@ -35,6 +35,8 @@
#include <mach/ssp.h>
#include <mach/regs-ssp.h>
#ifdef CONFIG_PXA_SSP_LEGACY
#define TIMEOUT 100000
static
irqreturn_t
ssp_interrupt
(
int
irq
,
void
*
dev_id
)
...
...
@@ -303,6 +305,7 @@ void ssp_exit(struct ssp_dev *dev)
clk_disable
(
ssp
->
clk
);
ssp_free
(
ssp
);
}
#endif
/* CONFIG_PXA_SSP_LEGACY */
static
DEFINE_MUTEX
(
ssp_lock
);
static
LIST_HEAD
(
ssp_list
);
...
...
@@ -488,6 +491,7 @@ static void __exit pxa_ssp_exit(void)
arch_initcall
(
pxa_ssp_init
);
module_exit
(
pxa_ssp_exit
);
#ifdef CONFIG_PXA_SSP_LEGACY
EXPORT_SYMBOL
(
ssp_write_word
);
EXPORT_SYMBOL
(
ssp_read_word
);
EXPORT_SYMBOL
(
ssp_flush
);
...
...
@@ -498,6 +502,7 @@ EXPORT_SYMBOL(ssp_restore_state);
EXPORT_SYMBOL
(
ssp_init
);
EXPORT_SYMBOL
(
ssp_exit
);
EXPORT_SYMBOL
(
ssp_config
);
#endif
MODULE_DESCRIPTION
(
"PXA SSP driver"
);
MODULE_AUTHOR
(
"Liam Girdwood"
);
...
...
sound/soc/pxa/Kconfig
View file @
a056bef4
...
...
@@ -23,6 +23,7 @@ config SND_PXA2XX_SOC_I2S
config SND_PXA_SOC_SSP
tristate
select PXA_SSP_LEGACY
config SND_PXA2XX_SOC_CORGI
tristate "SoC Audio support for Sharp Zaurus SL-C7x0"
...
...
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