From patchwork Tue Mar 27 09:28:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 891462 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.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=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="R4XuzQOn"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 409Qq22V4Dz9s1S for ; Tue, 27 Mar 2018 20:35:26 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 07B28C22011; Tue, 27 Mar 2018 09:32:02 +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=RCVD_IN_DNSWL_BLOCKED, 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 96D65C21FBB; Tue, 27 Mar 2018 09:30:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 22A59C21FBA; Tue, 27 Mar 2018 09:30:05 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by lists.denx.de (Postfix) with ESMTPS id DBBE7C21EF7 for ; Tue, 27 Mar 2018 09:30:02 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id l27so8634430pfk.12 for ; Tue, 27 Mar 2018 02:30:02 -0700 (PDT) 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=8GPU6ex2MwOyLFIwShr19ManRaeUteTX2CA6DGKdgTo=; b=R4XuzQOne5G5JwwOdsUWSwkLmEIycgjhbDOiQsvBiESiPOqDhZRO+WN7ER2f2cjWr3 LeAyIozbsVORbsv/rHdNwwBn00CAe0OHjffNfJ+ntFlnVh6VL1gV0OL5jJ0fQRmK+0GR YUOgyhU5M74PLCUiTn/7bF6dZSGiObgdMKLXo/dDJsZfHPAvD+NKDy4J47vXAkjBlJxv SKtMdbVOxfMmkC0CXIVMgdoaHI2zhYJe2LZy3XLd1Zds0nudAUrfBIfT2OZYUOXr3CcH UFZnswgDyr/S25DLo6/woGwxijLPWelCQS0sR+irYpHcgiFBM6yGRIEqDjzgm5oRHE54 vrfw== 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=8GPU6ex2MwOyLFIwShr19ManRaeUteTX2CA6DGKdgTo=; b=jGRi0/Y9iO6yf5oAU5TFJM01elCe+NodopUqqNB0g4s6eVJ8xGv7lYE2YejCpAa2us SpCogl9x4q558NmFG6MDgjB1fJD9vOeOHXjyu6N5kg9QrGJQqq3Mne4D0JfsKw9YzZH5 EbxPyfae8hZETTVQRvooxB4fs5RiKcuHQwiaCgq5WFU2aT3Mt4srPp8gVDdAWeP37Vsx YHkDZJfVheohUnBUDDKJqTfj9QL2z0U/zLi5X+S/ZX1Ug6YKXp0TW2PMYmTAyyBMeKlW 2CrcpBUZm3Ylx1sdYjviKyrnRfj/W4Jj2xPVMVGCRvAubPbC0dTaoxkXIw9SxUFn9haC +2ng== X-Gm-Message-State: AElRT7EdFKuR5H3U4KOQKsYycbzNMDBNTlbCqe62g8Kb07WjHJePe26B sz4Hoz+P9SsWN4tC5SdRdto+5w== X-Google-Smtp-Source: AG47ELsU5802JZx0+4F9TMzejXRtXhlQSaJM6zHhtlKvSz93Ty0ThOpPrBKxxKGOD0/+5iaUulB/5Q== X-Received: by 10.99.169.1 with SMTP id u1mr18847451pge.251.1522143001194; Tue, 27 Mar 2018 02:30:01 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id j83sm2171561pfj.18.2018.03.27.02.29.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Mar 2018 02:30:00 -0700 (PDT) From: Kever Yang To: u-boot@lists.denx.de Date: Tue, 27 Mar 2018 17:28:59 +0800 Message-Id: <1522142971-20739-6-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522142971-20739-1-git-send-email-kever.yang@rock-chips.com> References: <1522142971-20739-1-git-send-email-kever.yang@rock-chips.com> Subject: [U-Boot] [PATCH 05/36] rockchip: add STIMER_BASE for all SoCs 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" STIMER is can only access in secure mode if the SoCs supports trust, and it locate in alive power domain, as the source of ARM arch/generic timer, we add a base addr for all SoCs so that we can init with a common function. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich --- arch/arm/mach-rockchip/Kconfig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index 007cb22..5dfe452 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -190,6 +190,25 @@ config ROCKCHIP_BOOT_MODE_REG The Soc will enter to different boot mode(defined in asm/arch/boot_mode.h) according to the value from this register. +config ROCKCHIP_STIMER_BASE + hex "Rockchip Secure timer base address" + default 0xff220020 if ROCKCHIP_PX30 + default 0x200440a0 if ROCKCHIP_RK3036 + default 0x2000e000 if ROCKCHIP_RK3066 + default 0x20018020 if ROCKCHIP_RK3126 + default 0x200440a0 if ROCKCHIP_RK3128 + default 0x2000e000 if ROCKCHIP_RK3188 + default 0x110d0020 if ROCKCHIP_RK322X + default 0xff810020 if ROCKCHIP_RK3288 + default 0xff1d0020 if ROCKCHIP_RK3328 + default 0xff830020 if ROCKCHIP_RK3368 + default 0xff8680a0 if ROCKCHIP_RK3399 + default 0x10350020 if ROCKCHIP_RV1108 + default 0 + help + The secure timer inited in SPL/TPL in secure word, ARM generic timer + works after this timer work. + config ROCKCHIP_SPL_RESERVE_IRAM hex "Size of IRAM reserved in SPL" default 0