From 3f53513c2b16ce2f9a24975cb23b2b58e70ba0f2 Mon Sep 17 00:00:00 2001 From: Jae Hyun Yoo Date: Wed, 29 Jan 2020 14:55:44 -0800 Subject: [PATCH] Override OTP strap settings This commit adds settings to override OTP strap. Signed-off-by: Jae Hyun Yoo --- arch/arm/mach-aspeed/ast2600/platform.S | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-aspeed/ast2600/platform.S b/arch/arm/mach-aspeed/ast2600/platform.S index 80ba06802acd..e7ae9041093c 100644 --- a/arch/arm/mach-aspeed/ast2600/platform.S +++ b/arch/arm/mach-aspeed/ast2600/platform.S @@ -147,6 +147,26 @@ do_primary_core_setup: /* unlock system control unit */ scu_unlock + /* disable CA7 CPU boot */ + ldr r0, =AST_SCU_HW_STRAP1_CLR + movw r1, #0x0001 @; Disable ARM CA7 CPU boot + movt r1, #0x0000 + str r1, [r0] + + /* enable eSPI, debug interface and disable UART5 boot*/ + ldr r0, =AST_SCU_HW_STRAP2_CLR + movw r1, #0x0040 @; Select eSPI + movt r1, #0x0000 + orr r1, #0x0010 @; Enable debug interface + orr r1, #0x0100 @; Disable UART5 boot + str r1, [r0] + + /* enable ACPI */ + ldr r0, =AST_SCU_HW_STRAP2 + ldr r1, [r0] + orr r1, #0x20 @; Enable ACPI + str r1, [r0] + /* identify AST2600 A0/A1 */ ldr r0, =AST_SCU_REV_ID ldr r0, [r0] -- 2.7.4