From patchwork Sat Apr 6 02:11:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramon Fried X-Patchwork-Id: 1079051 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Moc+HPBZ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44bgDm6pyxz9sPb for ; Sat, 6 Apr 2019 13:12:24 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id BE6E6C21E1D; Sat, 6 Apr 2019 02:12: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=FREEMAIL_FROM, 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 4E9DBC21C51; Sat, 6 Apr 2019 02:12:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E85B2C21C51; Sat, 6 Apr 2019 02:12:18 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id A2550C21C50 for ; Sat, 6 Apr 2019 02:12:18 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id o25so8445624wmf.5 for ; Fri, 05 Apr 2019 19:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dPejWDipt81DTiMRqKbsi27VhtgLtNAoebYoGNs7vcc=; b=Moc+HPBZXBIpLJM+Nkn6ZGq6NYtp9HgAT2vYx1AV83/9cRf99CSmNy38bPH+8G046B Sq2dZQclMmlwjlGBvDgFP9ATv3Zpv2xzGI1H3OZciQgBi8RGWQvYnsxgNz4eRbK/AS3N qbbX6qYiSVlz2Teluir1jfnmM0wkfbtINtpH6xPaQACnWC3jbq407mbjUw80DMRqNTnF XD2D5Xglj8BKlX7pOTuJuLQISI/ec+v2oRyqJlAPC2ItD7AqgU/fNsKGn42fbVMz2dws MGSiGAtlJla9EOn1n4M109Tb9PeFwU2PRqUmflzmiU7QxXLb9AdhH+2jGMS5nsYKJLME 4FhQ== 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:mime-version :content-transfer-encoding; bh=dPejWDipt81DTiMRqKbsi27VhtgLtNAoebYoGNs7vcc=; b=IbY2EkaL6a565lVS0EXeZK4wFrl0D9WsrQVihrUyiL6tI0aSb5Djx7yTIitoirqfd5 IR4Zjwnpm2GTQIhHyOPyDOnBbxl05z4BdYdPcUln2j9PnhDB039alYrX+0zYbLl0j86g eHtC7or0zii+oo4+Zzpn77LzyXQm9tmwyJhoEnUk++PI+vzvLZ38dnPL+FcZQldw3Lgm Z6uuyFXGjN4ULEydFoOHqjBZWZyOlkuN4laKwVI0loX9HCNeWDeX6fSA11WsTQU9DuxR ul4rSV6z0lIxk5gQBe+VUcsD3wjrBHfjD01OEUvH6QtGk1UXI9DXlIN2VLWpd6KPJ0ac lZZw== X-Gm-Message-State: APjAAAWebZSkpsWW1Ml6BdHmu2wIRvuz3Fn+QilVj4M0dLIXxiUFY9Un u1rPMnUJsSC2XWj/63h5EHMIx4/3TMGgSg== X-Google-Smtp-Source: APXvYqzzyHsUnWL7O++yL4zw6mh/OErSip//YqTkoXKYidSmEVknayafnEuyb4ZBYMfKr2oqRROXBg== X-Received: by 2002:a7b:c7d0:: with SMTP id z16mr2047977wmk.136.1554516737971; Fri, 05 Apr 2019 19:12:17 -0700 (PDT) Received: from localhost.localdomain ([141.226.31.91]) by smtp.gmail.com with ESMTPSA id o130sm4901637wmo.43.2019.04.05.19.12.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Apr 2019 19:12:16 -0700 (PDT) From: Ramon Fried To: u-boot@lists.denx.de Date: Sat, 6 Apr 2019 05:11:59 +0300 Message-Id: <20190406021202.6505-1-ramon.fried@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: Ran Wang , Tuomas Tynkkynen , Stefan Roese , Maxime Ripard Subject: [U-Boot] [PATCH v1 0/3] Add Cadence PCIe endpoint driver with new uclass 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patchset adds support for new uclass, UCLASS_PCI_EP allowing new set of PCI endpoint drivers. Included in the patchset is also a driver for Cadence PCIe endpoint. Ramon Fried (3): drivers: pci_ep: Introduce UCLASS_PCI_EP uclass pci: pci.h: add missing maskbit pci_ep: add Cadence PCIe endpoint driver .../pci_endpoint/cdns,cdns-pcie-ep.txt | 18 + drivers/Kconfig | 2 + drivers/Makefile | 1 + drivers/pci_endpoint/Kconfig | 25 ++ drivers/pci_endpoint/Makefile | 7 + drivers/pci_endpoint/pci_ep-uclass.c | 192 +++++++++ drivers/pci_endpoint/pcie-cadence-ep.c | 177 +++++++++ drivers/pci_endpoint/pcie-cadence.h | 309 +++++++++++++++ include/dm/uclass-id.h | 1 + include/pci.h | 1 + include/pci_ep.h | 375 ++++++++++++++++++ 11 files changed, 1108 insertions(+) create mode 100644 doc/device-tree-bindings/pci_endpoint/cdns,cdns-pcie-ep.txt create mode 100644 drivers/pci_endpoint/Kconfig create mode 100644 drivers/pci_endpoint/Makefile create mode 100644 drivers/pci_endpoint/pci_ep-uclass.c create mode 100644 drivers/pci_endpoint/pcie-cadence-ep.c create mode 100644 drivers/pci_endpoint/pcie-cadence.h create mode 100644 include/pci_ep.h