power: Refactor Makefile rules
authorSimon Glass <sjg@chromium.org>
Sun, 8 Aug 2021 18:20:29 +0000 (12:20 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 4 Sep 2021 16:26:02 +0000 (12:26 -0400)
commita4faf1f563160b1b9cfbdbf388d33464691d0440
treec2ec2dc3ca4ca49999d043cc7a9ee16ee5503969
parent14c251ffe156e5b5b1332efcf5ed6fb7ae62cdc3
power: Refactor Makefile rules

Move the power/ rules into drivers/power to avoid clutter in the Makefile
and drivers/Makefile files.

We must select SPL_POWER if SPL_POWER_DOMAIN is used, since the two are
currently independent and boards do not necessarily enable SPL_POWER.

Add a TPL_POWER as well, as that is used by one board.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Makefile
common/spl/Kconfig
configs/chromebook_coral_defconfig
drivers/Makefile
drivers/power/Makefile
drivers/power/acpi_pmc/Makefile