From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::543; helo=mail-ed1-x543.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) (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 E455221199B29 for ; Tue, 18 Dec 2018 05:10:19 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id o10so13794370edt.13 for ; Tue, 18 Dec 2018 05:10:19 -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=gntD1HGPB9pSkouDpupWqeCwipuO6MsexBZsr8Q9zTo=; b=aoxY2QlGLuQYNduHeG+MeV7gpBoRbcXzOSh72j8KRyY4tOsmozfvIOoKvO9frMyh3Q w2/K4E//2fSipmL/Vijemi2ZjuBVnlTOXbGI6k4/3H0hMXpm1Mlzhbw9mGxfodx11Cci 0emPclrFyds7zJXXo9jpBI5gRispGUNMyE8Bs= 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=gntD1HGPB9pSkouDpupWqeCwipuO6MsexBZsr8Q9zTo=; b=IjoP5wbqjsjBCGuOEorP9NXTBktvy3xyDn50FR/f+qZZ1wT58Si2WRzN8026VsQQCW gAvFLZrj8/TUNY2LTxW704s2iWUnlG67rGgvsDjs1eqx++HV8g9zODcxrCkJfvlY8n+n QvtclTrP2cWS3IGiBzYOM+UC3187zFpb4Fs9bXMoko4rCp3qUxYVn0F0WLKFvZOJpAYd 1aFaUvwRGUVDvkVTeVXwyar46py0Uepn0gJsvq9OgScQGz0i2KhOMzYXoCzkYXEPj8t3 heB0GwXVZiBtOObTNiQnWZegb4u6wJEVNt2ux+2qljZWUn1dOOiG/vT5DLt33C3XCU+4 wYuA== X-Gm-Message-State: AA+aEWbhqggDC6zwcQh5zIb4VHPWQcfitBsOe3DGrmvi3blaK3prcXvY v4dl8IAv8sFu8QcgXgyRrTwOWsX2p8i2ARbV X-Google-Smtp-Source: AFSGD/U9Fxqn76G4/aScr29EudBke/khohiy5xdyrFGQXlDWp1ZoMdjhjewhoEDC4e6MBA2hP9MxLQ== X-Received: by 2002:a50:f10b:: with SMTP id w11mr17100894edl.0.1545138617798; Tue, 18 Dec 2018 05:10:17 -0800 (PST) Received: from mba13.arnhem.chello.nl (dhcp-077-251-017-237.chello.nl. [77.251.17.237]) by smtp.gmail.com with ESMTPSA id f6sm4384755ede.53.2018.12.18.05.10.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 05:10:17 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 18 Dec 2018 14:10:10 +0100 Message-Id: <20181218131015.20062-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Subject: [PATCH 0/4] ArmPkg, ArmPlatformPkg: watchdog driver cleanup X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2018 13:10:20 -0000 This series cleans up the code of the two watchdog drivers we have for ARM systems, and brings them in compliance with the PI spec, which specifies that the default action of the watchdog can be overridden by registering a handler. Note that the TC2 code in edk2-platforms will have to be brought up to date. The SP805 on the FVP model seems terminally broken (it is 'wired' to the 24 MHz APB clock instead of the 32 kHz WDOG clock, so I'll switch that one over to use the SBSA watchdog instead) Cc: Leif Lindholm Cc: Sami Mujawar Cc: Thomas Panakamattam Abraham Cc: Meenakshi Aggarwal Cc: Udit Kumar Cc: Matteo Carlini Cc: Nariman Poushin Ard Biesheuvel (4): ArmPlatformPkg/SP805WatchdogDxe: cosmetic cleanup ArmPlatformPkg/SP805WatchdogDxe: switch to interrupt mode ArmPkg/GenericWatchdogDxe: clean up the code ArmPkg/GenericWatchdogDxe: implement RegisterHandler() method .../GenericWatchdogDxe/GenericWatchdogDxe.c | 145 ++++++++------ .../GenericWatchdogDxe/GenericWatchdogDxe.inf | 11 +- ArmPlatformPkg/ArmPlatformPkg.dec | 1 + .../Drivers/SP805WatchdogDxe/SP805Watchdog.c | 182 +++++++++++------- .../SP805WatchdogDxe/SP805WatchdogDxe.inf | 17 +- 5 files changed, 211 insertions(+), 145 deletions(-) -- 2.17.1