From 4ffe10ca3302ba55ae1bc8d95386c13b2f28a5b6 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 14 May 2012 13:54:02 -0500 Subject: [PATCH] rpi gpio: Remove alt0 mode on serial pins * Confirmed this places pins in miniUART mode (we don't want this mode however) * We do need to fully understand *which* mode the pins need to be in for PL011 mode.. however the boot state of the Pi is PL011 --- src/system/boot/platform/raspberrypi_arm/gpio.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/system/boot/platform/raspberrypi_arm/gpio.cpp b/src/system/boot/platform/raspberrypi_arm/gpio.cpp index 24a380b19e..e3bcadccab 100644 --- a/src/system/boot/platform/raspberrypi_arm/gpio.cpp +++ b/src/system/boot/platform/raspberrypi_arm/gpio.cpp @@ -99,13 +99,4 @@ gpio_init() int pin = 0; for (pin = 16; pin <= 25; pin++) gpio_mode(GPIO_BASE, pin, GPIO_OUT); - - // ** Prepare UART pins for serial communication - // Set alternate function 0 on UART pins - gpio_mode(GPIO_BASE, 14, GPIO_ALT0); - gpio_mode(GPIO_BASE, 15, GPIO_ALT0); - - // Pull UART pins to initial state low - gpio_write(GPIO_BASE, 14, 0); - gpio_write(GPIO_BASE, 15, 0); }