summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx5
diff options
context:
space:
mode:
authorZeng Zhaoming <b32542@freescale.com>2011-04-28 10:32:09 +0800
committerJason Liu <r64343@freescale.com>2012-01-09 20:08:26 +0800
commit798caa2428b63916ef0c4c80119f29cde073c96f (patch)
tree000f5f3c50c805f1161ed6fb7976489504d09448 /arch/arm/mach-mx5
parent22b1f514afa939ebeeb7b3c15614ce6d44d7d213 (diff)
ENGR00142733 MX51: Add sgtl5000 support for babbage
Add sgtl5000 support for imx51 babbage in 2.6.38 kernel Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx5')
-rwxr-xr-xarch/arm/mach-mx5/board-mx51_babbage.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 2d83b18e1aa4..bb3467bf24d5 100755
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -58,7 +58,9 @@
#define BABBAGE_AUDAMP_STBY IMX_GPIO_NR(2, 17)
#define BABBAGE_HEADPHONE_DET IMX_GPIO_NR(3, 26)
#define BABBAGE_AUDIO_CLK_EN IMX_GPIO_NR(4, 26)
+#define BABBAGE_OSC_EN_B IMX_GPIO_NR(2, 2)
+#define BABBAGE_26M_OSC_EN IMX_GPIO_NR(3, 1)
#define BABBAGE_LVDS_POWER_DOWN IMX_GPIO_NR(3, 3) /* GPIO_3_3 */
#define BABBAGE_DISP_BRIGHTNESS_CTL IMX_GPIO_NR(3, 4) /* GPIO_3_4 */
#define BABBAGE_DVI_RESET IMX_GPIO_NR(3, 5) /* GPIO_3_5 */
@@ -210,6 +212,7 @@ static iomux_v3_cfg_t mx51babbage_pads[] = {
MX51_PAD_DI1_D1_CS__GPIO3_4,
#endif
+ MX51_PAD_EIM_LBA__GPIO3_1,
MX51_PAD_AUD3_BB_TXD__AUD3_TXD,
MX51_PAD_AUD3_BB_RXD__AUD3_RXD,
MX51_PAD_AUD3_BB_CK__AUD3_TXC,
@@ -607,7 +610,8 @@ static int bbg_sgtl5000_init(void)
/* Enable OSC_CKIH1_EN for audio */
gpio_request(BABBAGE_AUDIO_CLK_EN, "audio_clk");
- gpio_direction_output(BABBAGE_AUDIO_CLK_EN, 1);
+ gpio_direction_output(BABBAGE_AUDIO_CLK_EN, 0);
+ gpio_set_value(BABBAGE_AUDIO_CLK_EN, 0);
return 0;
}
@@ -617,7 +621,7 @@ static struct mxc_audio_platform_data bbg_audio_data = {
.src_port = 2,
.ext_port = 3,
.init = bbg_sgtl5000_init,
- .sysclk = 12288000,
+ .sysclk = 26000000,
.hp_gpio = BABBAGE_HEADPHONE_DET,
.hp_active_low = 1,
};
@@ -739,6 +743,13 @@ static void __init mx51_babbage_init(void)
gpio_request(BABBAGE_DVI_POWER, "dvi-power");
gpio_direction_output(BABBAGE_DVI_POWER, 1);
+ gpio_request(BABBAGE_26M_OSC_EN, "26M-OSC-CLK");
+ gpio_direction_output(BABBAGE_26M_OSC_EN, 1);
+
+ /* OSC_EN */
+ gpio_request(BABBAGE_OSC_EN_B, "osc-en");
+ gpio_direction_output(BABBAGE_OSC_EN_B, 1);
+
/* WVGA Reset */
gpio_set_value(BABBAGE_DISP_BRIGHTNESS_CTL, 1);