diff mbox series

[U-Boot] ARM: mach-omap2: Kconfig: Make SYS_MPUCLK dependent on AM33XX

Message ID 20181007145825.3606-1-aford173@gmail.com
State Accepted
Delegated to: Tom Rini
Headers show
Series [U-Boot] ARM: mach-omap2: Kconfig: Make SYS_MPUCLK dependent on AM33XX | expand

Commit Message

Adam Ford Oct. 7, 2018, 2:58 p.m. UTC
This value is unly used in arch/arm/mach-omap2/am33xx/
clock_am33xx.c, so let's make it dependent on AM33XX since
that is the only way this file gets compiled into the code
according to the Makefile.

Signed-off-by: Adam Ford <aford173@gmail.com>

Comments

Tom Rini Oct. 8, 2018, 1:40 a.m. UTC | #1
On Sun, Oct 07, 2018 at 09:58:25AM -0500, Adam Ford wrote:

> This value is unly used in arch/arm/mach-omap2/am33xx/
> clock_am33xx.c, so let's make it dependent on AM33XX since
> that is the only way this file gets compiled into the code
> according to the Makefile.
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>
> 
> diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
> index 76a19064c9..d494356d00 100644

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini Oct. 20, 2018, 7:11 p.m. UTC | #2
On Sun, Oct 07, 2018 at 09:58:25AM -0500, Adam Ford wrote:

> This value is unly used in arch/arm/mach-omap2/am33xx/
> clock_am33xx.c, so let's make it dependent on AM33XX since
> that is the only way this file gets compiled into the code
> according to the Makefile.
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> 
> diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
> index 76a19064c9..d494356d00 100644

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 76a19064c9..d494356d00 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -136,6 +136,7 @@  endchoice
 
 config SYS_MPUCLK
 	int "MPU CLK speed"
+	depends on CONFIG_AM33XX
 	default 500
 	help
 	  Defines the MPU clock speed (in MHz).