From patchwork Wed Jan 19 11:03:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1581744 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=x/Nt/DWV; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jf2nQ6B2Gz9tjw for ; Wed, 19 Jan 2022 22:03:36 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 02964830B3; Wed, 19 Jan 2022 12:03:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="x/Nt/DWV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 26A478326B; Wed, 19 Jan 2022 12:03:28 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B1EF980FE4 for ; Wed, 19 Jan 2022 12:03:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-wm1-x32e.google.com with SMTP id w26so4728271wmi.0 for ; Wed, 19 Jan 2022 03:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3RDYSXN8wVDy/6OqX7T9TIKnt1x4vG9XBk+ppwIDtqE=; b=x/Nt/DWVrhTlqwvns+8XGABNVOK7lnIVESyg5lc0Sn+QqGeOJSccS62S/u122rVwpw obaJ+HIFBBGTycwABsFD9Hy8qDNMLM/d1+fXd85xo2xcqF9q2dwOA+W9vK/hvFhS7b/d TodfUXfw2hlg/FKXqarDdBM7781FU3tpVjEzjpJzUscnKOqrWcdyI2g7V6Dqke20eJQD JLzOSL2KETwrhI/R4me459p9gDTUyemlD9k+Xu/Rs8SNgUeIu1Hoah0lnYnsMqg8t4YU fr8P0GzzKOXIl+INr9TbGQXw3vfu8GnmxuMXDPDOzUfJapPax9+xQ3RTIK0CQfjQJxds 1v7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=3RDYSXN8wVDy/6OqX7T9TIKnt1x4vG9XBk+ppwIDtqE=; b=SA2cpayYp5tt/sLXntHOKNnBnEQxsg19D01sPOmeKegtqQOoqVZeE7H+EtDOEk+oNt UPONqP1QR2/wdu0eYMDG4CFwBo0k5ouh0i+JCJyDqSQooL0hT94CuJyWGS+cNT6O/1Hz Gc1R2m8HnrpzsYcl/T9SPtzvjXwST0Yw8b4Z9kY2qCEMhgvBHYaeKSGtyVFX3JKjLiun Kfj95augonLg+HglHAB1Ga3VlmmPu2g7KDxVIjHOWNVW9fNYs2zYlS2b5ueRaF+42Lbh Ns2Ka1ASr5GOzH/FplP2XE9eFF7ykjeM7RGMVVEyHJLsikExeixTkV3sWRzn7a85Fam8 uZOA== X-Gm-Message-State: AOAM530AyzCBjDqbPiGrDp9z9NorE9eXxLIWtaKgzfzLVjH41lFKNwEp DFQ5oTHErqZVpVdMRNEWgEDiH7I5Md0TsSFS X-Google-Smtp-Source: ABdhPJz5+9xRk6yq4RumIf8Nf3+8GH/ttdwCy6C8iJGQZiqw813c2oNXWocEwJ3ei0KU4abap+CDTw== X-Received: by 2002:adf:ec8a:: with SMTP id z10mr4623511wrn.296.1642590205177; Wed, 19 Jan 2022 03:03:25 -0800 (PST) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id ay21sm5975953wmb.0.2022.01.19.03.03.24 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jan 2022 03:03:24 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Michal Simek Subject: [PATCH v2] zynqmp: Use the same style for macro definitions Date: Wed, 19 Jan 2022 12:03:23 +0100 Message-Id: <3960de81a04acbaaa01936f743d3d6b3876fe4b7.1642590201.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Use the same coding style for all macros. #defineNAMEVALUE Signed-off-by: Michal Simek --- Changes in v2: - Change base include/zynqmp_firmware.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/zynqmp_firmware.h b/include/zynqmp_firmware.h index 2db05a94a870..5927dd94d7bd 100644 --- a/include/zynqmp_firmware.h +++ b/include/zynqmp_firmware.h @@ -342,20 +342,20 @@ enum pm_ioctl_id { IOCTL_AIE_ISR_CLEAR = 24, }; -#define PM_SIP_SVC 0xc2000000 +#define PM_SIP_SVC 0xc2000000 -#define ZYNQMP_PM_VERSION_MAJOR 1 -#define ZYNQMP_PM_VERSION_MINOR 0 -#define ZYNQMP_PM_VERSION_MAJOR_SHIFT 16 -#define ZYNQMP_PM_VERSION_MINOR_MASK 0xFFFF +#define ZYNQMP_PM_VERSION_MAJOR 1 +#define ZYNQMP_PM_VERSION_MINOR 0 +#define ZYNQMP_PM_VERSION_MAJOR_SHIFT 16 +#define ZYNQMP_PM_VERSION_MINOR_MASK 0xFFFF #define ZYNQMP_PM_VERSION \ ((ZYNQMP_PM_VERSION_MAJOR << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | \ ZYNQMP_PM_VERSION_MINOR) -#define ZYNQMP_PM_VERSION_INVALID ~0 +#define ZYNQMP_PM_VERSION_INVALID ~0 -#define PMUFW_V1_0 ((1 << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | 0) +#define PMUFW_V1_0 ((1 << ZYNQMP_PM_VERSION_MAJOR_SHIFT) | 0) /* * Return payload size