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; From patchwork Wed Jun 13 04:15:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138404 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp197911lji; Tue, 12 Jun 2018 21:18:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKInXUHSIoP6WDi9OMbPhXawHWwKh5vICd0KKZCg3yrzWO056cf0r92NW6f7kKPqCaeEGzxZ X-Received: by 2002:a50:e79e:: with SMTP id b30-v6mr2185746edn.275.1528863496839; Tue, 12 Jun 2018 21:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863496; cv=none; d=google.com; s=arc-20160816; b=PMQ4NBV+V0NGT74ZLeJb+9j+U420VsnagGCW6Ct+MW9/uFIXBAffhXZCvQE0QOy8rY g8vm8HiD9mR/4quwma5C5hxC6bfEYGj/dzxgez/zxtqR7jSTFL4vTZdmYN71CK9HszLJ hsg+ZwoXQjsW+JmKN+EUMiQKIhDyt5PEYQPZBE5df1/ITmvCSTF6e78y8qif5TAEhPg4 tSmxb61nI6qa8VybYiSLreS5mOWv38JWf+4x8BW9hFX+84f0ZRQgz45FD/+n3gwbprBE ZxP41yp2SrvsSMlKPZ8DbMaWVufrhL6kibpdYxpnzYimfK2kL+PzyEmVDzvbSKE8nWyo VVlw== 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=R6yUBcHm4EwHllVA6Gb19myP8mtMwMUxcBfkIte5MEo=; b=v3o2NosnzIyW0c49VSTvaZp0qXpTIZf1zYrSdCNxcyLrdFUn+R3F5injt7ssZilxwr 8WZ3G4wSIODm1OlTUli1Surcvlk8eYQvZ3v8B+W5hRHLfDM9SuMnP6f65E4uVKFuzxFA CLIgyJ9KQR9FmX97uuqzateo3jQSB5gk047sH4G/noRpavM55dfz92SmPbmNOqzo5xSb 4rgEZ8qDL4Q1FZwSMrA2KoCjY4+LOBm1WQO3cvgvlI1Z2tSCTCrNU8mCdCTRIJ2KyoVV JcIjyIEvvP+xZJrOBkBIqXj459+Qwefd72vHyOTonx0KQYfTTfDeWDxYlgAyPxwfmsTu HC3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="PU/nY2gK"; 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 r4-v6si1576146edo.320.2018.06.12.21.18.16; Tue, 12 Jun 2018 21:18:16 -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="PU/nY2gK"; 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 61B34C21DCA; Wed, 13 Jun 2018 04:16:57 +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_H2, 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 ECD89C21DFD; Wed, 13 Jun 2018 04:16:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E5176C21CB1; Wed, 13 Jun 2018 04:16:24 +0000 (UTC) Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by lists.denx.de (Postfix) with ESMTPS id 804F5C21DB6 for ; Wed, 13 Jun 2018 04:16:19 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id b74-v6so672153pfl.5 for ; Tue, 12 Jun 2018 21:16: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=TsHCK/Ru+z0rpwY2OV31/pfpMMwGCF6A2Kn2yfn2rTY=; b=PU/nY2gKggLyCIx8XWjGRbzffR6WHDe0S4GKaR2zdnL5mB5WttSL1+a6EsBupR92Uq rr3t4DW+vbYvRXt2oDMPqvOXMSClUHrBkzfUSotKm70Gnt3zu4kmoTtkI8n7SGecMjFt oN9Ut4h8GAXwOSLhpolIepLGGJ0TpD++kHTRs= 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=TsHCK/Ru+z0rpwY2OV31/pfpMMwGCF6A2Kn2yfn2rTY=; b=ev6w6z56LNZR07k0F2S8y+zr3vjgz4A3BdOj4cE5WOgkh4ulSY8+w8B225I0m8zzk0 0ReDYqYAcws+1Ic1Ojg5CMxHVfeRlCkzN+IIdRhgtJDwPndu7EhWaQKwx3ALgh8xhFjk eWPSIgOgrE7fBsPhgIdwnogMGUO84NN2FXog424cq26LheLKWLz/FOyFXSjKwVQgkBWY KyXuMANrqxvM5TLZWd48wXbutdqwDpXCv0vXOQCgjXi0h5o4bQS8GNUd3iK/NijSu/Zv 5e9GeGVTmPu00OIo5Ou5hfbyZL7mQzpczMuSKPDKLTtcWVAQaE4KuNvwMQr8mN+p6dPw JAjA== X-Gm-Message-State: APt69E38zJIo0YliKP11ANPslKXVATK0wkKTzVIS5ARmuEPoAiSZuP9T qFSS34rfLzFaYw1e/xmUqquh X-Received: by 2002:a62:a0c:: with SMTP id s12-v6mr3237758pfi.33.1528863377996; Tue, 12 Jun 2018 21:16:17 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:16: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: Wed, 13 Jun 2018 09:45:01 +0530 Message-Id: <20180613041508.28958-3-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 2/9] board: Add uCRobotics Bubblegum-96 board support 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 uCRobotics Bubblegum-96 board support. This board is one of the 96Boards Consumer Edition platform based on Actions Semi S900 SoC. Features: - Actions Semi S900 SoC (4xCortex A53, Power VR G6230 GPU) - 2GiB RAM - 8GiB eMMC, uSD slot - WiFi, Bluetooth and GPS module - 2x Host, 1x Device USB port - HDMI - 20-pin low speed and 40-pin high speed expanders, 6 LED, 3 buttons U-Boot will be loaded by ATF at EL2 execution level. Relevant driver support will be added in further commits. Signed-off-by: Manivannan Sadhasivam --- arch/arm/Kconfig | 1 + arch/arm/dts/bubblegum_96.dts | 19 +++++++ arch/arm/mach-owl/Kconfig | 21 ++++++++ board/ucRobotics/bubblegum_96/Kconfig | 15 ++++++ board/ucRobotics/bubblegum_96/MAINTAINERS | 6 +++ board/ucRobotics/bubblegum_96/Makefile | 3 ++ board/ucRobotics/bubblegum_96/bubblegum_96.c | 56 ++++++++++++++++++++ configs/bubblegum_96_defconfig | 22 ++++++++ include/configs/bubblegum_96.h | 43 +++++++++++++++ 9 files changed, 186 insertions(+) create mode 100644 arch/arm/dts/bubblegum_96.dts create mode 100644 board/ucRobotics/bubblegum_96/Kconfig create mode 100644 board/ucRobotics/bubblegum_96/MAINTAINERS create mode 100644 board/ucRobotics/bubblegum_96/Makefile create mode 100644 board/ucRobotics/bubblegum_96/bubblegum_96.c create mode 100644 configs/bubblegum_96_defconfig create mode 100644 include/configs/bubblegum_96.h diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ec0bb5a42b..6e203f96aa 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1431,6 +1431,7 @@ source "board/spear/spear600/Kconfig" source "board/spear/x600/Kconfig" source "board/st/stv0991/Kconfig" source "board/tcl/sl50/Kconfig" +source "board/ucRobotics/bubblegum_96/Kconfig" source "board/birdland/bav335x/Kconfig" source "board/timll/devkit3250/Kconfig" source "board/toradex/colibri_pxa270/Kconfig" diff --git a/arch/arm/dts/bubblegum_96.dts b/arch/arm/dts/bubblegum_96.dts new file mode 100644 index 0000000000..4e34ebaa49 --- /dev/null +++ b/arch/arm/dts/bubblegum_96.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ +// +// Device Tree Source for Bubblegum-96 +// +// Copyright (C) 2015 Actions Semi Co., Ltd. +// Copyright (C) 2018 Manivannan Sadhasivam + +/dts-v1/; +#include "s900.dtsi" + +/ { + model = "Bubblegum-96"; + compatible = "ucrobotics,bubblegum-96", "actions,s900"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x80000000>; + }; +}; diff --git a/arch/arm/mach-owl/Kconfig b/arch/arm/mach-owl/Kconfig index f695c16d1e..199e772988 100644 --- a/arch/arm/mach-owl/Kconfig +++ b/arch/arm/mach-owl/Kconfig @@ -3,4 +3,25 @@ if ARCH_OWL config SYS_SOC default "owl" +choice + prompt "Actions Semi OWL SoCs board select" + optional + +config TARGET_BUBBLEGUM_96 + bool "96Boards Bubblegum-96" + help + Support for 96Boards Bubblegum-96. This board complies with + 96Board Consumer Edition Specification. Features: + - Actions Semi S900 SoC (4xCortex A53, Power VR G6230 GPU) + - 2GiB RAM + - 8GiB eMMC, uSD slot + - WiFi, Bluetooth and GPS module + - 2x Host, 1x Device USB port + - HDMI + - 20-pin low speed and 40-pin high speed expanders, 6 LED, 3 buttons + +endchoice + +source "board/ucRobotics/bubblegum_96/Kconfig" + endif diff --git a/board/ucRobotics/bubblegum_96/Kconfig b/board/ucRobotics/bubblegum_96/Kconfig new file mode 100644 index 0000000000..2dd40d9b6a --- /dev/null +++ b/board/ucRobotics/bubblegum_96/Kconfig @@ -0,0 +1,15 @@ +if TARGET_BUBBLEGUM_96 + +config SYS_BOARD + default "bubblegum_96" + +config SYS_VENDOR + default "ucRobotics" + +config SYS_SOC + default "s900" + +config SYS_CONFIG_NAME + default "bubblegum_96" + +endif diff --git a/board/ucRobotics/bubblegum_96/MAINTAINERS b/board/ucRobotics/bubblegum_96/MAINTAINERS new file mode 100644 index 0000000000..d0cb7278c6 --- /dev/null +++ b/board/ucRobotics/bubblegum_96/MAINTAINERS @@ -0,0 +1,6 @@ +BUBBLEGUM_96 BOARD +M: Manivannan Sadhasivam +S: Maintained +F: board/ucRobotics/bubblegum_96/ +F: include/configs/bubblegum_96.h +F: configs/bubblegum_96_defconfig diff --git a/board/ucRobotics/bubblegum_96/Makefile b/board/ucRobotics/bubblegum_96/Makefile new file mode 100644 index 0000000000..c4b524def2 --- /dev/null +++ b/board/ucRobotics/bubblegum_96/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-y := bubblegum_96.o diff --git a/board/ucRobotics/bubblegum_96/bubblegum_96.c b/board/ucRobotics/bubblegum_96/bubblegum_96.c new file mode 100644 index 0000000000..a4c202da19 --- /dev/null +++ b/board/ucRobotics/bubblegum_96/bubblegum_96.c @@ -0,0 +1,56 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Bubblegum-96 Boards Support + * + * Copyright (C) 2018 Manivannan Sadhasivam + */ + +#include +#include +#include +#include +#include +#include + +DECLARE_GLOBAL_DATA_PTR; + +/* + * dram_init - sets uboots idea of sdram size + */ +int dram_init(void) +{ + gd->ram_size = CONFIG_SYS_SDRAM_SIZE; + return 0; +} + +/* This is called after dram_init() so use get_ram_size result */ +int dram_init_banksize(void) +{ + gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE; + gd->bd->bi_dram[0].size = gd->ram_size; + + return 0; +} + +static void show_psci_version(void) +{ + struct arm_smccc_res res; + + arm_smccc_smc(ARM_PSCI_0_2_FN_PSCI_VERSION, 0, 0, 0, 0, 0, 0, 0, &res); + + printf("PSCI: v%ld.%ld\n", + PSCI_VERSION_MAJOR(res.a0), + PSCI_VERSION_MINOR(res.a0)); +} + +int board_init(void) +{ + show_psci_version(); + + return 0; +} + +void reset_cpu(ulong addr) +{ + psci_system_reset(); +} diff --git a/configs/bubblegum_96_defconfig b/configs/bubblegum_96_defconfig new file mode 100644 index 0000000000..a2bd7e80e2 --- /dev/null +++ b/configs/bubblegum_96_defconfig @@ -0,0 +1,22 @@ +CONFIG_ARM=y +CONFIG_ARCH_OWL=y +CONFIG_TARGET_BUBBLEGUM_96=y +CONFIG_SYS_TEXT_BASE=0x11000000 +CONFIG_IDENT_STRING="\nBubblegum-96" +CONFIG_DEFAULT_DEVICE_TREE="bubblegum_96" +CONFIG_DISTRO_DEFAULTS=y +CONFIG_USE_BOOTARGS=y +CONFIG_ARM_SMCCC=y +CONFIG_BOOTARGS="console=ttyOWL5,115200n8" +CONFIG_BOOTDELAY=5 +CONFIG_SYS_PROMPT="U-Boot => " +# CONFIG_DISPLAY_CPUINFO is not set +# CONFIG_DISPLAY_BOARDINFO is not set +CONFIG_CMD_MD5SUM=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_CACHE=y +CONFIG_CMD_TIMER=y +CONFIG_CLK=y +CONFIG_CLK_OWL=y +CONFIG_CLK_S900=y +CONFIG_OWL_SERIAL=y diff --git a/include/configs/bubblegum_96.h b/include/configs/bubblegum_96.h new file mode 100644 index 0000000000..a8f38a23f9 --- /dev/null +++ b/include/configs/bubblegum_96.h @@ -0,0 +1,43 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Board configuration file for Bubblegum-96 + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + * + */ + +#ifndef _BUBBLEGUM_96_H_ +#define _BUGGLEGUM_96_H_ + +/* SDRAM Definitions */ +#define CONFIG_SYS_SDRAM_BASE 0x0 +#define CONFIG_NR_DRAM_BANKS 1 +#define CONFIG_SYS_SDRAM_SIZE 0x80000000 + +/* Generic Timer Definitions */ +#define COUNTER_FREQUENCY (24000000) /* 24MHz */ + +#define CONFIG_SYS_MALLOC_LEN (32 * 1024 * 1024) + +/* Some commands use this as the default load address */ +#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x7ffc0) + +/* + * This is the initial SP which is used only briefly for relocating the u-boot + * image to the top of SDRAM. After relocation u-boot moves the stack to the + * proper place. + */ +#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0x7ff00) + +/* UART Definitions */ +#define CONFIG_BAUDRATE 115200 + +#define CONFIG_ENV_SIZE 0x2000 + +/* Console configuration */ +#define CONFIG_SYS_CBSIZE 1024 /* Console buffer size */ +#define CONFIG_SYS_MAXARGS 64 +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE + +#endif From patchwork Wed Jun 13 04:15:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138405 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp199156lji; Tue, 12 Jun 2018 21:19:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJXYiU1LGg+Z7uZuYt6/9b28MiuQeeh9HzysrLBD6P42wCsc5aB5AB8PudaW7l5A+kvrvZ7 X-Received: by 2002:a50:ad78:: with SMTP id z53-v6mr2268304edc.306.1528863597220; Tue, 12 Jun 2018 21:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863597; cv=none; d=google.com; s=arc-20160816; b=uWjGDQbUZK/C3cMSXRS7wkS3VKSbHEUBGO/6dSvuuNkDpE/bE8W0eFdAzGfJYJvBwf RFyKbWGX/Fneg9dRBniD5czV7ojzCqQpxevlCdJESYtblI5rFlHBYlAL1nBXebAIOenS c3Qbp8T4Dti3BFgb6rePiUeiQ73spzFkwoAZbjJLCpZlftphJL9ts2mQ+RtHV10aYxJN Ie9sZAoK6KM04+LhuuTqbXsZlvwVJgmOu3rIj83Ts7M2Q2q7dln4RSL5q9tuC08o/Dp1 PnL7tAxCvAwVqdZoItVIEsRS0M//ZKm7n1Bx0RCs1ZnJ8aE8nDBcI0fh7UUHwbtl3WTw x4kw== 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=8SHc3qTXZl/pqlbQsvNioZUZDzu0hr+qSAelbqoKwAI=; b=hNmRX4rVjwIFZzH1l7uij1UytGRoJ3+BOqx9yko73HksouuAXwbNXsBzkTNrBGw/Ca ntTIE2LNkVaiWKGG0eBu+HFi1XF72Dle7CZgEsT3gI/wYNVNg+0J1sFNjXh7SLHaFKfa 6Fp9pSBIVHoXxz79vWteeK6WO4f4P6E9jI7whSZbYLQ6VT2W17yDEckeqRIJpBRsSAfr BSN/zlEX9RI1IZlFfkzwpZNNqTAjr2JKUhnS6jkqk735M7GOwEqKvj3sT3Ogipk20VHj 2pFKJs7hU8dNu64ulZZb74TppaUiyYDvgP8kocH0CRcrvO9f/79or2hekcYQzMKhYQOJ hzXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PUHLOubC; 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 e50-v6si1584813edd.321.2018.06.12.21.19.56; Tue, 12 Jun 2018 21:19:57 -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=PUHLOubC; 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 C18B2C21C93; Wed, 13 Jun 2018 04:17:23 +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 4BA87C21DB6; Wed, 13 Jun 2018 04:16:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 045EEC21D74; Wed, 13 Jun 2018 04:16:29 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by lists.denx.de (Postfix) with ESMTPS id CF739C21D65 for ; Wed, 13 Jun 2018 04:16:24 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id b14-v6so734032pls.5 for ; Tue, 12 Jun 2018 21:16:24 -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=L+kXhCQcaEwvQmStQGgx6Q798IWbEiykHE8rCKAh2Yc=; b=PUHLOubC5BiOZuEuFzESbm/7iVYeetluW65WV0/AstAA1L3wp9hp3E/ICbWa70DA5w yMOIiiAGyD/I95+3PvB9hW/9IKFQwA7A4h0u1hMoRdaBrVgWbdSuxqhfIFq2f5V7X9pX oK8syqIdbd1KUzhqGJh5H9+oG7h3LEK+SAPTw= 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=L+kXhCQcaEwvQmStQGgx6Q798IWbEiykHE8rCKAh2Yc=; b=tow4RDsQBgk/NzOR9pc4VQtZtcKinylwRItXuP5FDiJm/pxmW6cOf9KHzWS7iI8Wnz Z1Ygf4rq42KYTv2MDXfRm0/nKlJKdVHWjY2HyHjQNAEE4j5ZndA7bsEjEJU+9Jxy2Won LED1NlVyEAV5sfpootwonpscgS2uA1V/3jf33HhgE+hK0dx+jZ4MkcQVB9s/ERq752m4 EzWHmgyq6jCxiP/fOB6/xXCV3EZbG9UYF3wtSsnZTRyPEcTo/ZOamvaoSbdbYE4bnHOq ER2PSat3nBLA9nCSoDsFCbJ6J05aauE09mjzO35yctwI2XT6Ax3KQegOP/3XPWaQR/eJ oKdg== X-Gm-Message-State: APt69E3nBGhtWnrJDy0O7p9UORdhUNnzERLcS7XOcyZkQTL8o+Q2Yz/q pa0ADAx+bNG8Chgftw7q65B/ X-Received: by 2002:a17:902:b217:: with SMTP id t23-v6mr3411364plr.312.1528863383434; Tue, 12 Jun 2018 21:16:23 -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.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:16:22 -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:02 +0530 Message-Id: <20180613041508.28958-4-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 3/9] dt-bindings: clock: Add S900 CMU register definitions 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 S900 CMU register definitions to clock bindings. Signed-off-by: Manivannan Sadhasivam --- include/dt-bindings/clock/s900_cmu.h | 77 ++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 include/dt-bindings/clock/s900_cmu.h diff --git a/include/dt-bindings/clock/s900_cmu.h b/include/dt-bindings/clock/s900_cmu.h new file mode 100644 index 0000000000..2685a6df4a --- /dev/null +++ b/include/dt-bindings/clock/s900_cmu.h @@ -0,0 +1,77 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + * + */ + +#ifndef _DT_BINDINGS_CLOCK_S900_CMU_H_ +#define _DT_BINDINGS_CLOCK_S900_CMU_H_ + +/* Module Clock ID */ +#define CLOCK_DDRCH1 0 +#define CLOCK_DMAC 1 +#define CLOCK_DDRCH0 2 +#define CLOCK_BROM 3 +#define CLOCK_NANDC0 4 +#define CLOCK_SD0 5 +#define CLOCK_SD1 6 +#define CLOCK_SD2 7 +#define CLOCK_DE 8 +#define CLOCK_LVDS 9 +#define CLOCK_EDP 10 +#define CLOCK_NANDC1 11 +#define CLOCK_DSI 12 +#define CLOCK_CSI0 13 +#define CLOCK_BISP 14 +#define CLOCK_CSI1 15 +#define CLOCK_SD3 16 +#define CLOCK_I2C4 17 +#define CLOCK_GPIO 18 +#define CLOCK_DMM 19 +#define CLOCK_I2STX 20 +#define CLOCK_I2SRX 21 +#define CLOCK_HDMIA 22 +#define CLOCK_SPDIF 23 +#define CLOCK_PCM0 24 +#define CLOCK_VDE 25 +#define CLOCK_VCE 26 +#define CLOCK_HDE 27 +#define CLOCK_SHARESRAM 28 +#define CLOCK_CMU_DDR1 29 +#define CLOCK_GPU3D 30 +#define CLOCK_CMUDDR0 31 +#define CLOCK_SPEED 32 +#define CLOCK_I2C5 33 +#define CLOCK_THERMAL 34 +#define CLOCK_HDMI 35 +#define CLOCK_PWM4 36 +#define CLOCK_PWM5 37 +#define CLOCK_UART0 38 +#define CLOCK_UART1 39 +#define CLOCK_UART2 40 +#define CLOCK_IRC 41 +#define CLOCK_SPI0 42 +#define CLOCK_SPI1 43 +#define CLOCK_SPI2 44 +#define CLOCK_SPI3 45 +#define CLOCK_I2C0 46 +#define CLOCK_I2C1 47 +#define CLOCK_PCM1 48 +#define CLOCK_IMX 49 +#define CLOCK_UART6 50 +#define CLOCK_UART3 51 +#define CLOCK_UART4 52 +#define CLOCK_UART5 53 +#define CLOCK_ETHERNET 54 +#define CLOCK_PWM0 55 +#define CLOCK_PWM1 56 +#define CLOCK_PWM2 57 +#define CLOCK_PWM3 58 +#define CLOCK_TIMER 59 +#define CLOCK_SE 60 +#define CLOCK_HDCP2TX 61 +#define CLOCK_I2C2 62 +#define CLOCK_I2C3 63 + +#endif From patchwork Wed Jun 13 04:15:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138407 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp199621lji; Tue, 12 Jun 2018 21:20:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLZdHguKehIvMuNvu2aiSwXMvwUjmtD/bAutQrQWlJzM0cFKLmWO4olW5YY5sapgKU7HHFH X-Received: by 2002:a50:996d:: with SMTP id l42-v6mr2247064edb.179.1528863632651; Tue, 12 Jun 2018 21:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863632; cv=none; d=google.com; s=arc-20160816; b=Fe2f2vEvbPTzGuE9E25RtyVqsCXWgKn9Gzc5fo4hSvLwNmmtEYRZIfSk7GDaCVfsKN M17a2qcJWSlqNRxxXh5ZOu5kqjuQfpgEQOIkYPayIsNJYj+tjXgPYUVR0o8em/XlRXB7 sOKbKv8FxyPONswLTPMlA2uPNHPVH7V+m+0Mn0AgW4TSQXlx8+NDecV5i0HqQbqP0Kua qcKwl/LaIU0OFXqpVD3QS4kxAOQ+uIHZkgUMXM0MpyhcBIwIQeLcocW6dDfMGJS/32xa nVeeI813cBvmDWvBgREGprQChOKGmh4pkNxDAnM/3Bu9/WS8egFR9RwMs976N8CJx5Kn fvTA== 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=iHaYyc+7Oh6vBzZLvpkEHP52RpYPXncq4V5OrWOaZo4=; b=EBkrpLK6kqJCzh/EXnEZULfRRxfA1GJbS8E4YIk807+oWV1emDFUdANb24/rYjJzsE pKKhL3oZ50jBv+v/XXmeBjQa+AJwBTsSXuqFKpfqmm9u85ztXS6DhEzO4kHzs1wMCsGC GDZQ+7UZ+/7lcmOqlyQ3+52U73Jy1hRV02yp08OC/a7sN4z1H1jePQsX7A509hgsmAg/ f0jjB5yB0qK1V83jX95xdVCd8y4AOpaDk4x5eJgTG7OOvB9uMPD6JLi8DCjB0cooXcKZ N50UGvkDIA7Ld/YBvv+XLdnSjJUrZXE9lmsQsI9XE3tLi7YU6/Oolcr7sfOcb8d25shB 2Jlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AnCTNf0y; 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 t12-v6si145831edk.129.2018.06.12.21.20.32; Tue, 12 Jun 2018 21:20:32 -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=AnCTNf0y; 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 1F2ECC21DDC; Wed, 13 Jun 2018 04:17:39 +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_H2, 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 5E21FC21E30; Wed, 13 Jun 2018 04:16:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D1FB6C21DED; Wed, 13 Jun 2018 04:16:36 +0000 (UTC) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by lists.denx.de (Postfix) with ESMTPS id BE60AC21D65 for ; Wed, 13 Jun 2018 04:16:31 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id q1-v6so661576pff.13 for ; Tue, 12 Jun 2018 21:16:31 -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=VmfMqN6PBmC9ebQlHlANGND5cbFry1Tfn6ATnZ3xGEQ=; b=AnCTNf0ycvNdFdUCaX5wJ4SkxC64j147s5bgEXW+qL7sDdwdh1zFIKdZd7cldor7Oy IXP9tn7crIdD2Y/5h9yKtWXrDZlNdkhtqRei/ALXiQUgP+IGYQtX8p7l3BjNRX7uArhH 0/5OsQOb21c5dl5vKmDRNhfNaYLXwCk2A/ePA= 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=VmfMqN6PBmC9ebQlHlANGND5cbFry1Tfn6ATnZ3xGEQ=; b=sQlW/HjjerjU3IfymQxpT3tq0SGCZfYhK7H8v40UA9eq6OPufu89eCBBERN3jNkAqI 2Z8f3q60k1oT0abx6xZiv8DnZRUlxuVd8OsGOkIkBKEQftX02Z0kMOcdqrMvyoSsThqk Al/yhMYNyfnaLChA0ZdftCJ+8AcT3029J44df/q+aTCrHvztox1/XXMROk35RZ1Cf4cu qtF2qhfC6ScPofj5VFTSlrSQBnDF8cIYlAvGJvyRE78fuVJqIh/nOLFHCvgjAewAKquM 1T2+qfvbdClz3pmakEDKBa5KFx/FFcLcpvc9B2mvad83Om/ihkFPjVffem+eD/I4BbDV H7nQ== X-Gm-Message-State: APt69E1fnjdW9yfVojFGYEFX8Vh+RaJ0nKw2nkX4XJAH9pSg2GRc8gSN qEzDGbcNrHTRPsrRql9exMBi X-Received: by 2002:a65:640d:: with SMTP id a13-v6mr2738809pgv.154.1528863390297; Tue, 12 Jun 2018 21:16:30 -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.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:16:29 -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:03 +0530 Message-Id: <20180613041508.28958-5-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 4/9] arm: dts: s900: Add Clock Management Unit (CMU) nodes 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 Clock Management Unit (CMU) nodes for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/s900.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/s900.dtsi b/arch/arm/dts/s900.dtsi index 3bd14b82d4..e9d47b1ff1 100644 --- a/arch/arm/dts/s900.dtsi +++ b/arch/arm/dts/s900.dtsi @@ -6,18 +6,40 @@ // Copyright (C) 2018 Manivannan Sadhasivam /dts-v1/; +#include / { compatible = "actions,s900"; #address-cells = <0x2>; #size-cells = <0x2>; + losc: losc { + compatible = "fixed-clock"; + clock-frequency = <32768>; + #clock-cells = <0>; + }; + + diff24M: diff24M { + compatible = "fixed-clock"; + clock-frequency = <24000000>; + #clock-cells = <0>; + }; + soc { u-boot,dm-pre-reloc; compatible = "simple-bus"; #address-cells = <0x2>; #size-cells = <0x2>; ranges; + + cmu: clock-controller@e0160000 { + u-boot,dm-pre-reloc; + compatible = "actions,s900-cmu"; + reg = <0x0 0xe0160000 0x0 0x1000>; + clocks = <&losc>, <&diff24M>; + clock-names = "losc", "diff24M"; + #clock-cells = <1>; + }; }; }; From patchwork Wed Jun 13 04:15:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138406 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp199274lji; Tue, 12 Jun 2018 21:20:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIG8ShpyNmjNe5tdu7YudsyoxnhZILfdeqQWxe1OZnKJXw9uzNXIu9rdt/tmAh2XYsOkhyG X-Received: by 2002:a50:f5a1:: with SMTP id u30-v6mr2177204edm.93.1528863606487; Tue, 12 Jun 2018 21:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863606; cv=none; d=google.com; s=arc-20160816; b=TnBDhZMv42HOy+VPHm7p5s4dffnqT0/wTyKHNibvM7EWQ3XfJ4/glUwBg3ngJLF0qH bLAZ74qH146kjJ4T9RnIJhLUDtJDlyiZb9eAm2JECVCt2FwKLNoMDIMZvCT4PdQfbIIH me4Xkd3JlQUUFFiZFJGkmrSk3nbyopHu59Wt9xTcsxwtf2/1MVF9/89UTJ31Is7nuG1t GbJUDYAAyVgPKTI2CNH+4g4uUlC5vP4Veonuf9Ri2xeFXq9ffazfZc9jci//unstEBE0 yNhvDL+lDVBhe5rI8D1VswH4eVyynDdtLl64PhjvWiFfzV0ldkXg/pBpKGwQM7zNAHKp HjOQ== 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=ofXeb38+1wGR2S7NVoNCu+rpdtfFV7F6MoYg3VoknWU=; b=AhbY1ncKYyecnid+Z8GUIfx9SZXBIrpO/nnOO42o4Z8e5QM2rVefSkqj0abWqfSy82 wV9w327kewS2eb6gFGaEovBykgpY5sLxtgYvfYSA7LTPYYz8bUuwcmKc5y0Il1D7MvcO fpVBK/a91ZGkVm/yuK+VZm5RtUMbfgWCIvtGKH1uW9uDBQKFdPJ+UpofYXUBGJAa3Zpq AsghNSLAjX/9WIgKpJiU724JvJOdcj5fJJlJYtkvYujsIy/qacR0bBut1J65B4zAHbcx AL1XesiO6HINRfSKd3XjdIDT5xM41eIB02oUmP4+To9qxZxltdjVZh77qoui0u3LpP77 pCYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JHGQuOXp; 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 z6-v6si1934764edj.223.2018.06.12.21.20.06; Tue, 12 Jun 2018 21:20:06 -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=JHGQuOXp; 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 15A94C21E2F; Wed, 13 Jun 2018 04:18:00 +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 7264AC21E0D; Wed, 13 Jun 2018 04:17:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 92097C21DEC; Wed, 13 Jun 2018 04:16:44 +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 30DF1C21DDC for ; Wed, 13 Jun 2018 04:16:38 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id 15-v6so612438pge.2 for ; Tue, 12 Jun 2018 21:16:38 -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=J+dN1Ug1rCE+db0Dg/RpPiP4QAJrU+RiTEAnIUx/2vs=; b=JHGQuOXpx4T/InHbpbyYboTGga4c9jqPl8Xq0+HnYZRERt29O8a0LZFC5On0UVfrV+ Jje9y91jcGdD8ci7VWObrrKuNooZCEravFXqn6V487OF5ToE0DAgtE8Fjv7UtVH9Xt3I 5kmZqCpGMuEqu2Itqp4OEvK7OI0TwxURwGCys= 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=J+dN1Ug1rCE+db0Dg/RpPiP4QAJrU+RiTEAnIUx/2vs=; b=gp4/ll5V5Pz6Bj42YCh0wrpyxdGhO1XPkPeMLvA42PXqZghLKZeAgzMNUY7Fh/kjp1 DNggZ+upCfgXEXfo6kRpi7hdGzqOnHFnqMmsbEcp4WtdxDVqtynReJ69I37WE7wZawSJ SLZHmy4Akn1a9yK8mO3onD2YUuFG0eo7aRgsYpRBvAWRGpNoLLvQYX/4Ydt/IHn5j6hd f0i2eq90M81OLQl+HX5s8kaGmR5ZwL5i57qgaNRLFPT1quGlZZ5uc0rz9eQDw3ohZs5Y 5DOqenqvp81qYpfZbs4x4bW2f2dNfNGhAVhoKtW5W1HwD/RnkGoXsbCZq2/oIYhzaBdu idZw== X-Gm-Message-State: APt69E1J01MWuvLm5UJ5uvklT+GQUlDQtZtbpAu5j5/7ZZaB0EEX5lM0 S4sBZ3ZAMT2UZjvy6tbiSeFq X-Received: by 2002:a63:b956:: with SMTP id v22-v6mr2712486pgo.438.1528863396612; Tue, 12 Jun 2018 21:16:36 -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.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:16:36 -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:04 +0530 Message-Id: <20180613041508.28958-6-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 5/9] clk: Add Actions Semi OWL clock support 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 family base clock and S900 SoC specific clock support. For S900 peripheral clock support, only UART clock has been added for now. Signed-off-by: Manivannan Sadhasivam --- arch/arm/include/asm/arch-owl/clk_s900.h | 57 +++++++++ arch/arm/include/asm/arch-owl/regs_s900.h | 64 ++++++++++ drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/owl/Kconfig | 12 ++ drivers/clk/owl/Makefile | 3 + drivers/clk/owl/clk_s900.c | 138 ++++++++++++++++++++++ 7 files changed, 276 insertions(+) create mode 100644 arch/arm/include/asm/arch-owl/clk_s900.h create mode 100644 arch/arm/include/asm/arch-owl/regs_s900.h create mode 100644 drivers/clk/owl/Kconfig create mode 100644 drivers/clk/owl/Makefile create mode 100644 drivers/clk/owl/clk_s900.c diff --git a/arch/arm/include/asm/arch-owl/clk_s900.h b/arch/arm/include/asm/arch-owl/clk_s900.h new file mode 100644 index 0000000000..88e88f77f8 --- /dev/null +++ b/arch/arm/include/asm/arch-owl/clk_s900.h @@ -0,0 +1,57 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Actions Semi S900 Clock Definitions + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + * + */ + +#ifndef _OWL_CLK_S900_H_ +#define _OWL_CLK_S900_H_ + +#include + +struct owl_clk_priv { + phys_addr_t base; +}; + +/* BUSCLK register definitions */ +#define CMU_PDBGDIV_8 7 +#define CMU_PDBGDIV_SHIFT 26 +#define CMU_PDBGDIV_DIV (CMU_PDBGDIV_8 << CMU_PDBGDIV_SHIFT) +#define CMU_PERDIV_8 7 +#define CMU_PERDIV_SHIFT 20 +#define CMU_PERDIV_DIV (CMU_PERDIV_8 << CMU_PERDIV_SHIFT) +#define CMU_NOCDIV_2 1 +#define CMU_NOCDIV_SHIFT 19 +#define CMU_NOCDIV_DIV (CMU_NOCDIV_2 << CMU_NOCDIV_SHIFT) +#define CMU_DMMCLK_SRC_APLL 2 +#define CMU_DMMCLK_SRC_SHIFT 10 +#define CMU_DMMCLK_SRC (CMU_DMMCLK_SRC_APLL << CMU_DMMCLK_SRC_SHIFT) +#define CMU_APBCLK_DIV BIT(8) +#define CMU_NOCCLK_SRC BIT(7) +#define CMU_AHBCLK_DIV BIT(4) +#define CMU_CORECLK_MASK 3 +#define CMU_CORECLK_CPLL BIT(1) +#define CMU_CORECLK_HOSC BIT(0) + +/* COREPLL register definitions */ +#define CMU_COREPLL_EN BIT(9) +#define CMU_COREPLL_HOSC_EN BIT(8) +#define CMU_COREPLL_OUT (1104 / 24) + +/* DEVPLL register definitions */ +#define CMU_DEVPLL_CLK BIT(12) +#define CMU_DEVPLL_EN BIT(8) +#define CMU_DEVPLL_OUT (660 / 6) + +/* UARTCLK register definitions */ +#define CMU_UARTCLK_SRC_DEVPLL BIT(16) + +/* DEVCLKEN1 register definitions */ +#define CMU_DEVCLKEN1_UART5 BIT(21) + +#define PLL_STABILITY_WAIT_US 50 + +#endif diff --git a/arch/arm/include/asm/arch-owl/regs_s900.h b/arch/arm/include/asm/arch-owl/regs_s900.h new file mode 100644 index 0000000000..9e9106ddaa --- /dev/null +++ b/arch/arm/include/asm/arch-owl/regs_s900.h @@ -0,0 +1,64 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Actions Semi S900 Register Definitions + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + * + */ + +#ifndef _OWL_REGS_S900_H_ +#define _OWL_REGS_S900_H_ + +/* CMU registers */ +#define CMU_COREPLL (0x0000) +#define CMU_DEVPLL (0x0004) +#define CMU_DDRPLL (0x0008) +#define CMU_NANDPLL (0x000C) +#define CMU_DISPLAYPLL (0x0010) +#define CMU_AUDIOPLL (0x0014) +#define CMU_TVOUTPLL (0x0018) +#define CMU_BUSCLK (0x001C) +#define CMU_SENSORCLK (0x0020) +#define CMU_LCDCLK (0x0024) +#define CMU_DSICLK (0x0028) +#define CMU_CSICLK (0x002C) +#define CMU_DECLK (0x0030) +#define CMU_BISPCLK (0x0034) +#define CMU_IMXCLK (0x0038) +#define CMU_HDECLK (0x003C) +#define CMU_VDECLK (0x0040) +#define CMU_VCECLK (0x0044) +#define CMU_NANDCCLK (0x004C) +#define CMU_SD0CLK (0x0050) +#define CMU_SD1CLK (0x0054) +#define CMU_SD2CLK (0x0058) +#define CMU_UART0CLK (0x005C) +#define CMU_UART1CLK (0x0060) +#define CMU_UART2CLK (0x0064) +#define CMU_PWM0CLK (0x0070) +#define CMU_PWM1CLK (0x0074) +#define CMU_PWM2CLK (0x0078) +#define CMU_PWM3CLK (0x007C) +#define CMU_USBPLL (0x0080) +#define CMU_ASSISTPLL (0x0084) +#define CMU_EDPCLK (0x0088) +#define CMU_GPU3DCLK (0x0090) +#define CMU_CORECTL (0x009C) +#define CMU_DEVCLKEN0 (0x00A0) +#define CMU_DEVCLKEN1 (0x00A4) +#define CMU_DEVRST0 (0x00A8) +#define CMU_DEVRST1 (0x00AC) +#define CMU_UART3CLK (0x00B0) +#define CMU_UART4CLK (0x00B4) +#define CMU_UART5CLK (0x00B8) +#define CMU_UART6CLK (0x00BC) +#define CMU_TLSCLK (0x00C0) +#define CMU_SD3CLK (0x00C4) +#define CMU_PWM4CLK (0x00C8) +#define CMU_PWM5CLK (0x00CC) +#define CMU_ANALOGDEBUG (0x00D4) +#define CMU_TVOUTPLLDEBUG0 (0x00EC) +#define CMU_TVOUTPLLDEBUG1 (0x00FC) + +#endif diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index edb4ca58ea..18bf8a6d28 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -89,6 +89,7 @@ source "drivers/clk/exynos/Kconfig" source "drivers/clk/at91/Kconfig" source "drivers/clk/renesas/Kconfig" source "drivers/clk/mvebu/Kconfig" +source "drivers/clk/owl/Kconfig" config ICS8N3QV01 bool "Enable ICS8N3QV01 VCXO driver" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 58139b13a8..078f8d7ae1 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -16,6 +16,7 @@ obj-$(CONFIG_CLK_BCM6345) += clk_bcm6345.o obj-$(CONFIG_CLK_BOSTON) += clk_boston.o obj-$(CONFIG_CLK_EXYNOS) += exynos/ obj-$(CONFIG_CLK_HSDK) += clk-hsdk-cgu.o +obj-$(CONFIG_CLK_OWL) += owl/ obj-$(CONFIG_CLK_RENESAS) += renesas/ obj-$(CONFIG_CLK_STM32F) += clk_stm32f.o obj-$(CONFIG_CLK_STM32MP1) += clk_stm32mp1.o diff --git a/drivers/clk/owl/Kconfig b/drivers/clk/owl/Kconfig new file mode 100644 index 0000000000..661f1981b9 --- /dev/null +++ b/drivers/clk/owl/Kconfig @@ -0,0 +1,12 @@ +config CLK_OWL + bool "Actions Semi OWL clock drivers" + depends on CLK && ARCH_OWL + help + Enable support for clock managemet unit present in Actions Semi + OWL SoCs. + +config CLK_S900 + bool "Actions Semi S900 clock driver" + depends on CLK_OWL && ARM64 + help + Enable support for the clocks in Actions Semi S900 SoC. diff --git a/drivers/clk/owl/Makefile b/drivers/clk/owl/Makefile new file mode 100644 index 0000000000..9132dcc175 --- /dev/null +++ b/drivers/clk/owl/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-$(CONFIG_CLK_S900) += clk_s900.o diff --git a/drivers/clk/owl/clk_s900.c b/drivers/clk/owl/clk_s900.c new file mode 100644 index 0000000000..2b39bb99af --- /dev/null +++ b/drivers/clk/owl/clk_s900.c @@ -0,0 +1,138 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Actions Semi S900 clock driver + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + */ + +#include +#include +#include +#include +#include + +#include + +void owl_clk_init(struct owl_clk_priv *priv) +{ + u32 bus_clk = 0, core_pll, dev_pll; + + /* Enable ASSIST_PLL */ + setbits_le32(priv->base + CMU_ASSISTPLL, BIT(0)); + + udelay(PLL_STABILITY_WAIT_US); + + /* Source HOSC to DEV_CLK */ + clrbits_le32(priv->base + CMU_DEVPLL, CMU_DEVPLL_CLK); + + /* Configure BUS_CLK */ + bus_clk |= (CMU_PDBGDIV_DIV | CMU_PERDIV_DIV | CMU_NOCDIV_DIV | + CMU_DMMCLK_SRC | CMU_APBCLK_DIV | CMU_AHBCLK_DIV | + CMU_NOCCLK_SRC | CMU_CORECLK_HOSC); + writel(bus_clk, priv->base + CMU_BUSCLK); + + udelay(PLL_STABILITY_WAIT_US); + + /* Configure CORE_PLL */ + core_pll = readl(priv->base + CMU_COREPLL); + core_pll |= (CMU_COREPLL_EN | CMU_COREPLL_HOSC_EN | CMU_COREPLL_OUT); + writel(core_pll, priv->base + CMU_COREPLL); + + udelay(PLL_STABILITY_WAIT_US); + + /* Configure DEV_PLL */ + dev_pll = readl(priv->base + CMU_DEVPLL); + dev_pll |= (CMU_DEVPLL_EN | CMU_DEVPLL_OUT); + writel(dev_pll, priv->base + CMU_DEVPLL); + + udelay(PLL_STABILITY_WAIT_US); + + /* Source CORE_PLL for CORE_CLK */ + clrsetbits_le32(priv->base + CMU_BUSCLK, CMU_CORECLK_MASK, + CMU_CORECLK_CPLL); + + /* Source DEV_PLL for DEV_CLK */ + setbits_le32(priv->base + CMU_DEVPLL, CMU_DEVPLL_CLK); + + udelay(PLL_STABILITY_WAIT_US); +} + +void owl_uart_clk_enable(struct owl_clk_priv *priv) +{ + /* Source HOSC for UART5 interface */ + clrbits_le32(priv->base + CMU_UART5CLK, CMU_UARTCLK_SRC_DEVPLL); + + /* Enable UART5 interface clock */ + setbits_le32(priv->base + CMU_DEVCLKEN1, CMU_DEVCLKEN1_UART5); +} + +void owl_uart_clk_disable(struct owl_clk_priv *priv) +{ + /* Disable UART5 interface clock */ + clrbits_le32(priv->base + CMU_DEVCLKEN1, CMU_DEVCLKEN1_UART5); +} + +int owl_clk_enable(struct clk *clk) +{ + struct owl_clk_priv *priv = dev_get_priv(clk->dev); + + switch (clk->id) { + case CLOCK_UART5: + owl_uart_clk_enable(priv); + break; + default: + return 0; + } + + return 0; +} + +int owl_clk_disable(struct clk *clk) +{ + struct owl_clk_priv *priv = dev_get_priv(clk->dev); + + switch (clk->id) { + case CLOCK_UART5: + owl_uart_clk_disable(priv); + break; + default: + return 0; + } + + return 0; +} + +static int owl_clk_probe(struct udevice *dev) +{ + struct owl_clk_priv *priv = dev_get_priv(dev); + + priv->base = dev_read_addr(dev); + if (priv->base == FDT_ADDR_T_NONE) + return -EINVAL; + + /* setup necessary clocks */ + owl_clk_init(priv); + + return 0; +} + +static struct clk_ops owl_clk_ops = { + .enable = owl_clk_enable, + .disable = owl_clk_disable, +}; + +static const struct udevice_id owl_clk_ids[] = { + { .compatible = "actions,s900-cmu" }, + { } +}; + +U_BOOT_DRIVER(clk_owl) = { + .name = "clk_s900", + .id = UCLASS_CLK, + .of_match = owl_clk_ids, + .ops = &owl_clk_ops, + .priv_auto_alloc_size = sizeof(struct owl_clk_priv), + .probe = owl_clk_probe, + .flags = DM_FLAG_PRE_RELOC, +}; From patchwork Wed Jun 13 04:15:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138410 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp200978lji; Tue, 12 Jun 2018 21:22:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI2VYseo4NOhH0XnsaJu86LX5hZqppNtCU/nVNh9aT7hU78IVyVYt0TcRKFtFM7iHWVUUCP X-Received: by 2002:a50:84e9:: with SMTP id 96-v6mr2303672edq.130.1528863738225; Tue, 12 Jun 2018 21:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863738; cv=none; d=google.com; s=arc-20160816; b=On06qG8dB2fG0FH6DHrJscvv8/swjHAttlCq+zai8KcPolcS11hYhZAwtDSFQi7fhR QeRjkB9IUSxL6lbfRhRRa/ululPTQvzWisv6u2u6418tQ70gCtzs81ftcgv9igsJADt/ MydHLGyEeRSWO8cCqs/rUHHJ2GPmfcnVEqxd5FdCOJEQl5YkpWMhkMf9KuAL+byGmtFI Wk/0oDCgawAyBjoLVI6paFTXKt3DS/to+JkYdqke2UDHHFjOzzOR4w4nIxZ+IyYwwTio qUneMFDqZszMgNf45Ky4eQ5o4DCTFx+uRJUKqCJBg3tJg8e9vgSoYxITPRse0xGyS6/n ycyA== 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=1xMxzWlDSvHJwiZu0GFVqmlFivWEyyBPiVxdlQGaznc=; b=Sdm8WH8z99/MRMDPq+uVLkpb4e/MD4G6bFX+3xTWHVSPFeqICqehqcQ1tGqaofzGg2 ojuY45iE0sd4dAFQgACbRHbAaqvmPZo/3x1Keajx6K/+2SdUtr2sZmRR5XXBHC1xFzlv PT3UUwngkXyfpI9ZsWD+oLAEUExyQln24GEQ1aiLjoOzhg38K6rULchiJOmAE2illnaJ knIpW9u2fMm2ye6yaBnZPwNG0hxkBWRUHScQD4sGul0T8RVcXPVK4ljb/t5uNzxMeFIf Q/LfpHTPwfldYtYXaJcB/nA9VbuvN7vPJkmRXo+dhfKRrZO/2bPY2OJ/4WYs3CsqJdyW BWpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h+G+mX5W; 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 l7-v6si775532edn.256.2018.06.12.21.22.17; Tue, 12 Jun 2018 21:22:18 -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=h+G+mX5W; 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 A072DC21DA2; Wed, 13 Jun 2018 04:19:16 +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_H2, 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 8D19FC21E18; Wed, 13 Jun 2018 04:17:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7CD3EC21CB1; Wed, 13 Jun 2018 04:16:51 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by lists.denx.de (Postfix) with ESMTPS id 7C5E2C21E1D for ; Wed, 13 Jun 2018 04:16:45 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id r11-v6so671645pfl.6 for ; Tue, 12 Jun 2018 21:16:45 -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=k7bmf4upKR0JnD3ND9OsWQbf1WYfy6xMWbeNlwS5OMk=; b=h+G+mX5Wqf09OWfGDx9wiHIPgqm079dFVlzoLX4M3STjkYwhPU5dzlVrpErb89A39D 4G7no5TkztQWncfc0nNSMF7DaTNedCsCG1RIrKe6wcZhY/Yw42MnCZsKrtPyVpVHdrIL biejf9R3+B+x9PPG3pTu1m61IZHAlma94tEjw= 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=k7bmf4upKR0JnD3ND9OsWQbf1WYfy6xMWbeNlwS5OMk=; b=k7dPY1HxCjdfSs40ZyUbbAKmdhzTtPhRFFkmzk+TBuaaoA3DvikpIGJU7GFxRjENXI sGmFB7FIlljHIY7835OD8CFd8aa3gatWsSl4JopWHXPZOL0FIIcYNlD42TRuWxHkMmEn QbSR9n21dvQaJBLTGayTgRoR5ZoQBEsNLV0sElfEE6B0FAqkxzBmOmr7LzB2zJz8T4E3 4NVJegkiE4c9+7lbxLMmrbDaCRgaYewPzLFffUESa7vbY4KyrreMAUB93nWngB4FDqNT Obsu8yQ/R7w5AnlJTtiGH1dZEjgdIjn5CJStXcqrVsJEOPgNv7V7plHobkd3WkBA9Gki oR4Q== X-Gm-Message-State: APt69E39zq5wIycKOwQYYno+A/cCspmgWljA9Lhe3I/lx/FZz23F/uTX EKe8tdn0KxAKaIS7zusXmmpd X-Received: by 2002:a62:9d82:: with SMTP id a2-v6mr3209468pfk.223.1528863404064; Tue, 12 Jun 2018 21:16:44 -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.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:16:43 -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:05 +0530 Message-Id: <20180613041508.28958-7-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 6/9] arm: dts: s900: Add UART node 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 UART node for Actions Semi S900 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/s900.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/s900.dtsi b/arch/arm/dts/s900.dtsi index e9d47b1ff1..2bbb30a5a8 100644 --- a/arch/arm/dts/s900.dtsi +++ b/arch/arm/dts/s900.dtsi @@ -32,6 +32,14 @@ #size-cells = <0x2>; ranges; + uart5: serial@e012a000 { + u-boot,dm-pre-reloc; + compatible = "actions,s900-serial"; + reg = <0x0 0xe012a000 0x0 0x1000>; + clocks = <&cmu CLOCK_UART5>; + status = "disabled"; + }; + cmu: clock-controller@e0160000 { u-boot,dm-pre-reloc; compatible = "actions,s900-cmu"; From patchwork Wed Jun 13 04:15:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138409 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp200774lji; Tue, 12 Jun 2018 21:22:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLet1Np0uN0jOH+VUqpkZ9NGbi4a3FxVOB50cVwVAcePECzCkZ/uavjHJZIRKU2Yspz0ARa X-Received: by 2002:a50:fb13:: with SMTP id d19-v6mr2199373edq.41.1528863724098; Tue, 12 Jun 2018 21:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863724; cv=none; d=google.com; s=arc-20160816; b=MqPemWWQqag+GWAtzbJV7kZXV5bFvX5r1tRmxzG74juIJUQW2ixn7+rBpUkU6IoAnL 7zw/FD+r1vJQaiigLUz0zUM8N2V7+FG7ufoUL3y4NWoUePeCcUg4EyCCXy9SKfnsw09I OMEd6CJInXBNPNpm7bPPx2gIDZGgDgoFU7XSCLPgL/8SktRnm7EENLkE97T04d96VGJl S2giBQmefoB6QX/Pbq7U6bl4uVf8pb+hzRtUQLflDMSeuDXA9qn8rlKewis2GKS//VZf DI9sQlim/gMf8IIG2jiySjUQf+aEGRtJnIyafmq45TqH1KTma4VpFHggkXs5OgmAWn2G sb/g== 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=cqdUAC6rhHXLOtA0D7CVZYFJcPpmgovQGGmZlVmVl1M=; b=FSCB0ulvGf+yRMzjocMaMZNAPYJRpHOuH+ssGLIiVSTStu8dI7OJDKPhcAHfzGj0hQ 2vw7WlTOjTwSpTH9DxrB/U13Sr74lYnPyJv5+fVgoHr2lJ0POZtWGHT4nQbVptS64mab od8p5VHvAPygTPvyT2sqUBZwGxtLkABhEx5ZuZ/OqBZmpiOgehwxeYR4rjz8ZU2MRfbO hNTNkVA99QtEBM7680GUf6TeZEXAD9rwxHj2e8slb9OMoOV5wGDLwbl9oW89JA1aepGb WPPGRgxWzaxvgzIUpiEbfzK+ESi9nLqTTT3VHhMZgM9KbGw4rJV7IhO+brguRgQHA1gH +Amw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bohIrVdB; 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 x3-v6si762062edb.263.2018.06.12.21.22.03; Tue, 12 Jun 2018 21:22:04 -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=bohIrVdB; 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 90FB3C21E12; Wed, 13 Jun 2018 04:19:33 +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 CB9C9C21DB6; Wed, 13 Jun 2018 04:18:04 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 23168C21DF9; Wed, 13 Jun 2018 04:16:59 +0000 (UTC) Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) by lists.denx.de (Postfix) with ESMTPS id 2722FC21E36 for ; Wed, 13 Jun 2018 04:16:55 +0000 (UTC) Received: by mail-pl0-f65.google.com with SMTP id c41-v6so725653plj.10 for ; Tue, 12 Jun 2018 21:16:55 -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=1WzApZPHdn9rPPykhS8KTFiPpyPh9KeuGwLhdvlSLUE=; b=bohIrVdBWTK1bnlTMw59ocRgiJtCecl1kB0Fx6Cp+jf2MpvGqIQzyPUOsKTSC4Fq89 pBVbdHKkUOWOMhxU0DV98iLGr4n5aUguGXmcgIKqFvQH2rHnrMToFKJ0Dj/15yZ/vfHx 2VJZ4eaPUioPHNLca8yT9dVn22E1HiSalWAbs= 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=1WzApZPHdn9rPPykhS8KTFiPpyPh9KeuGwLhdvlSLUE=; b=ipo/F4Ggei4Is997cr4VmoBLvL3BEJoFJJHl1RArlmTwndpYglAxAMqf4t8A+pmEYV o6e4oB6yLmokVjiKJdxu0brB5TTvjbx1cqxzVQ3Hw0in4fESUDY/DeJEr31VRTwh7b2F dy5S3WIrRCrveTnxCaVJePKvFsmHui1WlRVFZxYTzIHBzNY9m6yswtRVukIh0FxbLJE1 p5V1Tgp/1TaCTXYOFCagjIz+fb5Lf0fxVnRy3rAt4TMnF/L2y4c9t/BQgSSSSiZyV+5V EOiiRBIb7qPEJSFpCAn/gsdElAlOzsttT3jiO/eNcmizuUmmaM/dsRex/D4ZaPXO3l8i 5/gw== X-Gm-Message-State: APt69E13kBz1kTlvVYtKglJfYDidXiouAZGqSs23TG0J+CyZin10WPYt tTHt1oJpc3fuzUwAboINkp66k14Plw== X-Received: by 2002:a17:902:e187:: with SMTP id cd7-v6mr3439870plb.166.1528863413688; Tue, 12 Jun 2018 21:16:53 -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.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:16:53 -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:06 +0530 Message-Id: <20180613041508.28958-8-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 7/9] arm: dts: bubblegum_96: Enable UART5 for serial console 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 enables UART5 found in S900 SoC for serial console support. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/bubblegum_96.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/bubblegum_96.dts b/arch/arm/dts/bubblegum_96.dts index 4e34ebaa49..5b58d15594 100644 --- a/arch/arm/dts/bubblegum_96.dts +++ b/arch/arm/dts/bubblegum_96.dts @@ -12,8 +12,20 @@ model = "Bubblegum-96"; compatible = "ucrobotics,bubblegum-96", "actions,s900"; + aliases { + serial5 = &uart5; + }; + + chosen { + stdout-path = "serial5:115200n8"; + }; + memory@0 { device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>; }; }; + +&uart5 { + status = "okay"; +}; From patchwork Wed Jun 13 04:15:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138408 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp200157lji; Tue, 12 Jun 2018 21:21:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJGUvAS6T0Tn+tCxxq1R7l/VZGvjJo8+uTud1AocVHpwVIxFY9hlWh0zf/yxTn7nP7IA9V/ X-Received: by 2002:a50:ee08:: with SMTP id g8-v6mr2259771eds.199.1528863672961; Tue, 12 Jun 2018 21:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863672; cv=none; d=google.com; s=arc-20160816; b=AeGWzK3reTMLj1Ka09iw+M55w86Bw5gIJzjp8BKLT0Oup3AwpeIeb5lBi68+sb4lTF 04CULKxSkDCQUHGPJZZ7zGlAvtuuPkATLirfbavifGK9+9sD1vOxd+bieOpmwx+fWE0X lJ+5ed2xEzsZpPiiIj1tMgS+vFCoLLTUEaJGRizgG3SPtLOBtEmA/R14Jghk0yfFnJON Yz5fUH3TGTrT7z32AxpvqdRIMdzro80N/69VXSgDIO5Bk5dwUm31bJDmekyoqf0Vk8tj A1rVix9PWs5k8I9kSXQhnaUDTa1xQDLanZUBX00yVwaHYaVD+nmETDpz8xj1XEuv9lUK Mwqg== 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=otl8Uc8EiKsGI/ktuCa8ylpK8OB+hOn7AtHtBUvyxow=; b=ZbNu/x0P8wg4j9pbWlSJH3XXbk879MBjMYEXQXDz+D+S/emo6X9UxRDTKD+QWLsMIl bj5Upc28kAxWGym8CWadFw/vudzktUHrXGDqbkOCz6BsfwruVukGHJQjQOUu7KkWyj4g KasYAJZQafd7uKqmvRzS+XWlrBGDKWQbKyLpGcl0hL79W1l9Ns+m0IZWT/YGVpO6pXIX p1HbYDFSjc4URuCE7z42B0pc5r9LFLgCF5xn3HnDJuxKHadd+nPTmVa306SJyEWNA7Np MP0d/kmBWScR7eMN8G6VhJvb/uHbUCP3Mi7KlRhjUqBjIX2l2XprNbL4+LrMy2yh7RBa iDKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CWG0ihKo; 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 o4-v6si369546edd.398.2018.06.12.21.21.12; Tue, 12 Jun 2018 21:21:12 -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=CWG0ihKo; 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 7ED4CC21DFD; Wed, 13 Jun 2018 04:18:44 +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 B4D38C21CB6; Wed, 13 Jun 2018 04:17:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0656CC21D74; Wed, 13 Jun 2018 04:17:07 +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 B167DC21DA2 for ; Wed, 13 Jun 2018 04:17:02 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id 15-v6so612850pge.2 for ; Tue, 12 Jun 2018 21:17:02 -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=f/1fdxVAA0aTSFOpliNxb0P9mrDViKV0R/4zJaQgJ9k=; b=CWG0ihKo4YWu7cSwQ9FujebRtghSTDpBJrq8GlgMiNs7aIVLYNQveJlapXePWdbzDn AhbRMw/bmGHMRAP6xPA4Y8X10/CcdbW//vTUl+9iWfsLh73nJlYNiyTtRJ0fmAK5+Dw7 oT+JsFvaZlolWIse8Mhf4o4PwKUfkx9VObxTs= 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=f/1fdxVAA0aTSFOpliNxb0P9mrDViKV0R/4zJaQgJ9k=; b=OrEK8OqyjqmovjwJVOg11nOAJwxAKuSi7cQqyIVXAgWp4EtgmoPwdTtFlXjxC+WuQW mZjtHhncMFwdhkQjFlFnr3pxV+Ww50JGEd+VQQrh7S26uEi9zsctV2xbMV6/Itzdh1KN GIq0wBc63IGS1nWAXQMUdiNAgDZYsil/CLaYEuKzIk/j/3gBNWzYdg/EzkvJJaF391Gn Kk+VZxn9ERlcuiIV7+Lqppx4wloA5l243sR1KILn27DhhnVJ3dORIktXIpe/VnJqYNhF /aBf4oUJtFPBT1I9KyQDalOvjdQBGHAnRtVWVDKVOsxIPME8T5pqghdu3pwCwUbGGRC9 hCHQ== X-Gm-Message-State: APt69E1b5LJbKm3wi2+r4J4CTr9P9P8bl59IAfJTcCrJL8nb9OYdOfdS sOOYqAKW/GqV8AIMqmntb4Ij X-Received: by 2002:a63:77c6:: with SMTP id s189-v6mr2736690pgc.450.1528863421206; Tue, 12 Jun 2018 21:17:01 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:17:00 -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:07 +0530 Message-Id: <20180613041508.28958-9-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 8/9] serial: Add Actions Semi OWL UART support 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 family UART support. This driver relies on baudrate configured by primary bootloaders. Signed-off-by: Manivannan Sadhasivam --- drivers/serial/Kconfig | 8 +++ drivers/serial/Makefile | 1 + drivers/serial/serial_owl.c | 136 ++++++++++++++++++++++++++++++++++++ 3 files changed, 145 insertions(+) create mode 100644 drivers/serial/serial_owl.c diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 2940bd05dc..766e5ced03 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -625,6 +625,14 @@ config MSM_SERIAL for example APQ8016 and MSM8916. Single baudrate is supported in current implementation (115200). +config OWL_SERIAL + bool "Actions Semi OWL UART" + depends on DM_SERIAL && ARCH_OWL + help + If you have a Actions Semi OWL based board and want to use the on-chip + serial port, say Y to this option. If unsure, say N. + Single baudrate is supported in current implementation (115200). + config PXA_SERIAL bool "PXA serial port support" help diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile index e66899489e..9fa81d855d 100644 --- a/drivers/serial/Makefile +++ b/drivers/serial/Makefile @@ -64,6 +64,7 @@ obj-$(CONFIG_MSM_SERIAL) += serial_msm.o obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o +obj-$(CONFIG_OWL_SERIAL) += serial_owl.o ifndef CONFIG_SPL_BUILD obj-$(CONFIG_USB_TTY) += usbtty.o diff --git a/drivers/serial/serial_owl.c b/drivers/serial/serial_owl.c new file mode 100644 index 0000000000..6fd97e2502 --- /dev/null +++ b/drivers/serial/serial_owl.c @@ -0,0 +1,136 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Actions Semi OWL SoCs UART driver + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +/* UART Registers */ +#define OWL_UART_CTL (0x0000) +#define OWL_UART_RXDAT (0x0004) +#define OWL_UART_TXDAT (0x0008) +#define OWL_UART_STAT (0x000C) + +/* UART_CTL Register Definitions */ +#define OWL_UART_CTL_PRS_NONE GENMASK(6, 4) +#define OWL_UART_CTL_STPS BIT(2) +#define OWL_UART_CTL_DWLS 3 + +/* UART_STAT Register Definitions */ +#define OWL_UART_STAT_TFES BIT(10) /* TX FIFO Empty Status */ +#define OWL_UART_STAT_RFFS BIT(9) /* RX FIFO full Status */ +#define OWL_UART_STAT_TFFU BIT(6) /* TX FIFO full Status */ +#define OWL_UART_STAT_RFEM BIT(5) /* RX FIFO Empty Status */ + +struct owl_serial_priv { + phys_addr_t base; +}; + +int owl_serial_setbrg(struct udevice *dev, int baudrate) +{ + /* Driver supports only fixed baudrate */ + return 0; +} + +static int owl_serial_getc(struct udevice *dev) +{ + struct owl_serial_priv *priv = dev_get_priv(dev); + + if (readl(priv->base + OWL_UART_STAT) & OWL_UART_STAT_RFEM) + return -EAGAIN; + + return (int)(readl(priv->base + OWL_UART_RXDAT)); +} + +static int owl_serial_putc(struct udevice *dev, const char ch) +{ + struct owl_serial_priv *priv = dev_get_priv(dev); + + if (readl(priv->base + OWL_UART_STAT) & OWL_UART_STAT_TFFU) + return -EAGAIN; + + writel(ch, priv->base + OWL_UART_TXDAT); + + return 0; +} + +static int owl_serial_pending(struct udevice *dev, bool input) +{ + struct owl_serial_priv *priv = dev_get_priv(dev); + unsigned int stat = readl(priv->base + OWL_UART_STAT); + + if (input) + return !(stat & OWL_UART_STAT_RFEM); + else + return !(stat & OWL_UART_STAT_TFES); +} + +static int owl_serial_probe(struct udevice *dev) +{ + struct owl_serial_priv *priv = dev_get_priv(dev); + struct clk clk; + u32 uart_ctl; + int ret; + + /* Set data, parity and stop bits */ + uart_ctl = readl(priv->base + OWL_UART_CTL); + uart_ctl &= ~(OWL_UART_CTL_PRS_NONE); + uart_ctl &= ~(OWL_UART_CTL_STPS); + uart_ctl |= OWL_UART_CTL_DWLS; + writel(uart_ctl, priv->base + OWL_UART_CTL); + + /* Enable UART clock */ + ret = clk_get_by_index(dev, 0, &clk); + if (ret < 0) + return ret; + + ret = clk_enable(&clk); + if (ret < 0) + return ret; + + return 0; +} + +static int owl_serial_ofdata_to_platdata(struct udevice *dev) +{ + struct owl_serial_priv *priv = dev_get_priv(dev); + + priv->base = dev_read_addr(dev); + if (priv->base == FDT_ADDR_T_NONE) + return -EINVAL; + + return 0; +} + +static const struct dm_serial_ops owl_serial_ops = { + .putc = owl_serial_putc, + .pending = owl_serial_pending, + .getc = owl_serial_getc, + .setbrg = owl_serial_setbrg, +}; + +static const struct udevice_id owl_serial_ids[] = { + { .compatible = "actions,s900-serial" }, + { } +}; + +U_BOOT_DRIVER(serial_owl) = { + .name = "serial_owl", + .id = UCLASS_SERIAL, + .of_match = owl_serial_ids, + .ofdata_to_platdata = owl_serial_ofdata_to_platdata, + .priv_auto_alloc_size = sizeof(struct owl_serial_priv), + .probe = owl_serial_probe, + .ops = &owl_serial_ops, + .flags = DM_FLAG_PRE_RELOC, +}; From patchwork Wed Jun 13 04:15:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138411 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp201254lji; Tue, 12 Jun 2018 21:22:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJLhKpIrZKwT3lUrgw7aWFrtfBmANcKIvElVsKwv6v3tH/0io12xKHMZGezB5w3McI2WCve X-Received: by 2002:a50:9f6b:: with SMTP id b98-v6mr2256395edf.219.1528863758892; Tue, 12 Jun 2018 21:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528863758; cv=none; d=google.com; s=arc-20160816; b=HULQZU718Nyg4a7Kh25V+zPhjMAODoy7EyDlrXLxgiS+AEI63PmZBRiklQMhKtnLZ4 SEEZKkpawGfcTX4bi6ZrjeO4zu4uWTIhX1W5SOxEVBW9BbO1nZuxP7hlz/3gwAwt5B6I nD/dROsMUUigWARJoHVp5sa0kCzLb169wZQFUobx7pGCRXS4yJWgzS1zovxAY/IbGrWX neg/uYp0noSGVv5h/Pj886u6J9g1kv73jQsEajSGxgUBRWHSSyDzXBvjhgsDCd2E0n3h GyGjySERhz7MeFTVomE9BCzZDyEZWl47hhhAkPdfzItkSjsznPhP7obDX9869QoA5p9T Dvww== 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=9nQWa02n/wPu+4NOwuZBDrZW67iu9+nlT59Thr9xqTE=; b=eAqTBo3tlkMXGrrfSAjNxGn41NZIYFHC4Z2OgqfuEFVO+1KLDc4y6Ya8V2JsW0MGVb ANTzQhL5moUnM1kxMvc8zQnszMZzd7BiLQjrt+TZ+CznHPRa8mAjyYxGcqTFVFdf3AgI WzFof69B6+KmQxpgYGbv5g4iafLUFh+AptM+WiJC1j+8H/9JMgkfbiChQZWNYyScfrBr Nvh57VWxvyHon4OoIPeRQWlh301/y+/pHIA6SxmL4fWnXbW3qGl/sZu4ZhIA3BNcGks2 egkdTZc8mSex6hPKFwRV32dpAKUvtalZwvRlWd9/G1xJKosWNDrdz8oH0bhMtcQrnRYs rv2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dWxEHYW3; 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 h6-v6si1808679edb.177.2018.06.12.21.22.38; Tue, 12 Jun 2018 21:22:38 -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=dWxEHYW3; 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 44C44C21E16; Wed, 13 Jun 2018 04:22:02 +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_H2, 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 7C708C21E2B; Wed, 13 Jun 2018 04:20:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 60DB1C21E53; Wed, 13 Jun 2018 04:17:21 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by lists.denx.de (Postfix) with ESMTPS id 07770C21DA2 for ; Wed, 13 Jun 2018 04:17:10 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id b74-v6so673044pfl.5 for ; Tue, 12 Jun 2018 21:17:09 -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=VkL6qS4NwmMucrnyVeQgEQcqxyBMq198pb4L5/vGEpY=; b=dWxEHYW3hJ7IU6Tz12fRFPMN7O681wl7rbwRnq+fCepcU9k68V1CBnep0mp8koXevM wE5QAtttba+FbvXYaJIbAAc+737GIJRHSht+5mLqa2G4C6dMitKNJlRG8grHMHBOzOnd sr03S8uibgja5TotHwuCa5SvcYjwL6ho0Og/s= 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=VkL6qS4NwmMucrnyVeQgEQcqxyBMq198pb4L5/vGEpY=; b=FKjqv8J6k606obscPZ3QRjnOGYYh2YKWFMy4uT1axxhwd+byMAGzlEduaiNIkWtzOm QF9EC1lTj+cqWAlHPF9H9u/UymrXhnqGGLcR8EJFggsEnxj5iACd8JM54GZ4PkNz+aZf peFl078DCTZd3LxOZ7EBDeQHYNkUmlSs1qAjoJQ2eWfwWURKJn00j1I/oIijYgx5NsjI dFM6wM+BBq1UEiaWO3Og44IiydXqqARCLY9S7Zy2tVfdZptnRs4T6hzPQ61PmOpes4aO /o5rayR/aPFryDWxQKHrXyqUEAVxpRz9IQEK9K4eLVRGCtrtC9kNSTNQQPyPghsniIsw COTA== X-Gm-Message-State: APt69E09FOBlYZOog97WLipS4RKnBkP09j7aySEiRtBb3Qxi/GoeBRjw VykDM400GHGm1e79JVbon2yc X-Received: by 2002:a65:450c:: with SMTP id n12-v6mr2715582pgq.242.1528863428618; Tue, 12 Jun 2018 21:17:08 -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.17.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 21:17:08 -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:08 +0530 Message-Id: <20180613041508.28958-10-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 9/9] MAINTAINERS: Add entries for Actions Semi OWL 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" Add myself as the Maintainer for Actions Semi OWL family and its relevant board, drivers. Signed-off-by: Manivannan Sadhasivam --- MAINTAINERS | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 642c448093..0f70cb04fe 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -145,6 +145,15 @@ T: git git://git.denx.de/u-boot-pxa.git F: arch/arm/cpu/pxa/ F: arch/arm/include/asm/arch-pxa/ +ARM OWL +M: Manivannan Sadhasivam +S: Maintained +F: arch/arm/include/asm/arch-owl/ +F: arch/arm/mach-owl/ +F: board/ucRobotics/ +F: drivers/clk/owl/ +F: drivers/serial/serial_owl.c + ARM RENESAS RMOBILE/R-CAR M: Nobuhiro Iwamatsu M: Marek Vasut