From patchwork Mon Jun 11 04:42:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138212 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3898425lji; Mon, 11 Jun 2018 03:54:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ/X9vG6gKnfxPWvXSEjSqyaxnJk5tBA9EVXkY8gaTHTrtUzk4Di1ffEMv0Kfv8Hn36qZs1 X-Received: by 2002:a50:aa5d:: with SMTP id p29-v6mr18025947edc.233.1528714442592; Mon, 11 Jun 2018 03:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714442; cv=none; d=google.com; s=arc-20160816; b=AUbGg2eIXNvRUWVCxR2/sP84yswUYTXeMyt8eB/lS/8lonwMxSXxqeakP88ISnXbpF CYFIEo6cEMb+7Aigy/O/Mmwyw0wneKfJ3sBomFtnTXilgMLTiABsQF4UVtrjY+3GvS1q omOwaYukBRoVjnxM5Aubxpg69W/UqDZq6Lo3KnRRZAXR+VHLq6gEP6qGJyuhWkwag0JU +NH31gDKK8HcAACGKxRvkrBvLfLa9zGiYunw09AjMu52m8bQY7LG/TTiWOst8tP33YcC UYD5dqnC4LbqnkbQfmjzNye5j/RbWQSb4f67EQioiT4l45j9LVHZooPfgOy6XKhycZaM XNdg== 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=xJHjOX/kx+BOtwzRf7YKqJVVH3wILEMjbI9Mf4hsPpcdmKK6Yhqbjl9yabuek2PB0v AOfuPNHq4YkqlRJNEBq+wXdc3tVmM321l1+e4xGE3Gcp4X6Pis00AL4MYoBp6e4FreKn sy8R99s9ZubO4qdMFgVrKAk1hWcJSJRe/1a6ee9ku1DcTZCmnpQt74DDOz4RS4xP5AaB GokpnqZmWCmGNP40ryz6j8hTzumU+GntOc4fUB1S0x1dRk8ulVvOr7NkIGRk7PMxu2YC A96/UPB+5PgkS8vVllR4BVhkBo59f0iqB5Hi2ThxfAFLT/cF3NdC/K53T6YsW+As3tSy 9M4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IPJ72tdy; 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 g61-v6si4565925ede.420.2018.06.11.03.54.02; Mon, 11 Jun 2018 03:54:02 -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=IPJ72tdy; 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 31606C21E12; Mon, 11 Jun 2018 10:53: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=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 EF176C21D72; Mon, 11 Jun 2018 10:52:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3F532C21C27; Mon, 11 Jun 2018 04:43:33 +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 E9868C21BE5 for ; Mon, 11 Jun 2018 04:43:31 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id q1-v6so9545422pff.13 for ; Sun, 10 Jun 2018 21:43: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=7bGRGmCRcrjmX7BvvOf4/7Shw8EKwF0SBEYrggTl5x4=; b=IPJ72tdylSdlCAwdgyuqKeTG2lqp2xn7Thc5hkQdgvN98AvJp1yVhXDiSLVquZB93H Mrvs/CjbFEWIjBPnKC7xREMIfDX2nCHcIDLUG0cbrE4hJ3FE/u/6o8Sidr1X812XDAoY j3OLlbKULj1w8ZtXhWcgxBGn7M6lb+qwehZJ0= 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=c7C8g6xeaPWDRtl1K8wE3G1n2u1JeA8KKZ8us1qNdzbVAeIRkt4Izd6ynh9C7207BM if35f4S+gfAdtKU+SGzhIS+Dl1N5ajD4K1TWKRNssrk8msTwm1wY+K5e5X9JH0YO+1FX qJuoqE41jk3haod+wTIzCpT2un8JQRRLKpHB92AjcRU9/TARHMG+5dGOx8VB12wxVMRz JJ+uy6VEL3dBmrSabECKlIE+LgKdVkYTMi/8ouN0yyOiPJECTO8u75ZdbiyZKZcVRQmI /1oxUlG2B+Ymr0HQrP7FaNtq/XqkJIftNgepP83O3s3ePONU9z7DukzLBhVesxCInKa9 QOJg== X-Gm-Message-State: APt69E0XX0P3P7QqzeTIF9wB2h0PM5i296hHYH+f5h9U9jdkE7RpnLYu Q/uu33S+fU8os69VXLGejld3pxYi3w== X-Received: by 2002:a63:a809:: with SMTP id o9-v6mr13676207pgf.313.1528692209935; Sun, 10 Jun 2018 21:43:29 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.43.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:43:29 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:12:57 +0530 Message-Id: <20180611044305.4009-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:50 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 1/9] arm: Add support for Actions Semi OWL SoC family X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This commit adds Actions Semi OWL SoC family support with S900 as the first target SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm/Kconfig | 9 +++++++++ arch/arm/Makefile | 1 + arch/arm/dts/s900.dtsi | 23 +++++++++++++++++++++++ arch/arm/mach-owl/Kconfig | 6 ++++++ arch/arm/mach-owl/Makefile | 3 +++ arch/arm/mach-owl/sysmap-s900.c | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 74 insertions(+) create mode 100644 arch/arm/dts/s900.dtsi create mode 100644 arch/arm/mach-owl/Kconfig create mode 100644 arch/arm/mach-owl/Makefile create mode 100644 arch/arm/mach-owl/sysmap-s900.c diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index dde422bc5d..ec0bb5a42b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -699,6 +699,13 @@ config ARCH_MX5 select BOARD_EARLY_INIT_F imply MXC_GPIO +config ARCH_OWL + bool "Actions Semi OWL SoCs" + select ARM64 + select DM + select DM_SERIAL + select OF_CONTROL + config ARCH_QEMU bool "QEMU Virtual Platform" select DM @@ -1335,6 +1342,8 @@ source "arch/arm/cpu/armv8/fsl-layerscape/Kconfig" source "arch/arm/mach-orion5x/Kconfig" +source "arch/arm/mach-owl/Kconfig" + source "arch/arm/mach-rmobile/Kconfig" source "arch/arm/mach-meson/Kconfig" diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 680c6e8516..f15b2287df 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -66,6 +66,7 @@ machine-$(CONFIG_ARCH_MVEBU) += mvebu # TODO: rename CONFIG_ORION5X -> CONFIG_ARCH_ORION5X machine-$(CONFIG_ORION5X) += orion5x machine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 +machine-$(CONFIG_ARCH_OWL) += owl machine-$(CONFIG_ARCH_S5PC1XX) += s5pc1xx machine-$(CONFIG_ARCH_SUNXI) += sunxi machine-$(CONFIG_ARCH_SNAPDRAGON) += snapdragon diff --git a/arch/arm/dts/s900.dtsi b/arch/arm/dts/s900.dtsi new file mode 100644 index 0000000000..3bd14b82d4 --- /dev/null +++ b/arch/arm/dts/s900.dtsi @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +// +// Device Tree Source for Actions Semi S900 SoC +// +// Copyright (C) 2015 Actions Semi Co., Ltd. +// Copyright (C) 2018 Manivannan Sadhasivam + +/dts-v1/; + +/ { + compatible = "actions,s900"; + #address-cells = <0x2>; + #size-cells = <0x2>; + + soc { + u-boot,dm-pre-reloc; + compatible = "simple-bus"; + #address-cells = <0x2>; + #size-cells = <0x2>; + ranges; + }; +}; + diff --git a/arch/arm/mach-owl/Kconfig b/arch/arm/mach-owl/Kconfig new file mode 100644 index 0000000000..f695c16d1e --- /dev/null +++ b/arch/arm/mach-owl/Kconfig @@ -0,0 +1,6 @@ +if ARCH_OWL + +config SYS_SOC + default "owl" + +endif diff --git a/arch/arm/mach-owl/Makefile b/arch/arm/mach-owl/Makefile new file mode 100644 index 0000000000..1b43dc2921 --- /dev/null +++ b/arch/arm/mach-owl/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-y += sysmap-s900.o diff --git a/arch/arm/mach-owl/sysmap-s900.c b/arch/arm/mach-owl/sysmap-s900.c new file mode 100644 index 0000000000..f78b639740 --- /dev/null +++ b/arch/arm/mach-owl/sysmap-s900.c @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Actions Semi S900 Memory map + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + */ + +#include +#include + +static struct mm_region s900_mem_map[] = { + { + .virt = 0x0UL, /* DDR */ + .phys = 0x0UL, /* DDR */ + .size = 0x80000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE + }, { + .virt = 0xE0000000UL, /* Peripheral block */ + .phys = 0xE0000000UL, /* Peripheral block */ + .size = 0x08000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | + PTE_BLOCK_NON_SHARE | + PTE_BLOCK_PXN | PTE_BLOCK_UXN + }, { + /* List terminator */ + 0, + } +}; + +struct mm_region *mem_map = s900_mem_map; From patchwork Mon Jun 11 04:42:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138222 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3901698lji; Mon, 11 Jun 2018 03:58:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLidQLMCtxQjUxsqPOO8c37KcNnvlPD0emQ47S/1JbMLVg1mgcBiUXnrun4J8pZ8UbZRCkJ X-Received: by 2002:a50:91d5:: with SMTP id h21-v6mr15456277eda.3.1528714700037; Mon, 11 Jun 2018 03:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714700; cv=none; d=google.com; s=arc-20160816; b=yCj+UA3325zJxpYm03JJuXhkyWFwgXQHXK5pXau5mA1BeSctdA+Qm/lK+06lyVFKvi wjxEfY2skR8y07pWtLjM2kcrVMWZ973GgqwDvG+Ghx3asMdpbHk1VfhLfcTAqqRipPVS MatemvWDZgwt4gdHMa98fdhQeWkuVmaO27BYO1Ltth3hkVrh3JKOoAAt8vHdjNBTQcuH mLs5WaXgVd+5n3NjRfavsADLzONDDwPoRnASAC6eWV5alZ+XdHyyJSghMIPel7tFUcid 4693Dedx+CfFrOUwBQqmsJ4zM7XlPvaFfxri00DJdTR0h5qTt6bxdtO9SBY/f4vogJ7V a+yA== 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=z59xKfW99erZyyqTrAIinHQ9vBmqyKck068hEnkz9tI=; b=exy3zfAPA4pRB/0/FD3VckbRun8n3d7nv+k7R987vl/tynBuUS03Wz+T489oNxV5uJ sDcPcPPFRReFI8MtMZBebZt6R0bRF9RVau+7a1de+ZPZq2Vj6wv/fERJWYreNcJnX/Fa f7q+08yICgjBEEctMT0qj3JV6hiKHcc/dOy+GZHYp+tUTMVuMvjlgmsMMMnx277E0+Jv SIsLsURJmnD6nuSLaXoru0kfHYGdUJ6+tyhCPWBQPGhaVohsq2g1AjFQP5O4DWhmEUA6 /N7ZHkbug5XXl2Va6nqUfAml8D2DJhRt1bm7PDi8X4H6FuSNx1i/F98mF2WLwgLKnR+U yIQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hAaK3u5Y; 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 r24-v6si1522857edd.102.2018.06.11.03.58.19; Mon, 11 Jun 2018 03:58:20 -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=hAaK3u5Y; 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 99CFAC21DE8; Mon, 11 Jun 2018 10:53:54 +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=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 C6AA0C21D56; Mon, 11 Jun 2018 10:52:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A655AC21C50; Mon, 11 Jun 2018 04:43:38 +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 D306AC21BE5 for ; Mon, 11 Jun 2018 04:43:37 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id q4-v6so8070701pgr.1 for ; Sun, 10 Jun 2018 21:43:37 -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=w0VlMCxnDuZEJwOAz4zvxi6yyBTqnZPl1S0IV/NJ96E=; b=hAaK3u5YkB91vP576xEQymyPb/kL+CJ/PMhGtFS3tcBbB+MeItC7kr2G3F2sbqBcyf CZafyaOUt3ILniBZWJalm0ak7vkyVpt+fXKf04LhQRptEhuwDOP3UX232Xl7f1NdD6+1 Nyo32Xsdw+p6kEMPDPMqCN7rSg6PCQnFNMpr0= 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=w0VlMCxnDuZEJwOAz4zvxi6yyBTqnZPl1S0IV/NJ96E=; b=LRbtP7hTyQTjuN14VpHCgp8GzpOIiFE7hDIPIDZeVC+a5mbgkC/Zr0ZF+9Tw2M1Qbj pZwon3Sb6kM7vWwQM34gHS2IRwSXg3GT59AdyHGgERHFES3OHMZ8zf0Yi4Lbh1sWHb+r zT+2T2yQmeDKcOJybUSdt/ZkEHFkAkEbiBpNHw69jK8CntlmOTfzx4Y6xb2m5G116D5H kKeNobPXZse1I1LJ+dnCgQDrDOh4gAOQFsCEuRzEtimeUDBpb+OjZL+LE5YbsbetlITu 31sTujijq3zDRVDK7XIbDK5HxGh8VfYgqnAPSuSME2GJNNNhaP2AIFNaQkbhSGV4F28L K0MA== X-Gm-Message-State: APt69E2y4BPf99P/+9PDECqBiepMo2MICQxqwln1GGK1C57uV6G/HI65 X+owNS7EW/Jmqv6EKkZ2QDFVaEa/8Q== X-Received: by 2002:a62:9bc9:: with SMTP id e70-v6mr15749428pfk.15.1528692216168; Sun, 10 Jun 2018 21:43:36 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.43.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:43:35 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:12:58 +0530 Message-Id: <20180611044305.4009-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:50 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 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..b0b506dbb4 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 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 Mon Jun 11 04:42:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 138215 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3899120lji; Mon, 11 Jun 2018 03:54:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ3Pw3sImVix6bw9g3QZgtmW2v8LPL7z9BFiKjRaEy2b1lkhzEwmEZma+0y7tBVliK6xwDn X-Received: by 2002:a50:aada:: with SMTP id r26-v6mr18301555edc.124.1528714497051; Mon, 11 Jun 2018 03:54:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714497; cv=none; d=google.com; s=arc-20160816; b=PWkzUoH40lbvUcW6sZ0NjwLmKCoBpWgFmPLssieMolxbowY3wCQaY3eL/p9/Jrgj5t OKNZRLHM+CtsVSEDgViUK5SU57WQvPSmUyxv3uFB6pRQztUeSyBQaMESusDEvlmJJ2fD CYLK5MJGaCGPlpV1TKR8Huana9OvZd0jzkxSSdTSIXNq6QcIcOetAdBQhNNgRjXoiSY8 0v9PBc3yfRk5f+CIVggVkOVIYo9+Ps09eunehoVGJTIgXIKJu20+sNhAkEM12DpCIWh3 T6LDB2lpesDUNmFnDt2bZEgk8WUBZM2JONKrFhDfunlQfmuBLmMwuZA+tIWXh5JewYNp ZeOQ== 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=U3XelDC47x3KnmKYMPZeaa3lQ8AMDwRAiQFX7eWdVLY=; b=AD13fge+mLaSTRH7WkycIRIBCAD2rJ1rXSgbBQ6q2a7GmVGaNQ2JUFQpda3Fde/BoU MgVo/j293nr33XS3Q+DUNtU30etYpNJXdkfLP/K7UuRRNef5SYfg8d0N/MYhvAboiULH g8sdmRgaBCLUWFdzPFyRWlOeeLLsvF7l7RTo/XPWsM5CetrbUfqteM+c4BI/ogUeO7JH zaBVoeSKSK5jJoLK2b+s1Q0duBmqDV4a6WA49CbhNtzvq7Z2/lTCww7hs6hHGFbq4a+A APi4vTMHTflF3cFfBauo+Tr0Td9xiVL/SabYEmadMvXKEaEuaxWVkEiE/0geLpRAFkFM nAyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gxsklQJo; 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 92-v6si884013ede.194.2018.06.11.03.54.56; Mon, 11 Jun 2018 03:54: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=gxsklQJo; 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 7FF34C21D72; Mon, 11 Jun 2018 10:54:19 +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=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 A487DC21E02; Mon, 11 Jun 2018 10:52:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id F1FF6C21BE5; Mon, 11 Jun 2018 04:43:44 +0000 (UTC) Received: from mail-pl0-f51.google.com (mail-pl0-f51.google.com [209.85.160.51]) by lists.denx.de (Postfix) with ESMTPS id 5F314C21C27 for ; Mon, 11 Jun 2018 04:43:44 +0000 (UTC) Received: by mail-pl0-f51.google.com with SMTP id w17-v6so11578784pll.9 for ; Sun, 10 Jun 2018 21:43:44 -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=2G9lB33C4TgYRlUGbWuXy+SkDc8MMpTuCyDve3NeWhA=; b=gxsklQJoPvpbwG34ZotI4WcL0WXEC3FePs8qqYX0MC4vvXe6JuQTJit9FRmoovftEE gZd2vb3Eopgf87hEAYPdodUJMazFKgwb0CuB5qY2RFD2DFvL0GPsO/gYAV2KyLomGNAz hLSVLblcWcD+vMPhADo4wQmR8QT72sKO2jszA= 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=2G9lB33C4TgYRlUGbWuXy+SkDc8MMpTuCyDve3NeWhA=; b=L2BW0L7ARgqqhISDaV9JFP0QmuNEE5Xi5pqCwP1sCRCUiuntzHDCvwQpXEPdQkZ6zv l8f+nVDu6GJ/mM/rbjWYAfhfHKQbjQ4BMsrE66NYj2/aCylBXz9sZYINj1H35ps2lFFJ 2vnk2FJvTT4RyS+ob39wNP7qGTfnoy9GX2bnKzuNSCKeZ+cEU5SPKBbAGd56i2bndLlE 1itwGUPT3IIWxPCWCHo4/0D7l7uYKA9w5ruoI4RZEjsgyRsnfK/WkWCEpgXInBarm3ek KnSFMIEFv4yqv16BKilcvkazkzw3dqc3xox6YXZCVbGQUJ+yRVwQNYoRbmTTqdrAFHm8 qgPQ== X-Gm-Message-State: APt69E3GO8e65ulkjk9h8lQHa0B1toGSsy38xYxfz+ZzHqvCu/39WCKC 8ME9FSxHPFKyXLe/zbrwVZvei5jy2A== X-Received: by 2002:a17:902:b7c4:: with SMTP id v4-v6mr16806132plz.188.1528692222812; Sun, 10 Jun 2018 21:43:42 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.43.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:43:42 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:12:59 +0530 Message-Id: <20180611044305.4009-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:50 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 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. --- 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 Mon Jun 11 04:43: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: 138220 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3901261lji; Mon, 11 Jun 2018 03:57:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKTUnIuq5imWmCSQaqpQAScGhoSFvnMFo5QS4DetD1riexXT7DDaugFS35Ff7+Djr2NlVJT X-Received: by 2002:a50:9f6b:: with SMTP id b98-v6mr18471766edf.219.1528714662783; Mon, 11 Jun 2018 03:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714662; cv=none; d=google.com; s=arc-20160816; b=Crdz9d8je6IxX6Ojb2Q2DOXGYw20NPkPZNAHtGjyIC7B/BgV0B/lsOD91NNdEHHNt+ 0Ff/ErzBhLWiQLVqKnmeMPmUgrHjxugI4ZDnokE6as5lzGkQ3XKfvIj23ghuAa4pL5LN pyZRTjMa3Koo/FNMmSb/3rzoL6pdwz68To4zqXuaAWV5x4/efZFlmdba7se5geQH+M3V 4ZZOKxWdggbLkGt4mS3mifUsVzigXuMzcKA2fivWj9p3zBY6Fn5n6NrRAoHNEZAXulHX YlRbSu0ub4BHMkx2JzqXtTyJKP6PqysluLSNAO+z41o4VkJd/sXGd/80a2lcVGYOZfnu 1Zlw== 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=zH0FmynXCIULKZRPQFHhKdrYKVwoU1xoXjzbpulXFcRDRrN2Qmi9ItaZ9dOQAyJ8/R c0jVgVbDACqy7Tt8RVpujmc4gIbg3ud+z0Fo8bT5+kC77O/CzfoJWxDDCN8ew3ThKjAI jLTD8vxDOyVAb/F00csEPTm/f5AZvLxeJc+FyCS9BdcJr+RfRv5kmImEEgnCRLt1wAiO gNDT8WwWGLmTmbBIA4MMGE2SkjlWnHL8uy5D4EAIqoZ2FvTNC3aIIn7qyoYHkBiXl/1U C39nYdxPxtkUiJ+9SCW/vZLRuglYoeIFQLjzl7f9FCS38JGA+qbRABTc9Kh0hu4enDpn pmrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MkWXTvde; 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 g18-v6si4013638edm.273.2018.06.11.03.57.42; Mon, 11 Jun 2018 03:57:42 -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=MkWXTvde; 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 5A303C21C57; Mon, 11 Jun 2018 10:54:37 +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=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 68702C21D4A; Mon, 11 Jun 2018 10:52:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6B980C21C27; Mon, 11 Jun 2018 04:43:51 +0000 (UTC) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by lists.denx.de (Postfix) with ESMTPS id C186CC21BE5 for ; Mon, 11 Jun 2018 04:43:50 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id c10-v6so3507150pgu.9 for ; Sun, 10 Jun 2018 21:43:50 -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=MkWXTvdeAlfFHv7cZ/Lt/iO9h4m3WpOSpodrXRDfX5ZxbLhNlU1XgUpL/iDPKA77iB OWQM6UrZsA8Ux1eGMN1+bfXT61BjFxavhw+brF6wLWfXSXELeyG7SJwNCZspGZw0UcUQ kot9XrvG1EVMYwPdk0FOGromA/jHw1C3ieL/8= 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=aWi1EbxJkjwXlEcqQ3dPEMgX2k3OfFa/q1/mZtKUyz2M4AKD9YLTcM/Rdu7FbpDISi aeWb5qmqLViF3Qp458te2Krcxl7pfIk7H3sERbCumnLPUXawgnmn2RvpZfRsFBGPTbhL wWJt0fy6KjTZvTkb5v3dhngZuP2rhprX14+WMUcxKMkDCAfNsAXAL2MOe7e73dqt8b/W yuJtZ8VEjN0Pu8uQJBUHhQ7wVV8dxX5wcFRyvq0Rjup1be33KL7Pw9FuqDJFfN1B6umg DGhIdsG8NmqEOv63VXLNtjCZYeukhs6igtJg5yHCpYmLQdfN+9DtdFIKctgtIJDSL0oJ CFiA== X-Gm-Message-State: APt69E3Jf6IXNMuBSrJeojqFh5LwS5X3LmlrxfILcZgFFLQRoHuUujPY ZXckJk27qVumotEzf/YwEX5PoBjtuA== X-Received: by 2002:a62:18a:: with SMTP id 132-v6mr15971159pfb.62.1528692229159; Sun, 10 Jun 2018 21:43:49 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.43.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:43:48 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:13:00 +0530 Message-Id: <20180611044305.4009-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:50 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 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 Mon Jun 11 04:43: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: 138225 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3902487lji; Mon, 11 Jun 2018 03:59:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJAKUv0mK54tM6Aj6Vxnc9dOx1B8Hqz8G8JnOd8uBnqnlJvEM8yyu6So652qN01HbISfvO0 X-Received: by 2002:a50:8a02:: with SMTP id i2-v6mr9518074edi.89.1528714759467; Mon, 11 Jun 2018 03:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714759; cv=none; d=google.com; s=arc-20160816; b=SGQjcoYylsBq1Sql00M+1Lvw3qnQkqimqKo5TmxmQQaMgNNEr1ryKtDfPmD/gEpNKX B0lbpjbtSXEiBCP9nQ4qMet3F93dqPqI8QfLl7ZeYLLagRO6pwuU1P+T8qXL2uGLGuta knAvGybIg3e0Jv+vhN95i5KeHGPrUzitTXI8kfi86P364sonagXFhKocvzZuM8an7rjp WXo/pYt3SfOU/2BKxCD/4CWNJRiU2P9TL1TT5+ArAuRp0ovVb9psCcIxBu9QuCn9U9DI L6G+0WMO5K2EPV9rJIEQnX5V9jbp03kc8u7+Cz8qyHKiXHrNPXweobF6uf9JPzC26opk NDSw== 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=Nyk/qqPBhMbZeKC5nkp6vetlPCuBEvshNAcsqEyBZgQ=; b=uy/Gxg0FcIb3xEVjVYJ7M+p3j9rPqesZ3NLOY/PkfrOyDF/uK5fqCRhw/5KlhBYY2g SNLBwogfbH5tXvp7VLYQaHh2a2q9P0oifhdeOYPU5jQp9gXUuznUU0/9Al1ELjOtT/DK DHThaLNsZf1kRiMXiQG9QmlO3BOhrIq4h/y1GlT0u27u3j99I5E1CY3EOQ4sVMAvDR7b EwkpUQA3pXNjhjNFMJvjGfwSjP6feM5mdpZwNM1dca/lp0AkF3jpi4msclU4SzWzWvQc Cqb12BmS+LvZanb7Z/EMb07As2D+aOVgdu8z6IZxoRxKfl/zEOG1Cb5CC/GGL8CcLpb8 918g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P2f7FlqS; 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 l9-v6si1348508edk.462.2018.06.11.03.59.19; Mon, 11 Jun 2018 03:59:19 -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=P2f7FlqS; 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 0A9D5C21DFA; Mon, 11 Jun 2018 10:54:54 +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=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 37C87C21DAF; Mon, 11 Jun 2018 10:52:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3FBF2C21BE5; Mon, 11 Jun 2018 04:43:59 +0000 (UTC) Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by lists.denx.de (Postfix) with ESMTPS id 70502C21C27 for ; Mon, 11 Jun 2018 04:43:58 +0000 (UTC) Received: by mail-pl0-f66.google.com with SMTP id 30-v6so11563232pld.13 for ; Sun, 10 Jun 2018 21:43:58 -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=6C8nPJNiwald6vRz8AWrdVNfxPj6F6MTCXgBvDrP8vI=; b=P2f7FlqSb3ufAf82TCACqvUIgWkixqLPNgVaSXL7Qvb2f3EZigRuBXrNF8IePj9+ND 9m1EM0bKHzpMWaRIRx1o1QnYdR4vCNpz8iDSa0qB9aUy3bq3yDP82buVfWVpDFhQVJMa dUUZMj02yy5emeMjM2rscQmFxOp+O7cP6pP0s= 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=6C8nPJNiwald6vRz8AWrdVNfxPj6F6MTCXgBvDrP8vI=; b=pM6vGgbLjCAsHR0EYF1mtF3WTcg/ZWiZ9bCpZWsnLxEoRpDlJBvAMSvaK2OgAaxf96 s2oW5Ilk5Ih8AFNK7VNbxxeUWpIcLTXv9AT9Fje7XFSDFAubElUiHBwN4KdRqF4VbyYp 7klOGqHBbnGlwPwDBE3wfYF6XYdKWB3yC46n/z/CEdGWT7w15pLLxmEqVvvwoBgmswhn HukRpR59hFEilHizwb3f+5DyGE+0+q+5Kqx8g5uiLXoUOcHfXTrnkkmti6fyWFf7IKnb IFUjKJJOC0USX2DKhuUuj2FKCIZidL7BvIF8vHAXub7zNXO8DFbuo9nH0vTxXEPgVGeJ /bqQ== X-Gm-Message-State: APt69E2Gng2dC1dE++DONSkHEi7zTi5BknzI8DHdMZ8hovTwDVTvxfTr TlLqZtApGD4uTHWaqxWGjnLjZHZMkg== X-Received: by 2002:a17:902:b418:: with SMTP id x24-v6mr16779065plr.2.1528692236800; Sun, 10 Jun 2018 21:43:56 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.43.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:43:56 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:13:01 +0530 Message-Id: <20180611044305.4009-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:50 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 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_owl.h | 61 +++++++++++++ arch/arm/include/asm/arch-owl/regs_s900.h | 64 +++++++++++++ arch/arm/mach-owl/Kconfig | 2 +- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 1 + drivers/clk/owl/Kconfig | 12 +++ drivers/clk/owl/Makefile | 4 + drivers/clk/owl/clk_owl.c | 60 +++++++++++++ drivers/clk/owl/clk_s900.c | 104 ++++++++++++++++++++++ 9 files changed, 308 insertions(+), 1 deletion(-) create mode 100644 arch/arm/include/asm/arch-owl/clk_owl.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_owl.c create mode 100644 drivers/clk/owl/clk_s900.c diff --git a/arch/arm/include/asm/arch-owl/clk_owl.h b/arch/arm/include/asm/arch-owl/clk_owl.h new file mode 100644 index 0000000000..1ad8e80e28 --- /dev/null +++ b/arch/arm/include/asm/arch-owl/clk_owl.h @@ -0,0 +1,61 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Actions Semi OWL Clock Definitions + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + * + */ + +#ifndef _OWL_CLK_OWL_H_ +#define _OWL_CLK_OWL_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 + +void owl_clk_init(struct owl_clk_priv *priv); +int owl_periph_clk_enable(struct clk *clk); +int owl_periph_clk_disable(struct clk *clk); + +#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/arch/arm/mach-owl/Kconfig b/arch/arm/mach-owl/Kconfig index b0b506dbb4..199e772988 100644 --- a/arch/arm/mach-owl/Kconfig +++ b/arch/arm/mach-owl/Kconfig @@ -4,7 +4,7 @@ config SYS_SOC default "owl" choice - prompt "Actions OWL SoCs board select" + prompt "Actions Semi OWL SoCs board select" optional config TARGET_BUBBLEGUM_96 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..b21f23002d --- /dev/null +++ b/drivers/clk/owl/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-$(CONFIG_CLK_OWL) += clk_owl.o +obj-$(CONFIG_CLK_S900) += clk_s900.o diff --git a/drivers/clk/owl/clk_owl.c b/drivers/clk/owl/clk_owl.c new file mode 100644 index 0000000000..c289825dab --- /dev/null +++ b/drivers/clk/owl/clk_owl.c @@ -0,0 +1,60 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Actions Semi OWL SoCs Clock driver + * + * Copyright (C) 2015 Actions Semi Co., Ltd. + * Copyright (C) 2018 Manivannan Sadhasivam + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +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 int owl_clk_enable(struct clk *clk) +{ + return owl_periph_clk_enable(clk); +} + +static int owl_clk_disable(struct clk *clk) +{ + return owl_periph_clk_disable(clk); +} + +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_owl", + .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, +}; diff --git a/drivers/clk/owl/clk_s900.c b/drivers/clk/owl/clk_s900.c new file mode 100644 index 0000000000..8fe225b0de --- /dev/null +++ b/drivers/clk/owl/clk_s900.c @@ -0,0 +1,104 @@ +// 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_periph_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_periph_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; +} From patchwork Mon Jun 11 04:43: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: 138227 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3903397lji; Mon, 11 Jun 2018 04:00:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIjSLPvGthxT2rA54QFi+MnNQ5QFFElfnd3PDeUWSnU5LvINuatcvzIMlxI9MkTaaAs2qLJ X-Received: by 2002:a50:b0c3:: with SMTP id j61-v6mr17837832edd.249.1528714818877; Mon, 11 Jun 2018 04:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714818; cv=none; d=google.com; s=arc-20160816; b=YTsUZqzw/BPtaZMf5AfoC9gdaQOFoFlFg1wv0W8MJyXJdrrJc9FmoOFbXIWjALg/wD ccThIWqNgUBhMvqWkrB7quQzrh9XWuDTFV0ZeaSk7tuXwSPXYpM+9bbehnt50noevfYy 0yLGgldemBRP7J9nC3ajXrVII2akKx+4vjYAhJH/gYuWLyinfRRfiR/PNj71W/CKi//4 VO0JiA2u7lRTJ1cMLBfnYLYYxLkgZA5I29ER0A4mWSqnE6KdHbYNM60krPiNRLLbWG0P ZJVmBJou6JptDdHR/LOgi3jgpQZB9bz1olwIwToYQidU1lU28F9QalD982NkDRBlJr5g 2pTg== 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=iP2tVfji5ASkw1r/UoxNwfYDGUe464RZrVw25jNEJ+oVcQzql5y+TKdl9Y1pHFihSr x8WkXcj7WI8oQmp20fzsZklqBwtnkaOs1SVb5/392d151EGgRVDvhpienucbADDsfziT jZ9+00PFNsq+AB5fSKkuaSJWxbSCtL9+4gBbEiHy/tIxpP+vmw6OFXVQSNElmN1jVmw/ TmWRPl4XlK3KBhpg//2JGSllVU4nhZaDpap6Gq8kmsx9xjaHb+fWxsNvkSe69FcFIvoq coFSZYVngKvvXYN7Pbh0ZXVT4nBEV/XPUa5QHHgFWu8I84UJa2YxKrjvegrZW8QiyZeY fWHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Yp+gCehJ; 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 o1-v6si320453edf.351.2018.06.11.04.00.18; Mon, 11 Jun 2018 04:00: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=Yp+gCehJ; 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 67067C21DA6; Mon, 11 Jun 2018 10:55:22 +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=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 1B72DC21DD9; Mon, 11 Jun 2018 10:52:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 40CF3C21C27; Mon, 11 Jun 2018 04:44:06 +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 A12DBC21BE5 for ; Mon, 11 Jun 2018 04:44:05 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id a63-v6so9562152pfl.1 for ; Sun, 10 Jun 2018 21:44:05 -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=Yp+gCehJt+sjUqIlKVBqyw+KTQOVoEE85lTpgcQkLMGrUUQVlLfAP0N4tG76Agi1pU N6/SctUNbKyhBLrxSx8G75FSKiyCYVXpbp+ntNUy/LrHLhLdXeruVFqoG6AXz2stUdGC LJHbcNwk5pIbViG1k5WGG1x/VcRAWste7wwVY= 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=gqM/i/QCHrghMrmQFaUxwldE0z8aZWwiDbMlSIy7wfFut6ik6839bHqpLHQNFtOwPk yxqOJpJFiqhuecOYI1Gd8FpZinD2xyF+UaOcEhjNLxJEduz1OIkvBXXht5PFNKLXNhcF NQsBrbNXhE6NBNro7omlveSsaNJo2MxTHC65xJZalkid8KqbjbLnfbnWk2t91iyQ93SO GTfZthWGmvi/RGz/+VJDYBWgM4egpqXhKZqWyJaLCbWEaG1HUqURGAZHG16CQqBrF2Ca 5Nx7I7Zj2mKKMX8uDM3JXA/lYN+Y/C348mE+W9BwvmdrxApimOoCuODOrhXkURwDU8od 5n3w== X-Gm-Message-State: APt69E2VlsDhGMFhgHUGgA9IksdnTfczdNM6oYU02nj/FGW1dFkFKLGh 7pebcW/Moz0gAV+Gb8woILD0Or+blQ== X-Received: by 2002:a62:e401:: with SMTP id r1-v6mr15962956pfh.172.1528692244052; Sun, 10 Jun 2018 21:44:04 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.43.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:44:03 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:13:02 +0530 Message-Id: <20180611044305.4009-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:51 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 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 Mon Jun 11 04:43: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: 138223 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3902219lji; Mon, 11 Jun 2018 03:58:58 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKSnYAwCExKn1W5sG7KAWay8fnXZJD3C7VRu9W84hf6iE32l3+EWrbHdiOuKftn3O8J76mM X-Received: by 2002:a50:8783:: with SMTP id a3-v6mr18494756eda.34.1528714738740; Mon, 11 Jun 2018 03:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714738; cv=none; d=google.com; s=arc-20160816; b=DwtFpIvrtyhKN25LspwOT+PrILPCgiubwZwYePTm6uHfqfsWrBq0Y2O3Qrc5JYUx72 wdQb4rFDVnOiZnivlxi6faxXujnNHULmmWdyxNhmVCew+O/PJQtimLyRpqdfVvcyiuhQ H2qlL6vGaZyRwyzyYuWE60Hq9m+32GEcE5mGqKvRNiJ3t4/fJ6DAumHhKBOppufmmEMl a+x4dINF8iZEoq/KKm4X073CR1rmGs6buFgxRfuTU9LjsOJak2pDkOocrzw5PcwPGI5B gcTS7xkDTsE8QqitPe+vS6K9ocVzQn2BnhWMQ/PXpiiGlOXo7IYX3ib/kli+hVZfxE+G WLrQ== 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=MBXSFHDk2LDRAb+6+7W6ZbZLcbrLvX5IKbCo7hzcCc/+LOA22ICGDi0uEj7U8UcuJw IW9xEbbUt4XE1SINEdrICkn9TidKNczF0mMK9j7869ZOKQ0YRk4AmOZIKvW0ftzs9rBM Lk8NFhAAhSd7P2LSck2xEarkimCGfoJYt2zBLkmQZ5dDQf0ogDdQukp99cuMXq/JQW2K IGx2EhClmk3SnHMU5c5FWwjrDtEJoqV09/YHSzZra/yXfyqUPOMNMC2PlfN+bFAFFowS eW82OntKgT6OfWuUhy1vONkTkZEUwmlPqG0z4XmuGdWGA3GVihq32K5HcigxExDzERhF hRmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=C3KKdDaW; 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 m10-v6si2266688edp.378.2018.06.11.03.58.58; Mon, 11 Jun 2018 03:58:58 -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=C3KKdDaW; 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 5548FC21DFA; Mon, 11 Jun 2018 10:55: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=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 E01F3C21E1E; Mon, 11 Jun 2018 10:52:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D8ED8C21C27; Mon, 11 Jun 2018 04:44:12 +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 0A3C2C21BE5 for ; Mon, 11 Jun 2018 04:44:12 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id t12-v6so11564262plo.7 for ; Sun, 10 Jun 2018 21:44:11 -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=C3KKdDaWSnf3KDlmWZ7+YCakxfVLdgnwDmBUgLGcChzOa0j/TS63lVNuBzd7TMOEjF ZOG/srBOBJ50QnKpa7h3eEG4xV763uTqGo4Tw7VyR8drlyvw5ERohRwVWBiTgh+EmV1I O7tFl7y+IY/6CukBt9O9xItnLQ6V/6h0/ugIw= 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=AjIYuSoT0MOnPGbvyPCt79qxTp3VELlaZ9yozk/L3H+cigqHjZBkhcREumr2cmutQA VHC0To598e6ze5GCtJO2O8qywh+Mwz1rWU7tMgW8r2mxjkTf06pDQgLMRODwOVLSYooY GtrTQNhU55c0f7Qf07bZocaNFzDPeVEdEpwkzittJemcbRJt+yKnEIfckZqXq34VqHku x9hZc1vbEum2NIlCUzQxsnDkWVNlVZPoxMSu+rdH/wdtOPL5pGhr4aRQ016TgHDwj8Xt aF6cOaO7Ehd2fxzSqurz00gwp7KyqUNdzhX+CpQHYcPlUIbvxK3B9jUUl/O4jrQGfxOV +VIg== X-Gm-Message-State: APt69E1Iq6ZnkYb9tsf4PDwwFAklECUdWs9LJn7GgYyw8UmEikpYLmat mejafI+7oMou3Tr59ckQ52PF5lrnHQ== X-Received: by 2002:a17:902:3124:: with SMTP id w33-v6mr16682738plb.235.1528692250443; Sun, 10 Jun 2018 21:44:10 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.44.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:44:10 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:13:03 +0530 Message-Id: <20180611044305.4009-8-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:51 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 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 Mon Jun 11 04:43: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: 138221 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3901695lji; Mon, 11 Jun 2018 03:58:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI4CJKSxVJpDGkfq1fXnOW52eTNLUiYzhSrnGTQK3n8U7lZp9t7TaI5IPOi7y7kdG1s0luT X-Received: by 2002:a50:b085:: with SMTP id j5-v6mr9046761edd.172.1528714699949; Mon, 11 Jun 2018 03:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714699; cv=none; d=google.com; s=arc-20160816; b=EmI8pMaYODQL361rBi4wfCSpPyzxXjeotp27ayXUYiivdKH26YwwnuZC1iq5bFBz3v XgThb+69HewDPsJq0AhEmK2wkt0803SXUf4QTUkxUR43snbPxvsyrjCWeFgAeHFat3jV SJVcExle+cFcR+Wa+N8a5f5pz84m+WI185xqxCfqIoMNrn8xpSRmYd0muzaJwcB38k/f OPFMF0VE9PMHR5Cts4dMFvRgDL+jTHP/WeGlIdfxPl+7CkG+QKNATL3ubFvpo6qPFrjo g8cvTtks4HP5LJaiwm7tqDNp0HcfSAQvVnmv5jm9M1baHz4Y5wGfaqbNFGbRGNNZq1ut fGQA== 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=S4MuKA8VSIfuzCEmo9RzLEarFqwCy8dtHuhmZI8RTu76uv1N/wIm24mL/nQoJJdlVU v14J6x95itoz0mhw64SvYq8yMamWiFimy/XQXiCGYXrTezU43JXGJgVIq+muzncyQJbu Xz9qxHwlDZqAMVUcPRU3mPqBI8xeGI2mSmiVNlSThsnfdwS/4nX/Npu4HtJLg3dX8LAO sWxLTW3nyWwR88u2jTNpFw6t/EDzniYCQfPi8zFGZICjATtGnA6EW1v+U/ay1/7drLtC kj4YHSHf3QpneQ8cKT25ASjKtFm+RMSF9jPfq4X2F83lGK8MLmh1ZbNxxCEL2uGTXtXD scew== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XiKZ3omY; 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 m26-v6si3897214edr.146.2018.06.11.03.58.19; Mon, 11 Jun 2018 03:58:19 -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=XiKZ3omY; 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 8E7C8C21DA1; Mon, 11 Jun 2018 10:55:56 +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=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 D3667C21E3B; Mon, 11 Jun 2018 10:53:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6CDCEC21C27; Mon, 11 Jun 2018 04:44:20 +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 CCF72C21BE5 for ; Mon, 11 Jun 2018 04:44:19 +0000 (UTC) Received: by mail-pf0-f196.google.com with SMTP id a11-v6so9547745pff.8 for ; Sun, 10 Jun 2018 21:44: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=f/1fdxVAA0aTSFOpliNxb0P9mrDViKV0R/4zJaQgJ9k=; b=XiKZ3omYGKIXSdpfK1sdrYA9yUzQ4OCiTrpedwEI7PoBswjrSX3S+wuT+CcanZIWMC LGqnoRu9wne6sYAgl6Ck4EZDjIyCCE0BXYDA45SW07tklQMieKIp7LBGO9P2To/81bVm wg3Azs7GcFHPC3iXeI8favzyVpmuAxKO5aNmU= 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=AI6YWruopDDepmE5/jaTDbD60hVHzRSYX3mJqWXP6t7AG3oJEqdKTeuhtBEQz7xqLN rCXsf7lwi5mDA+ACG/ueYRhV04Drd+yeTqifT8Zhce6OpM/hvJrFNTcLoU4pEvoc8RZ4 qGD/ZHL0Hpr47EVh1wnqfU9EYTpT3bsli50whPUhkaoua2wD2mTcdB7+Hajvs0u2ILRS VJ2MhAvSexmqkukiyFVSsuyty3MKyQL7Ph3fH88+l93EJE+Flu3as7g7vZqTZGod5y+B kkrW9nQbta5RxFWq3aLMmSBQ+QAi0n+37V9i8dF2PURkzsU0q7o+v0l+Dn6gMKjsJ5l4 Nkdw== X-Gm-Message-State: APt69E3Yehn45lDnRHnllxIeRHVzzUWhb5/8M51iu6M7yGNouDBK/qXC vKnO6rPX+naaJ4P9cXBMcnIMOFJgVA== X-Received: by 2002:a63:8f4f:: with SMTP id r15-v6mr13537234pgn.210.1528692258245; Sun, 10 Jun 2018 21:44:18 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.44.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:44:17 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:13:04 +0530 Message-Id: <20180611044305.4009-9-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:51 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 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 Mon Jun 11 04:43: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: 138226 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3902501lji; Mon, 11 Jun 2018 03:59:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJbeS0lHHPN0oC/Yj3YbRTA6AhRlca2GEXk2YVgl3eOVm+IUU+X2aW7+AXUoEGFHQgo71Gt X-Received: by 2002:a50:a45d:: with SMTP id v29-v6mr17916481edb.237.1528714761599; Mon, 11 Jun 2018 03:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528714761; cv=none; d=google.com; s=arc-20160816; b=hU7sTZRd9tmMoBpX182Ykj3l6XoVnnm+hGO1vBhfHcrVSo1DnrpJrHCg1IBuTsJtvZ HTmHIhyoPqn7nHUUJrrSZhsNaXqpfHl0PrAwrfyeMPc59aAh7goaPaaqwzqmCXBcHmlt dK3lJ370xMMlRw6K0CsHybZut5BokJiY4WqgH1iFMglzMFhpho3ipIDAmAksyt35vNMo XH0rrdiTQnwgqP6/v7A34OVw8urkR1S9HHozq9nN+NzkojFummb9n8yW+0lQJkGZetG6 zZKYW4ebMgvIEBK+7s7HOhHr7aHHAPZEla+M2cUI6RqkEDDfl3+7nOCjRdR6KPXxKTEp amsg== 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=o5L2U/MNVo7j/9usXQAM6tMJTaOQ9Wb5ISEOk3NW+R1PjSBLB8JsTmn9CXYFOHrRPR NnW5gxqddniGrnKa1OItFAjs5C2SVVPHVC5ZVnV2lDSKth8R5I9730npWrox2d+vIMwP ZpUar4KH/XxRcZAaXpfaY9qhJtJRUSkyojrfCjT/sQmyfFlasAA7DfhU0QCTbn3DYfza STTidJrvtxZ7pKU9izG0xjziLYzzp6z+bqcaJoWPnVOZpLLoIwquoRXX1dLJO7xxnlCB QVHH3pb8zi4XZKgjzE/7PjSAzvWF+36tEnF3GlwlvMiRjhcDzkq4uxBM1Jt2nSYcBowb OIog== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=A4mhRyIm; 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 b11-v6si1288814edl.365.2018.06.11.03.59.21; Mon, 11 Jun 2018 03:59:21 -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=A4mhRyIm; 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 27146C21DFD; Mon, 11 Jun 2018 10:56:13 +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=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 DA355C21E16; Mon, 11 Jun 2018 10:53:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 99757C21C27; Mon, 11 Jun 2018 04:44:28 +0000 (UTC) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by lists.denx.de (Postfix) with ESMTPS id CC620C21BE5 for ; Mon, 11 Jun 2018 04:44:26 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id q4-v6so8071460pgr.1 for ; Sun, 10 Jun 2018 21:44:26 -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=A4mhRyIm9Y/Zqzfsx2tvqMR5+Gx7v+MS5bkrQMDwpK5ke7l38xwKQ4YN/RvnM8Ht8K wOgFNVHVgV4BV7p3TjS3ldDuqblNAWcxqjJGqO6y2XmfRXn4C3H1+g/ZSzhEM1yz+DYi ix1RMCDVhKjtlNvUTpwxugdq8kbSOyeLkNX7I= 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=N6yD2LJjtPJdzeeFhxfkWjTbsyemimGeKs1Ja3RHV/wuQoeDluvKn5CP5RyS816mKK vQjjmb0gcQlf4a6viaayyLIoqDa8Ces+SEYtaRLihdF+I0P2DFVUuRBHXO6QEwsOc3so c6K3Dhvy8R8mqRN3iVII9avlAuKXVkfZWRHC5I8a0wLQQAdCOlmtfuLKHLHoKVChYXJv CeONoqs907B/a2Ic2d3rBU2vzfAyxDlVtT9S3CktHlywJAMjRwysqcl367UScyQ/koax GztahMi3VTb+KhGwvMtd+Gzrrx//BvwQaCl2PKt53sUwdjfNh3G5PgVJAr9eZC97i5Os 1P0g== X-Gm-Message-State: APt69E0mPoszJrV7du9jmkaT4HfDuv7noccq18ZYP+VEgdSMZPQGuLfN 0d6LL7hDdzxNMZ832s8EAnZQM7yqyg== X-Received: by 2002:a65:6157:: with SMTP id o23-v6mr13621909pgv.310.1528692265247; Sun, 10 Jun 2018 21:44:25 -0700 (PDT) Received: from localhost.localdomain ([2405:204:714c:560c:5161:793c:10bb:7502]) by smtp.gmail.com with ESMTPSA id j15-v6sm35232298pgv.17.2018.06.10.21.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 21:44:24 -0700 (PDT) From: Manivannan Sadhasivam To: u-boot@lists.denx.de Date: Mon, 11 Jun 2018 10:13:05 +0530 Message-Id: <20180611044305.4009-10-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> References: <20180611044305.4009-1-manivannan.sadhasivam@linaro.org> X-Mailman-Approved-At: Mon, 11 Jun 2018 10:52:51 +0000 Cc: daniel.thompson@linaro.org, bdong@ucrobotics.com, thomas.liau@actions-semi.com, hzhang@ucrobotics.com, amit.kucheria@linaro.org, liuwei@actions-semi.com, afaerber@suse.de, jeff.chen@actions-semi.com, mp-cs@actions-semi.com Subject: [U-Boot] [PATCH 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