From patchwork Thu Jun 14 18:08:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138592 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2438157lji; Thu, 14 Jun 2018 11:10:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKaObr+Q/c18ngZ8Cuu+tVIGL0BD9OKv1TXNd3/5TqLQPy8/Vr7JJwqbMj5IIxv9ZIPZcmf X-Received: by 2002:aa7:d0d2:: with SMTP id u18-v6mr3418393edo.205.1528999830223; Thu, 14 Jun 2018 11:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528999830; cv=none; d=google.com; s=arc-20160816; b=f22eknpSLJI8LT6iiIxQ3kSG8BwjbFewmSRDNIGp9BJw2yw6r11IOr5BOxEX85bGFb UX+VeW9BfU4G0Jad2XxhyTnQIaNkQ72LMtOoswf6ejdMmAjH7ISphGQZq/M6Qgf3bTeW QoddWi4MhHok8broW4Dot4+xvAzmPQjcDRgjJ2yJDFC9j/xUo0pyp8B6HTgrTJeJLKk6 X671HsI4MzeqiWcUQdE3tZLDC9tL3fltd0yl1IG+SfOWD4XsM1fDbMnqQDux6WodALoM EFMQpMLmYdkcyBQ4ywjg2/Mvhf5uu9RRYUKJbsbWHmv0GFOw0NTrERsRv/o4aVhMv6fd 1bAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=p20ssjTZFVZNGyfS0K7zgATXmd0UvtpfD992cZOXWvE=; b=F7zr4QnpUtaevFJZZ6JmiFt/LY7Q6x4agCZFJ5S/TDCYkhS5RZ7VAMpPVx1Jsg7ciz iOyEB7ECzvmGDfC+O8cPclbx+xc1YEpZ2JB80MITYI0foq2uQHdmQMnR5JMDQFjnoGBV csIn1SaaWXYVZVutmio9ilPJ9FqMzXaCL8UY9SWbB+BS4XBC+WbU0vx6BVwc0Z0DwnYn PWBcDqYYcCFOO9rTTjR7m2YcT+5QWgByN5nS8JniTi8RKmaitM5zDNHkA5IoWYeunYCP cE0hZp0fgbBNudfxV86jjCA+F3LDs8RvtusIOZKdCu66oBGybfCUVT03LClsD5iEn6b+ iyWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IsTl1pks; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id a8-v6si2498224edr.122.2018.06.14.11.10.29; Thu, 14 Jun 2018 11:10:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IsTl1pks; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id C4EEEC21DF9; Thu, 14 Jun 2018 18:09:26 +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=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 5D555C21DFD; Thu, 14 Jun 2018 18:09:21 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B230CC21BE5; Thu, 14 Jun 2018 18:09:12 +0000 (UTC) Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by lists.denx.de (Postfix) with ESMTPS id 3F88DC21DFA for ; Thu, 14 Jun 2018 18:09:08 +0000 (UTC) Received: by mail-pl0-f66.google.com with SMTP id a7-v6so3968381plp.3 for ; Thu, 14 Jun 2018 11:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4fyFQj62kFNn5ITJ+FxO9GaKpsAguACKRt8+93yL6WY=; b=IsTl1pksKgUafcy2I6WzXpP9e8NYuqZrgCA5sQ/JwPaxngwsVZIV8Zvg10vsR5PZsF Ptj98iUnSo+j8Zj6FnUtOSxvslqJXOJNmXONfj4LdlElMDGYYsC3LISEebCecombKfM0 4aOLRft3DkiIoVNbj9Z4JG350P5b9VvusLQd4= 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=4fyFQj62kFNn5ITJ+FxO9GaKpsAguACKRt8+93yL6WY=; b=tEq85trWt5Ma8L6ZR6vLoMI6V0/G5BAnzHIKwM01iymGuMh9IBr/9xa9pQDGcnemKI r4HRjIi7pWXBSQcF9dTzfyYVJE6/8fFVzDE5FS+wUvCk9a1JlOaOvJo8yosuwz7adYeq BWE7c8C0Rzf8rOejnB/BEH9sVyV784HJq1kobW0OvutHIIpO697ZsbJOT8haUSPcNm3o I15Dy/i1n1oG32TW2UDf5rw72HpuuTcWR7aukwH3KyW3XVEKva7vlphSjL2w+Wov/kJy MX9dVK7lkByVsSJ4qYX+vy2OL4w9s85LghIKUeP1NFEI32my1a7/Qpe7ftHtXvYDYx2L zPLQ== X-Gm-Message-State: APt69E2NREoHwXGt00Ft2EoSUnW21ncSJYmavfyyc0vpagCvHSD//a86 ta6N+TgFwU3o37UMaHfCCIn3 X-Received: by 2002:a17:902:4603:: with SMTP id o3-v6mr4015199pld.49.1528999746455; Thu, 14 Jun 2018 11:09:06 -0700 (PDT) Received: from localhost.localdomain ([2405:204:70c2:bb29:293b:24bf:4980:3a19]) by smtp.gmail.com with ESMTPSA id c74-v6sm11923363pfd.19.2018.06.14.11.08.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 11:09:05 -0700 (PDT) From: Manivannan Sadhasivam To: albert.u.boot@aribaud.net, sjg@chromium.org, marek.vasut+renesas@gmail.com, u-boot@lists.denx.de Date: Thu, 14 Jun 2018 23:38:31 +0530 Message-Id: <20180614180839.8494-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180614180839.8494-1-manivannan.sadhasivam@linaro.org> References: <20180614180839.8494-1-manivannan.sadhasivam@linaro.org> Cc: daniel.thompson@linaro.org, manivannanece23@gmail.com, bdong@ucrobotics.com, Manivannan Sadhasivam , thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH v3 1/9] arm: Add support for Actions Semi OWL SoC family 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" This commit adds Actions Semi OWL SoC family support with S900 as the first target SoC. Signed-off-by: Manivannan Sadhasivam --- Changes in v3: * Moved the change log from cover letter Changes in v2: None arch/arm/Kconfig | 9 +++++++++ arch/arm/Makefile | 1 + arch/arm/dts/s900.dtsi | 23 +++++++++++++++++++++++ arch/arm/mach-owl/Kconfig | 6 ++++++ arch/arm/mach-owl/Makefile | 3 +++ arch/arm/mach-owl/sysmap-s900.c | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 74 insertions(+) create mode 100644 arch/arm/dts/s900.dtsi create mode 100644 arch/arm/mach-owl/Kconfig create mode 100644 arch/arm/mach-owl/Makefile create mode 100644 arch/arm/mach-owl/sysmap-s900.c diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index dde422bc5d..ec0bb5a42b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -699,6 +699,13 @@ config ARCH_MX5 select BOARD_EARLY_INIT_F imply MXC_GPIO +config ARCH_OWL + bool "Actions Semi OWL SoCs" + select ARM64 + select DM + select DM_SERIAL + select OF_CONTROL + config ARCH_QEMU bool "QEMU Virtual Platform" select DM @@ -1335,6 +1342,8 @@ source "arch/arm/cpu/armv8/fsl-layerscape/Kconfig" source "arch/arm/mach-orion5x/Kconfig" +source "arch/arm/mach-owl/Kconfig" + source "arch/arm/mach-rmobile/Kconfig" source "arch/arm/mach-meson/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 680c6e8516..f15b2287df 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -66,6 +66,7 @@ machine-$(CONFIG_ARCH_MVEBU) += mvebu # TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X machine-$(CONFIG_ORION5X) += orion5x machine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 +machine-$(CONFIG_ARCH_OWL) += owl machine-$(CONFIG_ARCH_S5PC1XX) += s5pc1xx machine-$(CONFIG_ARCH_SUNXI) += sunxi machine-$(CONFIG_ARCH_SNAPDRAGON) += snapdragon diff --git a/arch/arm/dts/s900.dtsi b/arch/arm/dts/s900.dtsi new file mode 100644 index 0000000000..3bd14b82d4 --- /dev/null +++ b/arch/arm/dts/s900.dtsi @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +// +// Device Tree Source for Actions Semi S900 SoC +// +// Copyright (C) 2015 Actions Semi Co., Ltd. +// Copyright (C) 2018 Manivannan Sadhasivam + +/dts-v1/; + +/ { + compatible = "actions,s900"; + #address-cells = <0x2>; + #size-cells = <0x2>; + + soc { + u-boot,dm-pre-reloc; + compatible = "simple-bus"; + #address-cells = <0x2>; + #size-cells = <0x2>; + ranges; + }; +}; + diff --git a/arch/arm/mach-owl/Kconfig b/arch/arm/mach-owl/Kconfig new file mode 100644 index 0000000000..f695c16d1e --- /dev/null +++ b/arch/arm/mach-owl/Kconfig @@ -0,0 +1,6 @@ +if ARCH_OWL + +config SYS_SOC + default "owl" + +endif diff --git a/arch/arm/mach-owl/Makefile b/arch/arm/mach-owl/Makefile new file mode 100644 index 0000000000..1b43dc2921 --- /dev/null +++ b/arch/arm/mach-owl/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-y += sysmap-s900.o diff --git a/arch/arm/mach-owl/sysmap-s900.c b/arch/arm/mach-owl/sysmap-s900.c new file mode 100644 index 0000000000..f78b639740 --- /dev/null +++ b/arch/arm/mach-owl/sysmap-s900.c @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Actions Semi S900 Memory map + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + */ + +#include +#include + +static struct mm_region s900_mem_map[] = { + { + .virt = 0x0UL, /* DDR */ + .phys = 0x0UL, /* DDR */ + .size = 0x80000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE + }, { + .virt = 0xE0000000UL, /* Peripheral block */ + .phys = 0xE0000000UL, /* Peripheral block */ + .size = 0x08000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | + PTE_BLOCK_NON_SHARE | + PTE_BLOCK_PXN | PTE_BLOCK_UXN + }, { + /* List terminator */ + 0, + } +}; + +struct mm_region *mem_map = s900_mem_map;