#include <asm/arch/usb.h>
#include <asm/arch/keypad.h>
#include <asm/arch/common.h>
+#include <asm/arch/mcbsp.h>
+#include <asm/arch/omap-alsa.h>
#include <asm/arch/h6300_uart_info.h>
#define _h6300_KEY_CALENDAR 67 // xmodmap 75 aka F9
.get_txrx = NULL,
};
-struct platform_device btuart_device = {
+struct platform_device h63xx_uart_bt_device = {
.name = "h6300_bt",
.id = 1,
};
-EXPORT_SYMBOL(btuart_device);
+EXPORT_SYMBOL(h63xx_uart_bt_device);
+
+static struct omap_mcbsp_reg_cfg mcbsp_regs = {
+ .spcr2 = 0x0000,
+ .spcr1 = 0x0000,
+ .rcr2 = 0x8041,
+ .rcr1 = 0x0040,
+ .xcr2 = 0x00a1,
+ .xcr1 = 0x00a0,
+ .srgr2 = 0xb000,
+ .srgr1 = 0x0000,
+ .pcr0 = 0x0081,
+};
+
+static struct omap_alsa_codec_config alsa_config = {
+ .name = "iPAQ h6300 TSC2101",
+ .mcbsp_regs_alsa = &mcbsp_regs,
+ .codec_configure_dev = NULL, //tsc2101_configure,
+ .codec_set_samplerate = NULL, //tsc2101_set_samplerate,
+ .codec_clock_setup = NULL, //tsc2101_clock_setup,
+ .codec_clock_on = NULL, //tsc2101_clock_on,
+ .codec_clock_off = NULL, //tsc2101_clock_off,
+ .get_default_samplerate = NULL, //tsc2101_get_default_samplerate,
+};
+
+static struct platform_device h6300_mcbsp1_sound_device = {
+ .name = "omap_alsa_mcbsp",
+ .id = 1,
+ .dev = {
+ .platform_data = &alsa_config,
+ },
+};
static struct platform_device *h6300_devices[] __initdata = {
&h6300_lcd_device,
&h6300_kp_device,
+ &h63xx_uart_bt_device,
+ &h6300_mcbsp1_sound_device,
};
static struct omap_lcd_config h6300_lcd_config __initdata = {