From patchwork Fri Jun 10 18:18:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 9170237 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E3A9A6048C for ; Fri, 10 Jun 2016 18:18:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB7BC28210 for ; Fri, 10 Jun 2016 18:18:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D058C2833F; Fri, 10 Jun 2016 18:18:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 57145281F9 for ; Fri, 10 Jun 2016 18:18:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBR1F-0004tA-Oe; Fri, 10 Jun 2016 18:18:57 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bBR1A-0004fK-9k for linux-amlogic@lists.infradead.org; Fri, 10 Jun 2016 18:18:56 +0000 Received: by mail-wm0-x243.google.com with SMTP id m124so493050wme.3 for ; Fri, 10 Jun 2016 11:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=H6Ku4yYhi2wtn9ggIN+uAY9jdG+lijKagQ443HdmV+4=; b=1AuVvcC4MesYWXvlenvzmzrH8jBc644kauuD5mePm2lB0QODchrSmJo09kZlc5s0Xp Bc5Y5uUlPT7QbNTuQRgwDNDrJyMYZcr2hxbyRYZFYQauWZY346dqzh7xcXHDjeShFSAs qbbz2qDmQkBojeTyrdiu+TezuPInCGUMiHzBuP2YXnNjAnUd+r3/K9lEUofiZAMSBgsN TiC/tSvefM8OOO7W4XAuBQ3ZD4zZhX80J3wKLLmmI8YsAHBVc//4dIjy4ww+jM9SINKQ VtLoPm494/hQvAYxSHbGH0LE5FZZ/ZFNxoqAta/icv9aIM8R4O4kxxyDkohWXgIFom9m DrNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=H6Ku4yYhi2wtn9ggIN+uAY9jdG+lijKagQ443HdmV+4=; b=j8DQIrt7KBkMCKLWJTzw6scmmYPupknuOdEwcdBGtBFPTDWEVz6RUJkBH/l9bGYr5x 85SWVYNQML40GIvoo2HRGkxIYXDATNLMxZjIisedwg/8e15i1w1DiGNujkqy0bsfErpB GoefOA+g/RxlApHLl1HdNjvjB8/1wYL87sMR9ChPoF+MVyPNAc+jNMxpTwk7busIYgAH jUDT80Ml/YWfD3u4BROI4j9Ut+EQJKxH10SWsPEg0UovuhFSCPKtKeiVYGZw74XxbzQc Ej+fS7NstLNUoy+t0fwAIiPVvw5Onqnn2HpCPaTGGoLKFuSS2iEpKNyzDZ08nS6Fv0AQ R37w== X-Gm-Message-State: ALyK8tKOG1AsfUlSe/gdo7GB2uL4/Tnh1b8Xr8gg5Ss28nnmY7YzRKOxs7HIR4qP7/JAvQ== X-Received: by 10.194.133.135 with SMTP id pc7mr3452596wjb.49.1465582710602; Fri, 10 Jun 2016 11:18:30 -0700 (PDT) Received: from localhost.localdomain (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by smtp.gmail.com with ESMTPSA id y6sm331533wmy.8.2016.06.10.11.18.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jun 2016 11:18:29 -0700 (PDT) From: Carlo Caione To: u-boot@lists.denx.de, b.galvani@gmail.com, sjg@chromium.org, albert.u.boot@aribaud.net, trini@konsulko.com, linux-amlogic@lists.infradead.org Subject: [PATCH v2 1/2] configs: gxbb: Introduce a common config header file Date: Fri, 10 Jun 2016 20:18:22 +0200 Message-Id: <1465582703-20895-2-git-send-email-carlo@caione.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1465582703-20895-1-git-send-email-carlo@caione.org> References: <1465582703-20895-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160610_111852_492921_210F82F0 X-CRM114-Status: GOOD ( 12.27 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Carlo Caione Introduce a meson-gxbb-common.h header file and derive the configuration for Hardkernel Odroid-C2 board from that. Reviewed-by: Simon Glass Signed-off-by: Carlo Caione Acked-by: Beniamino Galvani --- include/configs/meson-gxbb-common.h | 45 +++++++++++++++++++++++++++++++++++++ include/configs/odroid-c2.h | 34 +--------------------------- 2 files changed, 46 insertions(+), 33 deletions(-) create mode 100644 include/configs/meson-gxbb-common.h diff --git a/include/configs/meson-gxbb-common.h b/include/configs/meson-gxbb-common.h new file mode 100644 index 0000000..d1c0050 --- /dev/null +++ b/include/configs/meson-gxbb-common.h @@ -0,0 +1,45 @@ +/* + * Configuration for Amlogic Meson GXBB SoCs + * (C) Copyright 2016 Beniamino Galvani + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __MESON_GXBB_COMMON_CONFIG_H +#define __MESON_GXBB_COMMON_CONFIG_H + +#define CONFIG_CPU_ARMV8 +#define CONFIG_REMAKE_ELF +#define CONFIG_SYS_CACHELINE_SIZE 64 +#define CONFIG_SYS_NO_FLASH +#define CONFIG_NR_DRAM_BANKS 1 +#define CONFIG_ENV_IS_NOWHERE 1 +#define CONFIG_ENV_SIZE 0x2000 +#define CONFIG_SYS_MAXARGS 32 +#define CONFIG_SYS_MALLOC_LEN (32 << 20) +#define CONFIG_SYS_CBSIZE 1024 +#define CONFIG_MISC_INIT_R + +#define CONFIG_SYS_SDRAM_BASE 0 +#define CONFIG_SYS_TEXT_BASE 0x01000000 +#define CONFIG_SYS_INIT_SP_ADDR 0x20000000 +#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE + +/* Generic Interrupt Controller Definitions */ +#define GICD_BASE 0xc4301000 +#define GICC_BASE 0xc4302000 + +#define CONFIG_CMD_ENV + +/* Monitor Command Prompt */ +/* Console I/O Buffer Size */ +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ + sizeof(CONFIG_SYS_PROMPT) + 16) +#define CONFIG_SYS_HUSH_PARSER +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE +#define CONFIG_SYS_LONGHELP +#define CONFIG_CMDLINE_EDITING + +#include + +#endif /* __MESON_GXBB_COMMON_CONFIG_H */ diff --git a/include/configs/odroid-c2.h b/include/configs/odroid-c2.h index 37a5671..bf5df9c 100644 --- a/include/configs/odroid-c2.h +++ b/include/configs/odroid-c2.h @@ -8,44 +8,12 @@ #ifndef __CONFIG_H #define __CONFIG_H -#define CONFIG_CPU_ARMV8 -#define CONFIG_REMAKE_ELF -#define CONFIG_SYS_CACHELINE_SIZE 64 -#define CONFIG_SYS_NO_FLASH -#define CONFIG_NR_DRAM_BANKS 1 -#define CONFIG_ENV_IS_NOWHERE 1 -#define CONFIG_ENV_SIZE 0x2000 -#define CONFIG_SYS_MAXARGS 32 -#define CONFIG_SYS_MALLOC_LEN (32 << 20) -#define CONFIG_SYS_CBSIZE 1024 -#define CONFIG_MISC_INIT_R - -#define CONFIG_SYS_SDRAM_BASE 0 -#define CONFIG_SYS_TEXT_BASE 0x01000000 -#define CONFIG_SYS_INIT_SP_ADDR 0x20000000 -#define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_TEXT_BASE - -/* Generic Interrupt Controller Definitions */ -#define GICD_BASE 0xc4301000 -#define GICC_BASE 0xc4302000 - #define CONFIG_IDENT_STRING " odroid-c2" /* Serial setup */ #define CONFIG_CONS_INDEX 0 #define CONFIG_BAUDRATE 115200 -#define CONFIG_CMD_ENV - -/* Monitor Command Prompt */ -/* Console I/O Buffer Size */ -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ - sizeof(CONFIG_SYS_PROMPT) + 16) -#define CONFIG_SYS_HUSH_PARSER -#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE -#define CONFIG_SYS_LONGHELP -#define CONFIG_CMDLINE_EDITING - -#include +#include #endif /* __CONFIG_H */