From patchwork Fri Aug 30 12:18:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 172692 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp543664ily; Fri, 30 Aug 2019 05:18:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtb0fckEap+U83Kc0tL8d5OKwnEMZcqihV5BnOrSxcxPa7QLBxuVAIZ+0NQV8HXTAq2wjp X-Received: by 2002:a17:90a:338b:: with SMTP id n11mr642778pjb.132.1567167534333; Fri, 30 Aug 2019 05:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567167534; cv=none; d=google.com; s=arc-20160816; b=lxlseWmZfkg7IOHv+8Fdu6JzsS+DyWCmEbSZyEWZv9oRPnRlWo2pCgCvO2vSLFLbQy bPMjiS/t67kpvtW+jdmNypSdd4wRmGbrZdVBGCyJNSOOn5hDHzjglZROeZ6eTROYiZ9O vpfJIyhBwVcjQmUK8QC0VjsWFawJCZF/iGtb1o3Lp9Hpqsexf2Sp9GOShUoYGU84IVBM +IKi96x9GOyoScMWn3MB1gx2gyK0Nvs+4sTmo+4lSeO62W1otN0wq7mdYhKya7lnpbv3 jwJCj7eX0Sc9rrX4dpu43rTTUOMO9iPzUEj5D2Vg3Sm9sak5dnNNr+iJ72nJHT0rf7f1 Ukqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=CaSpC6veZguPG4+z+PAkEp85ogZkXYKmwl1YDntIISA=; b=J2yYI+BysWIeZoK9om9v3HP/85LbGTbDwmzKERXtLsCZSY38jB0b1ZoR+zUILjYXd9 JeBzHA/Shb3Odg/KDO7Q9rpjLGfb9KrJvLjPwkfM5oMiHKKuBqot07g5KJ0PP4AO7vS7 6McN469wY3+V1oEDLZWYEE7sOzjVk4LDLV2+EeUDkCswiM3ugg/87oZPO9OnaVG8wwVy 4ehPZFRGhawgfLliN2EFZTp1DI5M0aKUk3imxKkfh8BECi39ubO7ED+vbyf3VtbgiJGJ /44kx7ajcAgRiRkx93U/8MOSCaxuBUW9rQPya1hRN2LFE4CCnALDFS1BmWzMYJR9eBqV eyew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QmoFg1Rz; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r193si1886576pfr.27.2019.08.30.05.18.54; Fri, 30 Aug 2019 05:18:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QmoFg1Rz; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbfH3MSx (ORCPT + 8 others); Fri, 30 Aug 2019 08:18:53 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:34694 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727739AbfH3MSx (ORCPT ); Fri, 30 Aug 2019 08:18:53 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x7UCIg5o118366; Fri, 30 Aug 2019 07:18:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1567167522; bh=CaSpC6veZguPG4+z+PAkEp85ogZkXYKmwl1YDntIISA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QmoFg1RzZQ3AtNoa33y3GFo9dM6pA9wY9/y+tglJUP7G9PE4quFZJYLA/J2GGktOO RQXojWRyoaaxNQDz4j1B8d1/sJtp5S7ECWA3XB7/CtU0Ntmfv2joUFRGc4Gw5Iv/B0 mfhd135/KtVoW7av1a1WcuHOumPQe4s41c6whb0I= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x7UCIgMt031625 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 30 Aug 2019 07:18:42 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 30 Aug 2019 07:18:42 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 30 Aug 2019 07:18:42 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x7UCIP6N083824; Fri, 30 Aug 2019 07:18:40 -0500 From: Tero Kristo To: , , , , CC: , Subject: [PATCHv3 07/10] soc: ti: omap-prm: add data for am33xx Date: Fri, 30 Aug 2019 15:18:13 +0300 Message-ID: <20190830121816.30034-8-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190830121816.30034-1-t-kristo@ti.com> References: <20190830121816.30034-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add PRM instance data for AM33xx SoC. Includes some basic register definitions and reset data for now. Signed-off-by: Tero Kristo --- drivers/soc/ti/omap_prm.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/soc/ti/omap_prm.c b/drivers/soc/ti/omap_prm.c index d413e65c9b9b..bc0933315484 100644 --- a/drivers/soc/ti/omap_prm.c +++ b/drivers/soc/ti/omap_prm.c @@ -61,6 +61,11 @@ struct omap_reset_data { #define OMAP_PRM_HAS_RESETS (OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_HAS_RSTST) +static const struct omap_rst_map rst_map_0[] = { + { .rst = 0, .st = 0 }, + { .rst = -1 }, +}; + static const struct omap_rst_map rst_map_01[] = { { .rst = 0, .st = 0 }, { .rst = 1, .st = 1 }, @@ -82,8 +87,27 @@ static const struct omap_prm_data omap4_prm_data[] = { { }, }; +static const struct omap_rst_map am3_per_rst_map[] = { + { .rst = 1 }, + { .rst = -1 }, +}; + +static const struct omap_rst_map am3_wkup_rst_map[] = { + { .rst = 3, .st = 5 }, + { .rst = -1 }, +}; + +static const struct omap_prm_data am3_prm_data[] = { + { .name = "per", .base = 0x44e00c00, .rstctrl = 0x0, .rstmap = am3_per_rst_map, .flags = OMAP_PRM_HAS_RSTCTRL, .clkdm_name = "pruss_ocp" }, + { .name = "wkup", .base = 0x44e00d00, .rstctrl = 0x0, .rstst = 0xc, .rstmap = am3_wkup_rst_map, .flags = OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_HAS_NO_CLKDM }, + { .name = "device", .base = 0x44e00f00, .rstctrl = 0x0, .rstst = 0x8, .rstmap = rst_map_01, .flags = OMAP_PRM_HAS_RSTCTRL | OMAP_PRM_HAS_NO_CLKDM }, + { .name = "gfx", .base = 0x44e01100, .rstctrl = 0x4, .rstst = 0x14, .rstmap = rst_map_0, .clkdm_name = "gfx_l3" }, + { }, +}; + static const struct of_device_id omap_prm_id_table[] = { { .compatible = "ti,omap4-prm-inst", .data = omap4_prm_data }, + { .compatible = "ti,am3-prm-inst", .data = am3_prm_data }, { }, };