From patchwork Fri Jul 22 04:38:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 72597 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp797865qga; Thu, 21 Jul 2016 21:37:51 -0700 (PDT) X-Received: by 10.28.94.18 with SMTP id s18mr2517620wmb.44.1469162271511; Thu, 21 Jul 2016 21:37:51 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id t195si2661527wmt.31.2016.07.21.21.37.51; Thu, 21 Jul 2016 21:37:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 56756A761E; Fri, 22 Jul 2016 06:37:33 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mfclBVqoN73o; Fri, 22 Jul 2016 06:37:33 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 54445A76A1; Fri, 22 Jul 2016 06:37:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 517BAA7533 for ; Fri, 22 Jul 2016 06:37:23 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6cI88ad0QEHz for ; Fri, 22 Jul 2016 06:37:23 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by theia.denx.de (Postfix) with ESMTPS id 1AC25A767E for ; Fri, 22 Jul 2016 06:37:10 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id u6M4amRm019169; Fri, 22 Jul 2016 13:36:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com u6M4amRm019169 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1469162210; bh=jqvYaHIR7vMkHkPbOt72fjONGhSYQO7+FwnywlbiwAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=niSQld9uexx3jbdcndehGbhWGL6ZDkYOWhdflgCxNr3p35Y9nEqU5FyRVYatgXbDj WpqquvfiVDRaORG7OpG8ntVxEHNVFbtdKWfzOC7wsX3vRAuG7eR7TOJE2GEHiCcZWa nCaO2t+9oQiD2cusCjBSlzVUEmNLz7AGwNulxz4gxl47kCI5W8PrV1JABf9nYWSdCt kFJOWdWREOuyrzueIWXiz845VI2hPfAF/WmGMvWIN7u9xZVKCBN7rhWbu/cUUBoWu8 pJRdYY5aXiOKTYq2IhGsGY0uVMfocOT5WRk+C0novwv6YS3CiAY+/nEGPdSzUarINJ Xm9wx/JrtSCCQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 22 Jul 2016 13:38:33 +0900 Message-Id: <1469162313-17027-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1469162313-17027-1-git-send-email-yamada.masahiro@socionext.com> References: <1469162313-17027-1-git-send-email-yamada.masahiro@socionext.com> Subject: [U-Boot] [PATCH 4/4] ARM: uniphier: add PH1-LD21 board data X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" This has the same silicon die as PH1-LD20, but includes DRAM chips in its package. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/boards.c | 17 +++++++++++++++++ arch/arm/mach-uniphier/init.h | 2 ++ 2 files changed, 19 insertions(+) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/arch/arm/mach-uniphier/boards.c b/arch/arm/mach-uniphier/boards.c index f8db1ee..0022777 100644 --- a/arch/arm/mach-uniphier/boards.c +++ b/arch/arm/mach-uniphier/boards.c @@ -202,6 +202,22 @@ static const struct uniphier_board_data uniphier_ld20_data = { .width = 32, }, }; + +static const struct uniphier_board_data uniphier_ld21_data = { + .dram_freq = 1866, + .dram_nr_ch = 2, + .dram_ch[0] = { + .base = 0x80000000, + .size = 0x40000000, + .width = 32, + }, + .dram_ch[1] = { + .base = 0xc0000000, + .size = 0x40000000, + .width = 32, + }, + .flags = UNIPHIER_BD_PACKAGE_LD21, +}; #endif struct uniphier_board_id { @@ -237,6 +253,7 @@ static const struct uniphier_board_id uniphier_boards[] = { { "socionext,ph1-ld11", &uniphier_ld11_data, }, #endif #if defined(CONFIG_ARCH_UNIPHIER_LD20) + { "socionext,ph1-ld21", &uniphier_ld21_data, }, { "socionext,ph1-ld20", &uniphier_ld20_data, }, #endif }; diff --git a/arch/arm/mach-uniphier/init.h b/arch/arm/mach-uniphier/init.h index 4dbce17..f6c278d 100644 --- a/arch/arm/mach-uniphier/init.h +++ b/arch/arm/mach-uniphier/init.h @@ -23,6 +23,8 @@ struct uniphier_board_data { struct uniphier_dram_ch dram_ch[UNIPHIER_MAX_NR_DRAM_CH]; unsigned int flags; #define UNIPHIER_BD_DDR3PLUS BIT(2) +#define UNIPHIER_BD_PACKAGE_LD21 1 +#define UNIPHIER_BD_PACKAGE_TYPE(f) ((f) & 0x3) }; const struct uniphier_board_data *uniphier_get_board_param(void);