diff options
author | Ravi Kumar Bokka <rbokka@codeaurora.org> | 2021-03-31 08:05:24 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-08 06:49:27 +0000 |
commit | 1faaa16a0831ba0926f2a0b59cde19a95c72d5b2 (patch) | |
tree | 12933bc9408e1d388e8059bd61afdd5d2707de98 /src/soc/qualcomm/qcs405 | |
parent | 6fce9cd97d13641f8724811ec7b6470fbcba2fdf (diff) |
soc/qualcomm: move code to common
This commit includes makefile cleanup to exclude common source file
compilation in each stage by using all-y flag.
BUG=b:182963902
TEST=trogdor validated on limozeen
Change-Id: I48464567974a0729c1c6b6157bcce4fac39a8b38
Signed-off-by: T Michael Turney <mturney@codeaurora.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51758
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src/soc/qualcomm/qcs405')
-rw-r--r-- | src/soc/qualcomm/qcs405/Makefile.inc | 44 | ||||
-rw-r--r-- | src/soc/qualcomm/qcs405/timer.c | 10 |
2 files changed, 10 insertions, 44 deletions
diff --git a/src/soc/qualcomm/qcs405/Makefile.inc b/src/soc/qualcomm/qcs405/Makefile.inc index 0766d2f181..3e1bccc99e 100644 --- a/src/soc/qualcomm/qcs405/Makefile.inc +++ b/src/soc/qualcomm/qcs405/Makefile.inc @@ -2,50 +2,26 @@ ifeq ($(CONFIG_SOC_QUALCOMM_QCS405),y) ################################################################################ -bootblock-y += bootblock.c -bootblock-y += timer.c -bootblock-y += spi.c -bootblock-y += mmu.c -bootblock-y += gpio.c -bootblock-y += clock.c -bootblock-y += i2c.c -bootblock-y += qup.c -bootblock-y += blsp.c -bootblock-$(CONFIG_DRIVERS_UART) += uart.c +all-y += clock.c +all-y += spi.c +all-y += ../common/timer.c +all-y += gpio.c +all-y += i2c.c +all-y += qup.c +all-y += blsp.c +all-$(CONFIG_DRIVERS_UART) += uart.c ################################################################################ -verstage-y += timer.c -verstage-y += spi.c -verstage-y += gpio.c -verstage-y += clock.c -verstage-y += i2c.c -verstage-y += qup.c -verstage-y += blsp.c -verstage-$(CONFIG_DRIVERS_UART) += uart.c +bootblock-y += bootblock.c +bootblock-y += mmu.c ################################################################################ -romstage-y += timer.c -romstage-y += spi.c romstage-y += cbmem.c -romstage-y += gpio.c -romstage-y += clock.c romstage-y += usb.c -romstage-$(CONFIG_DRIVERS_UART) += uart.c -romstage-y += i2c.c -romstage-y += qup.c -romstage-y += blsp.c ################################################################################ ramstage-y += soc.c -ramstage-y += timer.c -ramstage-y += spi.c -ramstage-y += gpio.c -ramstage-y += clock.c -ramstage-y += i2c.c -ramstage-y += qup.c -ramstage-y += blsp.c ramstage-y += usb.c -ramstage-$(CONFIG_DRIVERS_UART) += uart.c ################################################################################ diff --git a/src/soc/qualcomm/qcs405/timer.c b/src/soc/qualcomm/qcs405/timer.c deleted file mode 100644 index 19e466aa17..0000000000 --- a/src/soc/qualcomm/qcs405/timer.c +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <delay.h> -#include <arch/lib_helpers.h> -#include <commonlib/helpers.h> - -void init_timer(void) -{ - raw_write_cntfrq_el0(19200*KHz); -} |