From patchwork Fri Aug 2 07:40:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 1141012 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JRmfj+gw"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 460Jzm22Lvz9s7T for ; Fri, 2 Aug 2019 17:43:00 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id E4ADDC21DB6; Fri, 2 Aug 2019 07:42:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 829A9C21E6C; Fri, 2 Aug 2019 07:41:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7ECA2C21DB6; Fri, 2 Aug 2019 07:40:34 +0000 (UTC) Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by lists.denx.de (Postfix) with ESMTPS id 5BF91C21DF9 for ; Fri, 2 Aug 2019 07:40:31 +0000 (UTC) Received: by mail-lf1-f65.google.com with SMTP id b17so52255210lff.7 for ; Fri, 02 Aug 2019 00:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VvpGenpb7HkN3pMF4y2+mbLB37J43G8h4rvnIFhUsdw=; b=JRmfj+gwLHoYr4I+1OxD+u6zp9UW5aDHX2rDECeOUJJZ/ODgykfhwX335Z5M6o29Mp ahbZnDeQ6Nh5Xlv8jhC0ExtB9UZgv1z9Uj2+UTvXmHkE1ZHbdLvQnbV7BZ8RTQeV8v7Q QjfynWtzZ7Z08PfZPqQJUUoLzBArkbggp8fe55X81J3vML4//W/y6Sn2xZ8ZFtmb8Fse iWBKCPSzMY7rGjXzumQVfipIyAq4uH+KXuiUwCx0skAmuxTnmP8jkoszIjU8x1L5YPIk KsOkGieIqhsCOL+pDcsB/Lj+b3CJix9cDReYJ6ytkIG+2IgQE5gGhsbjjNbRHTUqvBmq YjqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VvpGenpb7HkN3pMF4y2+mbLB37J43G8h4rvnIFhUsdw=; b=mqqBtsk5Kw6DBD6L84ibSVqiXutCk2Ycri/ofrt4NI8lhTpaoq7o3xyOtZXBx9UmR2 BJMcBo2JXCKG7X9gCl8VyyyzMAabpmN28TMPYm5VUDnlRc1FiaW9USObGxhLl61LXSKD JnWEthIX+SHnD5JfWociG4vMaw/BP7aC4zPWxKwnCJ5AJkxPWWNPNCnGr7URU+/XkOqx 4b2lt6YdkhVvt4VYbyynU84Q0SSD9EdxmxFy6FnkT/CDeX5KOPKWi22Xq9TgZo2dEcqk L0a/toWVizN7QGY3EkOqsouqhTPn8oY5We2xvx7GXXoFLff39PIOSPbgnCJYIVmWc4ss 9rOQ== X-Gm-Message-State: APjAAAWXo3Sl8tIladzYkTJAckz34Ndp5KTOVA9j4I2SCbi7eLTpPyZx 5JtrIHDG1m2DT7pQ5u2mdck= X-Google-Smtp-Source: APXvYqy9yDoH8uouA3+hwSIo6fstm0EvvQq7ZbCF9Xdb8Ys+JR413ZUe0Cd8RmuOHmBzDgntBY/+8g== X-Received: by 2002:ac2:563c:: with SMTP id b28mr50170358lff.93.1564731630674; Fri, 02 Aug 2019 00:40:30 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id x2sm12186615lfg.12.2019.08.02.00.40.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Aug 2019 00:40:29 -0700 (PDT) From: "Matwey V. Kornilov" To: kever.yang@rock-chips.com, albert.u.boot@aribaud.net, sjg@chromium.org, philipp.tomsich@theobroma-systems.com, jagan@amarulasolutions.com Date: Fri, 2 Aug 2019 10:40:01 +0300 Message-Id: <20190802074004.4301-5-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190802074004.4301-1-matwey.kornilov@gmail.com> References: <20190802074004.4301-1-matwey.kornilov@gmail.com> Cc: u-boot@lists.denx.de, "Matwey V . Kornilov" Subject: [U-Boot] [PATCH v2 4/7] rockchip: Kconfig: enable TPL support for rk3328 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Kever Yang Enable TPL support and some related option in Kconfig. Signed-off-by: Kever Yang [cherry picked from commit https://github.com/rockchip-linux/u-boot/commit/430b01462bf3f24aaf7920ae2587a6943c39ab5d with minor modifications] Signed-off-by: Matwey V. Kornilov Reviewed-by: Kever Yang --- arch/arm/mach-rockchip/Kconfig | 5 +++++ arch/arm/mach-rockchip/rk3328/Kconfig | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index e337d06b99..f5a80b4f0c 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -110,9 +110,14 @@ config ROCKCHIP_RK3328 select ARM64 select SUPPORT_SPL select SPL + select SUPPORT_TPL + select TPL + select TPL_NEEDS_SEPARATE_TEXT_BASE if TPL + select TPL_NEEDS_SEPARATE_STACK if TPL imply ROCKCHIP_COMMON_BOARD imply SPL_ROCKCHIP_COMMON_BOARD imply SPL_SERIAL_SUPPORT + imply TPL_SERIAL_SUPPORT imply SPL_SEPARATE_BSS select ENABLE_ARM_SOC_BOOT0_HOOK select DEBUG_UART_BOARD_INIT diff --git a/arch/arm/mach-rockchip/rk3328/Kconfig b/arch/arm/mach-rockchip/rk3328/Kconfig index f8e15288e0..d13a169022 100644 --- a/arch/arm/mach-rockchip/rk3328/Kconfig +++ b/arch/arm/mach-rockchip/rk3328/Kconfig @@ -27,6 +27,18 @@ config SPL_LIBCOMMON_SUPPORT config SPL_LIBGENERIC_SUPPORT default y +config TPL_LDSCRIPT + default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" + +config TPL_TEXT_BASE + default 0xff091000 + +config TPL_MAX_SIZE + default 28672 + +config TPL_STACK + default 0xff098000 + source "board/rockchip/evb_rk3328/Kconfig" endif