]> git.sur5r.net Git - u-boot/commitdiff
OMAP3: mt_ventoux: disable the buzzer at start-up
authorStefano Babic <sbabic@denx.de>
Wed, 29 Aug 2012 01:22:04 +0000 (01:22 +0000)
committerTom Rini <trini@ti.com>
Wed, 5 Sep 2012 00:05:39 +0000 (17:05 -0700)
Signed-off-by: Stefano Babic <sbabic@denx.de>
board/teejet/mt_ventoux/mt_ventoux.c
board/teejet/mt_ventoux/mt_ventoux.h

index b7744a9bb3a82cc3a5dc8f114a54e69acea0e8d4..814e72f0523742ceeb882a6ef128335f03049894 100644 (file)
@@ -39,6 +39,9 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#define BUZZER         140
+#define SPEAKER                141
+
 #ifndef CONFIG_FPGA
 #error "The Teejet mt_ventoux must have CONFIG_FPGA enabled"
 #endif
@@ -193,6 +196,17 @@ int board_init(void)
 
        mt_ventoux_init_fpga();
 
+       /* GPIO_140: speaker #mute */
+       MUX_VAL(CP(MCBSP3_DX),          (IEN | PTU | EN | M4))
+       /* GPIO_141: Buzz Hi */
+       MUX_VAL(CP(MCBSP3_DR),          (IEN  | PTU | EN | M4))
+
+       /* Turning off the buzzer */
+       gpio_request(BUZZER, "BUZZER_MUTE");
+       gpio_request(SPEAKER, "SPEAKER");
+       gpio_direction_output(BUZZER, 0);
+       gpio_direction_output(SPEAKER, 0);
+
        return 0;
 }
 
index d1fee25f5c806873b09a378770b00e10675fea38..eadb8a5d391c2ca683bb96532a29b51762647ab6 100644 (file)
@@ -223,10 +223,6 @@ const omap3_sysinfo sysinfo = {
        MUX_VAL(CP(MCBSP2_DX),          (IEN | PTD | EN | M4)) \
                        /* GPIO_119: FPGA_INIT */ \
        \
-       MUX_VAL(CP(MCBSP3_DX),          (IEN | PTU | EN | M4)) \
-                       /* GPIO_140: speaker #mute */\
-       MUX_VAL(CP(MCBSP3_DR),          (IEN  | PTU | EN | M4)) \
-                       /* GPIO_141: Buzz Hi */\
        MUX_VAL(CP(MCBSP3_CLKX),        (IEN  | PTU | EN | M4)) \
        MUX_VAL(CP(MCBSP3_FSX),         (IEN  | PTU | EN | M4)) \
        \