serial: bcm283x: remove the CONFIG_SPL_BUILD ifdef
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 29 Jun 2018 06:35:12 +0000 (15:35 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 10 Oct 2019 04:38:41 +0000 (13:38 +0900)
Remove the CONFIG_SPL_BUILD ifdef to use the pinctrl.

Change-Id: I0685b7fbd15896e991bdb3c68e79554bde67c57f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/serial/serial_bcm283x_mu.c
drivers/serial/serial_bcm283x_pl011.c

index bde12d6..2030952 100644 (file)
@@ -153,7 +153,6 @@ static const struct udevice_id bcm283x_mu_serial_id[] = {
  */
 static bool bcm283x_is_serial_muxed(void)
 {
-#ifndef CONFIG_SPL_BUILD
        int serial_gpio = 15;
        struct udevice *dev;
 
@@ -162,7 +161,6 @@ static bool bcm283x_is_serial_muxed(void)
 
        if (pinctrl_get_gpio_mux(dev, 0, serial_gpio) != BCM2835_GPIO_ALT5)
                return false;
-#endif
 
        return true;
 }
index da86392..2527bb8 100644 (file)
@@ -21,7 +21,6 @@
  */
 static bool bcm283x_is_serial_muxed(void)
 {
-#ifndef CONFIG_SPL_BUILD
        int serial_gpio = 15;
        struct udevice *dev;
 
@@ -30,7 +29,6 @@ static bool bcm283x_is_serial_muxed(void)
 
        if (pinctrl_get_gpio_mux(dev, 0, serial_gpio) != BCM2835_GPIO_ALT0)
                return false;
-#endif
 
        return true;
 }