]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
rpi3: build: Include GPIO driver in all BL stages
authorAndre Przywara <andre.przywara@arm.com>
Wed, 11 Mar 2020 16:33:53 +0000 (16:33 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 17 Mar 2020 13:44:55 +0000 (13:44 +0000)
So far the Raspberry Pi 3 build needs the GPIO driver just for BL2.
Upcoming changes will require some GPIO code in BL1 and BL31 also, so
move those driver files into the common source section.

This does not affect BL31 code size at all, and bl1.bin just increases
by 144 bytes, but doesn't affect the padded binary size at all.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Change-Id: I7639746dc241c1e69099d85d2671c65fa0108555

plat/rpi/rpi3/platform.mk

index e454ce37ef6c212e1d1eba8296b3a1c5ca10cd46..a5b8904d59d1f87874e3828091818114d3f49fb2 100644 (file)
@@ -12,6 +12,9 @@ PLAT_INCLUDES         :=      -Iplat/rpi/common/include               \
 
 PLAT_BL_COMMON_SOURCES :=      drivers/ti/uart/aarch64/16550_console.S \
                                drivers/arm/pl011/aarch64/pl011_console.S \
+                               drivers/gpio/gpio.c                     \
+                               drivers/delay_timer/delay_timer.c       \
+                               drivers/rpi3/gpio/rpi3_gpio.c           \
                                plat/rpi/common/rpi3_common.c           \
                                ${XLAT_TABLES_LIB_SRCS}
 
@@ -30,10 +33,7 @@ BL2_SOURCES          +=      common/desc_image_load.c                \
                                drivers/io/io_fip.c                     \
                                drivers/io/io_memmap.c                  \
                                drivers/io/io_storage.c                 \
-                               drivers/gpio/gpio.c                     \
-                               drivers/delay_timer/delay_timer.c       \
                                drivers/delay_timer/generic_delay_timer.c \
-                               drivers/rpi3/gpio/rpi3_gpio.c           \
                                drivers/io/io_block.c                   \
                                drivers/mmc/mmc.c                       \
                                drivers/rpi3/sdhost/rpi3_sdhost.c       \