* [PATCH] arm: Set default MACH_TYPE in Kconfig
@ 2022-08-11 20:29 Pali Rohár
2022-08-20 23:01 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2022-08-11 20:29 UTC (permalink / raw)
To: u-boot, Bharat Gooty, Rayagonda Kokatanur
For boards which requires correct MACH_TYPE, set their correct default
values directly in Kconfig.
Signed-off-by: Pali Rohár <pali@kernel.org>
---
arch/arm/Kconfig | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 9898c7d68e1b..f78726f7c1be 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -2119,6 +2119,7 @@ config SERIAL_TAG
config STATIC_MACH_TYPE
bool "Statically define the Machine ID number"
+ default y if TARGET_DS109 || TARGET_NOKIA_RX51 || TARGET_DS414 || DEFAULT_DEVICE_TREE = "sun7i-a20-icnova-swac"
help
When booting via ATAGs, enable this option if we know the correct
machine ID number to use at compile time. Some systems will be
@@ -2127,6 +2128,10 @@ config STATIC_MACH_TYPE
config MACH_TYPE
int "Machine ID number"
depends on STATIC_MACH_TYPE
+ default 527 if TARGET_DS109
+ default 1955 if TARGET_NOKIA_RX51
+ default 3036 if TARGET_DS414
+ default 4283 if DEFAULT_DEVICE_TREE = "sun7i-a20-icnova-swac"
help
When booting via ATAGs, the machine type must be passed as a number.
For the full list see https://www.arm.linux.org.uk/developer/machines
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm: Set default MACH_TYPE in Kconfig
2022-08-11 20:29 [PATCH] arm: Set default MACH_TYPE in Kconfig Pali Rohár
@ 2022-08-20 23:01 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2022-08-20 23:01 UTC (permalink / raw)
To: Pali Rohár; +Cc: u-boot, Bharat Gooty, Rayagonda Kokatanur
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
On Thu, Aug 11, 2022 at 10:29:03PM +0200, Pali Rohár wrote:
> For boards which requires correct MACH_TYPE, set their correct default
> values directly in Kconfig.
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
Applied to u-boot/master, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-20 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11 20:29 [PATCH] arm: Set default MACH_TYPE in Kconfig Pali Rohár
2022-08-20 23:01 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.