From patchwork Tue Dec 31 10:01:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 1216640 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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rock-chips.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="AlkQC7Fw"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47n8xL5T01z9sPJ for ; Tue, 31 Dec 2019 21:02:46 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CDE84816A9; Tue, 31 Dec 2019 11:02:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AlkQC7Fw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D223381041; Tue, 31 Dec 2019 11:02:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, SPF_HELO_NONE,UPPERCASE_50_75,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (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 48DED81024 for ; Tue, 31 Dec 2019 11:02:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@gmail.com Received: by mail-pf1-x444.google.com with SMTP id n9so11689236pff.13 for ; Tue, 31 Dec 2019 02:02:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=raSRC0YSQFMk7xgkWY+nyohiVuWpiAzUKhBIThZZgow=; b=AlkQC7FwzZAwnCr7pknkKZIVblhUUhc+L8nTWgDFgDUQuLwyj/XJKOEA5FGDwg3af6 pG4aClWvMg+tvOcDOr9yyvR2wFL+yby00+0RLEudf43H9Wezgo/UJhM3rgx3bA6JBBxL 4oeH47L7b14apPETxZfgorAfsnhy/ldgrENjUoudmPnPQEtoA13jn6Ie0nsIWQN6cZLz Kgb+jueC94TOQKsVfIPcd/L263QAqiCwLSvL2Pt7ryvMj0UbP8j4fGlzN/2eTktlX0Nr FBFosDdMrFuUezq3Eoncv/aBC29yJurrOmDQc0AN2uPpQeyEj8iuV/kwzJS+Kkz1U3CB 9fOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=raSRC0YSQFMk7xgkWY+nyohiVuWpiAzUKhBIThZZgow=; b=EUUikygHoe9AtKo/lmqqqL4XkqeMPDNY/tj/sfw8qN8ACg808oY4h+L1+gfFhH9Rvc oO15cWvOynkpJZa2Oztdxxp8wiiEnJaEnCj+6TZZYKuL2kPUL9ita6lP0LHUG0bT6lRK LlmxXsS6zHaX3KCARvj3Xd3Hwo6D2WUsYxcr+IY+NG1ITxK8JiWVAMy3qM1D/XmQ88qM 8efxwDgug+Q8GIOv9pLCGhFFvMAVgVTkW/BpZSZ6CIlesCZaf5OhIIQnK5E5oFgTMG8g 3QLuVUHMKRYAu/X781yxdlRMFFhrVIG866DDw0nq+1sxF3qkNzV+l5VtqFCrPqcPMccE ih+g== X-Gm-Message-State: APjAAAUMom3rZ3nczgX4DXITFGTQKozvxzfLJhUo/TqNWjEna0/Hc6Hj m3opQ4vx2epBoRH/rdkUOk7vcP9i X-Google-Smtp-Source: APXvYqwo6diUSO3bSDbmpaPt5Burq5giQ4yme/s7qZIma/L4lVNkaZWtH6ZPUFZtdtvHR/AwwES0fA== X-Received: by 2002:aa7:8dd0:: with SMTP id j16mr57865200pfr.186.1577786539710; Tue, 31 Dec 2019 02:02:19 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id t1sm51897015pgq.23.2019.12.31.02.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2019 02:02:19 -0800 (PST) From: Kever Yang To: u-boot@lists.denx.de Subject: [PATCH 3/3] rockchip: evb-rk3328: Enable support ATF in SPL Date: Tue, 31 Dec 2019 18:01:59 +0800 Message-Id: <20191231100159.8424-3-kever.yang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191231100159.8424-1-kever.yang@rock-chips.com> References: <20191231100159.8424-1-kever.yang@rock-chips.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 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.101.4 at phobos.denx.de X-Virus-Status: Clean Enable the ATF in SPL and adjust the SPL STACK/HEAD at the same time to support ATF entry at 0x40000. Signed-off-by: Kever Yang --- configs/evb-rk3328_defconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/evb-rk3328_defconfig b/configs/evb-rk3328_defconfig index 3e19135a0d..3db40a9a1a 100644 --- a/configs/evb-rk3328_defconfig +++ b/configs/evb-rk3328_defconfig @@ -7,7 +7,8 @@ CONFIG_TPL_LIBCOMMON_SUPPORT=y CONFIG_TPL_LIBGENERIC_SUPPORT=y CONFIG_SPL_DRIVERS_MISC_SUPPORT=y CONFIG_ENV_OFFSET=0x3F8000 -CONFIG_SPL_STACK_R_ADDR=0x600000 +CONFIG_SPL_STACK_R_ADDR=0x4000000 +CONFIG_SPL_SYS_MALLOC_F_LEN=0x4000 CONFIG_NR_DRAM_BANKS=1 CONFIG_DEBUG_UART_BASE=0xFF130000 CONFIG_DEBUG_UART_CLOCK=24000000 @@ -23,6 +24,9 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y # CONFIG_SPL_RAW_IMAGE_SUPPORT is not set CONFIG_TPL_SYS_MALLOC_SIMPLE=y CONFIG_SPL_STACK_R=y +CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x10000 +CONFIG_SPL_ATF=y +CONFIG_SPL_ATF_NO_PLATFORM_PARAM=y CONFIG_TPL_DRIVERS_MISC_SUPPORT=y CONFIG_CMD_BOOTZ=y CONFIG_CMD_GPT=y