Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B1D6C4332F for ; Fri, 30 Dec 2022 05:46:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 515EB851B7; Fri, 30 Dec 2022 06:46:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bWoTDYFH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 92C09851C7; Fri, 30 Dec 2022 06:46:09 +0100 (CET) Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 434E48516A for ; Fri, 30 Dec 2022 06:46:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mibodhi@gmail.com Received: by mail-qv1-xf31.google.com with SMTP id o17so10240321qvn.4 for ; Thu, 29 Dec 2022 21:46:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=78b0Dha5K2pvXcBUgx3SgI15m55Di0pTJJhxlzpORgs=; b=bWoTDYFHwoAY+mb+PEP8ItkCqidfpeTjNORk7AEkWZpV+IuCYq39dOZEqm7WCQmHKe cZm2VC8az7dHxWu4jd7GIM6kmD0T5qel3+CgKVftGSrBhhWtNuqcDzXXkiMYAZhlMbYM D/OiJ4mWucWXQjZ8r5BcOpE6py4+zCGghg2y6Dw1u/A+na/WcO1b13Q++TVU3cG7lgmV li266m+0ZfM2q8t5h7rlYPqz53L3HPTOMNnL3mzzjW/RppF5H7p9bBajX5wn+m9CSoQN XzzbbogJPQO4I2XPIZFjmKPA9NFeDAmKzFJUwvumiUC8xeoCGz2NPmckWXymbv/5KWhW yfUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=78b0Dha5K2pvXcBUgx3SgI15m55Di0pTJJhxlzpORgs=; b=GTSW7AoC5ChqkiCizZmPFrhZvKZZ257W6MHaSU1sEpJV8iM9t0tbVNeLHChgPvR/G8 fYcO/TLuTONaHbzNN1wDSiBwtLJBbFBgPDUQSmLXwaBJWC2doxCuI4SFvjCa48tltyXc PFrUs5/Q4KpItz/MLRuf3Stan6Pa42MoNwI6Pnahayfu4D9haXVNun4BFt8LFa5H8zka 0Q8Ydrfk7nJ+jMzH0WekuJbDAIZRdMAQ0gv6qfivYo9ulcjffqJNm59CKWpdewVaR18A JVVsrokyTbnMLQv26UsyZpMtzQMD/vQExfPPtFobNBLhhN9cY7HBdqrlgKGzJakuaaHm 0MvQ== X-Gm-Message-State: AFqh2kq06j5WnAzvZdl8KlAGze8goNn4a8NiiDtIkr+oHeqGONAPIn4O /9Fx4QsE8mSVcjGfcdURoKs= X-Google-Smtp-Source: AMrXdXs3xgDZMUYKsK/LHWMtNVWAkjKxuREO3U10DUcxBXhek7kgwlDMmZserguT9zz4wQQyC3Y/Zg== X-Received: by 2002:a05:6214:2c0b:b0:4e1:bb55:1d87 with SMTP id lc11-20020a0562142c0b00b004e1bb551d87mr31739271qvb.4.1672379164987; Thu, 29 Dec 2022 21:46:04 -0800 (PST) Received: from localhost.localdomain (76-229-100-169.lightspeed.irvnca.sbcglobal.net. [76.229.100.169]) by smtp.gmail.com with ESMTPSA id t1-20020a37ea01000000b006fefa5f7fcesm14686075qkj.10.2022.12.29.21.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Dec 2022 21:46:04 -0800 (PST) From: Tony Dinh To: Stefan Roese , U-Boot Mailing List Cc: Tom Rini , =?UTF-8?q?Pali=20Roh=E1r?= , Michael Walle , Tony Dinh Subject: [PATCH] arm: kirkwood: Convert to DM Serial for various Kirkwood boards Date: Thu, 29 Dec 2022 21:45:57 -0800 Message-Id: <20221230054557.29431-1-mibodhi@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean For Kirkwood boards, it is necessary to have early malloc in DRAM area when Driver Model for Serial is enabled. Please see Michael's patch here: https://lore.kernel.org/u-boot/20220817193809.1059688-20-michael@walle.cc/ This patch enables the early malloc in DRAM for all Kirkwood boards. Note that this will work for boards that have either non-DM serial and DM_SERIAL. Also, add the CONFIG_KIRKWOOD_COMMON option to enable DM_SERIAL as a common option for boards that have been tested. Signed-off-by: Tony Dinh --- arch/arm/mach-kirkwood/Kconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig index c8a193dd4c..45cc932636 100644 --- a/arch/arm/mach-kirkwood/Kconfig +++ b/arch/arm/mach-kirkwood/Kconfig @@ -12,6 +12,19 @@ config KW88F6281 config SHEEVA_88SV131 bool +config KIRKWOOD_COMMON + bool + select DM_SERIAL + +config HAS_CUSTOM_SYS_INIT_SP_ADDR + bool "Use a custom location for the initial stack pointer address" + default y + +config CUSTOM_SYS_INIT_SP_ADDR + hex "Static location for the initial stack pointer" + depends on HAS_CUSTOM_SYS_INIT_SP_ADDR + default 0x5ff000 + choice prompt "Marvell Kirkwood board select" optional @@ -25,6 +38,7 @@ config TARGET_DREAMPLUG bool "DreamPlug Board" select KW88F6281 select SHEEVA_88SV131 + select KIRKWOOD_COMMON config TARGET_DS109 bool "Synology DS109" @@ -40,6 +54,7 @@ config TARGET_SHEEVAPLUG bool "SheevaPlug Board" select FEROCEON_88FR131 select KW88F6281 + select KIRKWOOD_COMMON config TARGET_LSXL bool "lsxl Board" @@ -47,16 +62,19 @@ config TARGET_LSXL select KW88F6281 select BOARD_EARLY_INIT_R select MISC_INIT_R + select KIRKWOOD_COMMON config TARGET_POGO_E02 bool "pogo_e02 Board" select FEROCEON_88FR131 select KW88F6281 + select KIRKWOOD_COMMON config TARGET_POGO_V4 bool "Pogoplug V4 Board" select FEROCEON_88FR131 select KW88F6192 + select KIRKWOOD_COMMON config TARGET_DNS325 bool "dns325 Board" @@ -67,6 +85,7 @@ config TARGET_ICONNECT bool "iconnect Board" select FEROCEON_88FR131 select KW88F6281 + select KIRKWOOD_COMMON config TARGET_KM_KIRKWOOD bool "KM Kirkwood Board" @@ -92,11 +111,13 @@ config TARGET_DOCKSTAR bool "Dockstar Board" select FEROCEON_88FR131 select KW88F6281 + select KIRKWOOD_COMMON config TARGET_GOFLEXHOME bool "GoFlex Home Board" select FEROCEON_88FR131 select KW88F6281 + select KIRKWOOD_COMMON config TARGET_NAS220 bool "BlackArmor NAS220" @@ -107,6 +128,7 @@ config TARGET_NSA310S bool "Zyxel NSA310S" select FEROCEON_88FR131 select KW88F6192 + select KIRKWOOD_COMMON config TARGET_SBx81LIFKW bool "Allied Telesis SBx81GS24/SBx81GT40/SBx81XS6/SBx81XS16" -- 2.30.2