arm: board: Buzzer initialization to OFF state.
authorAlejandro Benete <abenete@somdevices.com>
Mon, 21 Mar 2022 09:56:14 +0000 (10:56 +0100)
committerAlejandro Benete <abenete@somdevices.com>
Mon, 21 Mar 2022 09:56:14 +0000 (10:56 +0100)
Signed-off-by: Alejandro Benete <abenete@somdevices.com>
board/somdevices/imx6ull_somdevices/imx6ull_somdevices.c

index b5fac7e..df3ff88 100644 (file)
@@ -402,6 +402,9 @@ int board_init(void)
        /* Address of boot parameters */
        gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
 
+       gpio_request(IMX_GPIO_NR(4, 11), "buzzer");
+       gpio_direction_output(IMX_GPIO_NR(4, 11) , 0);
+
 #ifdef CONFIG_FEC_MXC
        setup_fec(CONFIG_FEC_ENET_DEV);
 #endif