From patchwork Mon Jun 11 15:48:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138247 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4216447lji; Mon, 11 Jun 2018 08:49:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLlW33KeWEKE48goyTbaZgAKcXt8zMVbXKs4DK/QFR4v0BUPewPea51HwEdhEMok957ksKA X-Received: by 2002:a50:83c2:: with SMTP id 60-v6mr6728645edi.263.1528732193346; Mon, 11 Jun 2018 08:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528732193; cv=none; d=google.com; s=arc-20160816; b=e2bzc7HT75zj9YsbRS72SZnMjQmfnCVBY9xIph9BfWiEsBbvGzEtlYxX/vEh1q0rFB dyfRqznCgwL9uchr0pT+WHk2ZsRmIk5mU/FXmhDVx8syJahA5fLTpXR8FfGfpyYc3kzl O87YjPCYZWPddZ7qDTnS/KZzpubafhpdVecoaY04sinicYF1SJhaeM7wItX+MJTWHO4Q o8F7CN4hMEmYT/uanUVDMffKyC7XdUSadWS1CqBkDB5w4BQsfz3TRZEHjWJkO0Y/Xpzx QVQ4LRcdgwVAXoPO+7AIeUEFsa+4jfezo6Oq6IT5Idqn+l03sUZyuCo0YstQhsEH8hY+ a9OQ== 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=kTME/sULEAxvX0zvx4HS48thPGrbJUvSMRCIzOiDnvw=; b=pg4bt9OdN7P3RGDfzFWUqcuWzVH4n2n0AkiHsSTDgcdFvUs88ga+3gRHHM/l+aaMbV raee//l3J+R6CvZXobOko6nzQksJs3jJABXmYS8ADBZ1yYRuFBV7tFkkjFAeIhCSxCiY wWhuF+bS7j0iqVjhrYYeuumbS3pgADTmLmnK1Ncw7bjBgn85yaeyrs4RGE2XJUdIkmfl VGBjMppXs4h9XjbexVBT1lyDX50nbrxz5QfLfQmtuWjjBnX8/vGCd0MDgkbtjGQI6Apj PlSlpfvkLdQ74JEfU5SisTm90pfofQEwiyVnd/9OuvIjRF7npFUPI+bJfsjqpT4VBHHm mChg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Gjg+abKF; 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 19-v6si418679edu.414.2018.06.11.08.49.53; Mon, 11 Jun 2018 08:49:53 -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=Gjg+abKF; 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 E8CD4C21DED; Mon, 11 Jun 2018 15:49:32 +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 B41FEC21D4A; Mon, 11 Jun 2018 15:49:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 876E0C21DFD; Mon, 11 Jun 2018 15:49:23 +0000 (UTC) Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by lists.denx.de (Postfix) with ESMTPS id 4C62CC21DF8 for ; Mon, 11 Jun 2018 15:49:19 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id e11-v6so9956771pgq.0 for ; Mon, 11 Jun 2018 08:49:19 -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=7bGRGmCRcrjmX7BvvOf4/7Shw8EKwF0SBEYrggTl5x4=; b=Gjg+abKFSNAyDO4mr1IMd9wkYC8WIfawLXUbtx8UJlY7O5RinjNXM9zW3h1zgqgc5L D27GbWrf00V7upvp5na+S9NXJ3SKuqrCcHjCQw0mJn6IzNfSRakp84aeNBzcQUCjBhAb G0/VroqF0PQcSOaiJp/S5RZDIvnY1/XHRF4Vg= 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=7bGRGmCRcrjmX7BvvOf4/7Shw8EKwF0SBEYrggTl5x4=; b=Ii0cHXpl2QkZb5JHN58wGimMEpA+UUw8ZYNH0GJR7QhPgSn8L8RlyMNWMTB/ZglMcv oaGZKB4xqOuQr6ePyelcF0ek++rzah3btluLXYg20DaCwlamonBqa3kCKbuNSRPQA8ad 3Ft6m/V8FME9U/6TySoLDUIlZCuKXDybJDkb6pBIf5pjRwvI6HQhWNa7tlcrnLQCY6Tx dwpW/kBujPl4gOXcvqEBx9ll0h8lPShzvMPzTZ6EPBFP/gQ6EOk7fS87ieFu7Wb0/Blr 01L28NRuEkOZLB9tAVRgNM56nMcAGJJDicxEQdwxgvULkCW+cLIun+At7ZUM+/2GnAvw CPOA== X-Gm-Message-State: APt69E2NAS+uA2mqQV+gi3UUUJWqpp6RaPygiXaoVs3W3yz//O0M9LgP 1dobeEjGMI/8VPWphQN/upK5 X-Received: by 2002:a65:4a42:: with SMTP id a2-v6mr15507877pgu.367.1528732157802; Mon, 11 Jun 2018 08:49:17 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7288:73c5:d4c6:ffd5:c258:b7e0]) by smtp.gmail.com with ESMTPSA id s1-v6sm31638261pgv.48.2018.06.11.08.49.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 08:49:17 -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: Mon, 11 Jun 2018 21:18:24 +0530 Message-Id: <20180611154832.3251-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611154832.3251-1-manivannan.sadhasivam@linaro.org> References: <20180611154832.3251-1-manivannan.sadhasivam@linaro.org> Cc: daniel.thompson@linaro.org, manivannanece23@gmail.com, bdong@ucrobotics.com, 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] [RESEND][PATCH 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 --- 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;