Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
authorTom Rini <trini@konsulko.com>
Thu, 4 Jun 2020 14:21:51 +0000 (10:21 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 4 Jun 2020 14:21:51 +0000 (10:21 -0400)
First set of u-boot-atmel fixes for 2020.07 cycle

This set includes just two small commits that fix a build warning and
add a missing serial node.

arch/arm/dts/sama5d2.dtsi
board/atmel/sama5d27_som1_ek/sama5d27_som1_ek.c
board/atmel/sama5d2_ptc_ek/sama5d2_ptc_ek.c
board/atmel/sama5d2_xplained/sama5d2_xplained.c

index 5adc47b906b1711c0bffbc7467b01f93c23c8c3c..6fb2cb25f984ea3300167f5e8698892664106741 100644 (file)
                                status = "disabled";
                        };
 
+                       uart4: serial@fc00c000 {
+                               compatible = "atmel,at91sam9260-usart";
+                               reg = <0xfc00c000 0x100>;
+                               clocks = <&uart4_clk>;
+                               clock-names = "usart";
+                               status = "disabled";
+                       };
+
                        i2c1: i2c@fc028000 {
                                compatible = "atmel,sama5d2-i2c";
                                reg = <0xfc028000 0x100>;
index f3816c83345ed9a2cae0d5aaf942eb3eed605c56..376562cd0e7d0f368313aa4b283813af2b1097b3 100644 (file)
@@ -20,10 +20,12 @@ extern void at91_pda_detect(void);
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_CMD_USB
 static void board_usb_hw_init(void)
 {
        atmel_pio4_set_pio_output(AT91_PIO_PORTA, 27, 1);
 }
+#endif
 
 #ifdef CONFIG_BOARD_LATE_INIT
 int board_late_init(void)
index 4b3a703f260c0437e91dde1c8dbe4e3b3249e249..b0a23b02db2bf573524c32c0ef2e87e86f0aa12d 100644 (file)
@@ -76,10 +76,12 @@ int board_late_init(void)
 }
 #endif
 
+#ifdef CONFIG_CMD_USB
 static void board_usb_hw_init(void)
 {
        atmel_pio4_set_pio_output(AT91_PIO_PORTB, 12, ATMEL_PIO_PUEN_MASK);
 }
+#endif
 
 #ifdef CONFIG_DEBUG_UART_BOARD_INIT
 static void board_uart0_hw_init(void)
index 2116b788378fe63de8118e0026afc78db83fbc79..01636fb73d010f882fcf500d2d72be28c80a732c 100644 (file)
@@ -20,10 +20,12 @@ extern void at91_pda_detect(void);
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_CMD_USB
 static void board_usb_hw_init(void)
 {
        atmel_pio4_set_pio_output(AT91_PIO_PORTB, 10, 1);
 }
+#endif
 
 #ifdef CONFIG_BOARD_LATE_INIT
 int board_late_init(void)