From patchwork Wed Jun 13 04:15:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138403 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp196954lji; Tue, 12 Jun 2018 21:16:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLqo4CJTjIPbHdyAYSNLAFjEWYSzGvX+TBONWdt//slcBkMoSFkdCkyyhjvGtpecKWt7g9n X-Received: by 2002:aa7:c147:: with SMTP id r7-v6mr2322422edp.143.1528863416521; Tue, 12 Jun 2018 21:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863416; cv=none; d=google.com; s=arc-20160816; b=ftjqfNYJrH7YfzK6Hv/WyPm8tdJAshjEFrKrAH8PCwoJuC2hiVAS4g5eJGE2J3Rh44 QBWR345KmWORnGUmqtx0bzHgWXJRsP0xLwKpx2BY+SERTKuFpof6LZ4VvXYdJbwXrV1r z9dhLd69yAa5PlgnL0X2diJI59hkdlp552IVF7qIPvQdUJAj7Xgy+jHJtdaGcuW1/in0 EbnIXPXQZ9raeNmctKXkWV8CxT4YG/HewT0mc4pX2OiEtobc4i4gK+MAZW6c+1u7JlJ0 QsCDV76FgFKquZ8EsqLWyf898dalTcEqgL6Vt6caaUnHxNugJmoQKQoEXhj/8AKUouxd 1nVw== 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=q/ZE+gym6UmBXzIa+OIORjD2Q9+9fLfks7AaO0zvB0C/jDW9F3MjcHFQkvOWeJoss1 j1kyoaxAafGtoDlV5hVyRflfz9BeA0P/2VhYioMZ02rc96cgQwNVce740y/id0S/uxWZ KE/dfgijLlqeqWLGXUACLbLc9R6X+nA9q5VHXmYxddV4jy7sVxdZek7OVpSY/dr/BRrA 1MTIne6QS3EjVifzjuKfJLUSFqG0pmxYRgPAagtiQZG2IaqwgVy8VAl3h7ppFYcWpsCJ F5hglKGLyCAvJ7QUEzC3X2enYJ9BRf5N91/sHC33bMa1EH/58entekVfn84f2T4kblQ4 8QNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=d6gLl462; 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 u2-v6si1599266edd.23.2018.06.12.21.16.56; Tue, 12 Jun 2018 21:16:56 -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=d6gLl462; 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 18FB7C21DED; Wed, 13 Jun 2018 04:16:34 +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 D84F4C21D9A; Wed, 13 Jun 2018 04:16:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7BFDAC21D65; Wed, 13 Jun 2018 04:16:19 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by lists.denx.de (Postfix) with ESMTPS id 5A08EC21DA1 for ; Wed, 13 Jun 2018 04:16:13 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id 15-v6so612027pge.2 for ; Tue, 12 Jun 2018 21:16:13 -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=d6gLl462o4w1Qx8x/RS9uzp3kci66KeQFYn7BC1lUvAWewgwUHls/9TEmqpiUQiwrX Hg7K7SZzT8Dlj5Wz8vOVtNOeoK+wo5JQtVOKnhY+cCOM0xjijdKNvm3/p2LWePwG5vEA CVewn/BBQURKpDjj3zcEc9Z5yrx2mKNceCmNM= 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=CMZWnXICmq8HpY01K0LlBcwW7oFUpJxIQMmFwOWWNgCfFz476g3JDpnEKk7OAToctl OLD+oww6t+GOnUYS6eMi5uLZiW1pYC2RX5FZuJl8g9WEqAfzI3cik2FzOx1JdMtTzNhU 92wBRb+Z20KfRp6mycrZP4OqoifKuzlvylCZKzWlljQf8/0dvC7d+TESV07fQrMV91PX u9WxchvCEhq1y99XXKkZ94eEBQCSn9WS8T+E4uR0PUwWjMQZuq9wPOPi4lifAeb2OOos yLrliXg8LSs0g1d56GdH3OncQZK82/PIII3XYwFSDpRW8gh3Tu6taYYEZF0bC6BBbffG viKA== X-Gm-Message-State: APt69E0HLMAz5KbUGXP6XAHmKcpQ/1y5eyqRLei2004bi3lhZOpGHWuU rQOxORrmyTz11HOrK/YT+APP X-Received: by 2002:a62:3f4f:: with SMTP id m76-v6mr3219659pfa.109.1528863371880; Tue, 12 Jun 2018 21:16:11 -0700 (PDT) Received: from localhost.localdomain ([2405:204:724b:42:c173:614b:87b0:a740]) by smtp.gmail.com with ESMTPSA id l15-v6sm493904pfg.88.2018.06.12.21.16.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:16:11 -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: Wed, 13 Jun 2018 09:45:00 +0530 Message-Id: <20180613041508.28958-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180613041508.28958-1-manivannan.sadhasivam@linaro.org> References: <20180613041508.28958-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 v2 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;