From patchwork Thu Nov 16 17:47:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 119059 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp5000587edl; Thu, 16 Nov 2017 09:47:18 -0800 (PST) X-Google-Smtp-Source: AGs4zMaeUMglOsMG0RVmiyyn8adDEif3psnJXZ4KGDjFB6xjR+kr9Ss38XDjZFNfYfULLyBvk3wt X-Received: by 10.159.247.136 with SMTP id e8mr2364344pls.335.1510854438614; Thu, 16 Nov 2017 09:47:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510854438; cv=none; d=google.com; s=arc-20160816; b=mPuCnpX6mBKQN7cDw9l3DrGIH93J0n+se8X2czhZ2rwxGterSGbfQxfcaC1x3aBdDP RYvF5FTi5ndwPcLgFEDf/a1EMNbAwsxF0zyJmLz6W0GYXBaqTYGpi35za6UHZ2Z1KCfA W2LH7qat3KsEwChhYMwX8baOcloJmoK1kxjbyC9hLsb82O2gvj6/APbO8Cej1DWZZqLM mxBcA2YVd8BgPlNJjM/LBkk0T0zX1TrsNxWk8Nts2XEuurOnTYN2Qx+0t1Y9MGBFrfAn 49T9AawN1rLqsP0a/fVaGGtXLXYOFVEqLNIm5pixjpQc+ineuuGFMSdLQxe5F67LjyTt HJkg== 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:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=q0lqwVk+u4GIJXbnrSgSj+etFA29Za3cAyzLpX78Z3w=; b=G7788vQ7twvNo3GxfuNYrWCLQK6W6ehlrn4f8SMmLlQRROrtFADAWVgAL7A7Ge0vtl RqrTeTVT0T6sCKm+kz0Tr8IlyAg715fiotOYc8bd8jvFMKsurjcPDPKAcge4hUpqc8h9 Z+f8MzjuJVluzE8GHokhXrKZ+2qmhmXoNqiz0YZGapKdUBIqtSzMhO8Dc/6sZAkQk43z ubaVd3Q6K8rLpbKKOg/a64QVFYDpzYTg48sMv17TYLhPB9AP8ie1P0xO7a2xtLWkPvfQ oiZs+j7KsaGYE2CLhjAi7BAgdRnsGM6OP2cTCY/g7LK75dnGqI8oDjIZ5DuYezqxuHaK xwDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hbsn2qYn; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id e8si1210866pls.737.2017.11.16.09.47.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 09:47:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hbsn2qYn; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 197F52035A7DB; Thu, 16 Nov 2017 09:43:08 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::243; helo=mail-wr0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3FE352035A7CF for ; Thu, 16 Nov 2017 09:43:06 -0800 (PST) Received: by mail-wr0-x243.google.com with SMTP id u40so23542011wrf.10 for ; Thu, 16 Nov 2017 09:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=DlWr8t3TBcazMzXbpccXdM7XX4zFbZmWLT8i+fPaF3A=; b=hbsn2qYnjUSBMRXMLWKFc05yxIvifCUfQ4QpD2SaltcsD5oHCFC0iz8s2+d1bFKJO7 q7pazVWp/temI8braVF+RHCi3ca0cezu7d84imrJbH/2HGDn3GSFT+T/Fz4W2AXz1VMl wxoQUnpRlawjS+f21a2ApwbsjsmXxWEC26lJY= 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; bh=DlWr8t3TBcazMzXbpccXdM7XX4zFbZmWLT8i+fPaF3A=; b=dKopLCSp815XQtFKsGJ2mUFDBavjs0ROIDaI7opO/cgv9wfiOyEXpKGK1/l/VubXu/ yF6JEGShI5wCnqn74Q4VFG2lqnofuVcDAsf6F48ESHzaV69dh6/8fuWTdAzY2xtmuar7 3CCWIWuJjxrXqz7+jjNdyFytT0n/xINNU2kojaGYeC5JiCHR/01+XhmQopAoIt4SChtK jzuyvW8k2Rm2NO6zUjeP4odTCePs5LYvfr2eL2n+3EiJDFY15MAd9KkylUM4LYkbAttp 7o5Xv5H7w3KzKzrtTGtPpIvZoGhr6hCNOOENNwx1tTpdhRUCN97VOqhsdyhQE8D/zWIU mjuQ== X-Gm-Message-State: AJaThX7jLldCBCSp8c8eX/Z4vCTBDuLoHRsf6rK7QhY63hTKsIjdBSe3 BRQSGCAMW3MluKmsOs7GlAEziqrjMdI= X-Received: by 10.223.184.171 with SMTP id i40mr2337432wrf.124.1510854435210; Thu, 16 Nov 2017 09:47:15 -0800 (PST) Received: from localhost.localdomain ([160.167.170.128]) by smtp.gmail.com with ESMTPSA id 55sm2772135wrw.60.2017.11.16.09.47.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 09:47:14 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Thu, 16 Nov 2017 17:47:06 +0000 Message-Id: <20171116174708.24964-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH v2 0/2] ArmplatformPkg: clean up PL011 support library X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lersek@redhat.com, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Clean up the PL011 UART support library, by moving it into the appropriate place for libraries, and splitting the header file into an implementation and an interface part. Ard Biesheuvel (2): ArmPlatformPkg: reorganize PL011 code ArmVirtPkg: switch to new PL011UartLib implementation ArmPlatformPkg/ArmPlatformPkg.dec | 3 + ArmPlatformPkg/Include/Library/PL011UartLib.h | 187 ++++++++ ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.c | 5 +- ArmPlatformPkg/Library/PL011UartLib/PL011Uart.h | 120 +++++ ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.c | 474 ++++++++++++++++++++ ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf | 43 ++ ArmVirtPkg/ArmVirt.dsc.inc | 2 +- ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.c | 5 +- ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.c | 5 +- 9 files changed, 834 insertions(+), 10 deletions(-) create mode 100644 ArmPlatformPkg/Include/Library/PL011UartLib.h create mode 100644 ArmPlatformPkg/Library/PL011UartLib/PL011Uart.h create mode 100644 ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.c create mode 100644 ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm