Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187459
b: refs/heads/master
c: a056bef
h: refs/heads/master
i:
  187457: 4b0c47d
  187455: d3e01d0
v: v3
  • Loading branch information
Eric Miao committed Mar 1, 2010
1 parent 229997e commit 03a249d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98acdbe4cf83f5a2e21c7aac830146b5d6da9282
refs/heads/master: a056bef45529810183f56944dcea8b4e297c2dc3
6 changes: 6 additions & 0 deletions trunk/arch/arm/mach-pxa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-pxa/include/mach/ssp.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ struct ssp_device {
int drcmr_tx;
};

#ifdef CONFIG_PXA_SSP_LEGACY
/*
* SSP initialisation flags
*/
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-pxa/ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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");
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/soc/pxa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 03a249d

Please sign in to comment.