From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=YMwfLdzg; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.66, mailfrom: mw@semihalf.com) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by groups.io with SMTP; Wed, 17 Apr 2019 14:20:26 -0700 Received: by mail-lf1-f66.google.com with SMTP id k18so11035013lfj.13 for ; Wed, 17 Apr 2019 14:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=5+hWpROHqisp1v7VXvP4KAlTbO3wte6jAPkQqrTqYis=; b=YMwfLdzgw814b1Q64C12GPEzqwAYXQHxuMSHAiJzb5ANeql1yJYoSHbPwk1WjsoF3p MQtl2uGhphd3qFkCyUAXF3vxDdO6EEPcRgw3RQkRudQ/rDKVzDJmZ0LgSt2njzgBTunR ApW00Zsa2mVt0rFTWdkGsJd4JA0Xq5uFnym2ZI5iSKVcWl+9+7cPmXnvkPN9Oas3yMd8 dENowJKyPIAJXP1S8QUDOigfSEr4Lx6zFVBOHe/jMHgfBWRuN45U0qNOEqbmcN1/+OrN TUKwtDdLtnyrzAhHnPLuefIZX469Cd+0jLCE3rl4oakquuyOMcdQyClTtdPRvWMOFm8W ZLMQ== 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=5+hWpROHqisp1v7VXvP4KAlTbO3wte6jAPkQqrTqYis=; b=Oi0XWXqE+Ea9Aqx/eEd+GMqW2E+BJe0RAJBjczs+l89BPTSsE95Pe6fe/RL++JLJgz uVa81Ej7qmtLHQHxhjxuGR+hgZoYBC6cNAt3hNRSZROqUiFg7BfB/gvei8VviMSvYwhs RpNPTCUP4DSeoPAN88ByG2Q8adzTbTbLtMDcPXarGjdkZ4Ef1daPQBOSZmIP0jmyHRvj cNMyS/ty+/WR55mkWQsJfg0w1JRNo2nA11Fyzf0/0SwdQ5SVqu3dVaTLaqQeQAHPwvJq Uvz2N/yCJ1lEH/v/SyCKsjOHY8oeHHZ5hC+Ez9/o2Gf7TLcrC8Vn79ewzyXc94mrwzhs rq3w== X-Gm-Message-State: APjAAAWIUEDmBWFSw1saifsBl2URSMCY2xwV59jpISmEADu6IRCOOzLZ a4PRc3EvTvD1/nXBw+FPmD9dxSkFFxGMQg== X-Google-Smtp-Source: APXvYqyjxdKNI1Pk2Fw95OQGVAcrgl4GZ3qMcrNGu18ue2zrtNWHf5ThyBikH0kYumPm1F+oPtT6tg== X-Received: by 2002:ac2:5455:: with SMTP id d21mr12603099lfn.60.1555536023874; Wed, 17 Apr 2019 14:20:23 -0700 (PDT) Return-Path: Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id m12sm14278lfb.78.2019.04.17.14.20.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Apr 2019 14:20:23 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com, jeremy.linton@arm.com, Jici.Gao@arm.com Subject: [edk2-platforms: PATCH v3 1/1] Marvell/Library: ComPhyLib: Update mode parameter for PCIE power on Date: Wed, 17 Apr 2019 23:20:06 +0200 Message-Id: <1555536006-2356-1-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 Most recent ARM-TF ComPhy PCIE initialization routines check additional mode parameter in order to determine, where the SMC is called from (OS / firmware). Adjust to that. This patch fixes the Linux boot with DT. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Silicon/Marvell/Library/ComPhyLib/ComPhySipSvc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Silicon/Marvell/Library/ComPhyLib/ComPhySipSvc.h b/Silicon/Marvell/Library/ComPhyLib/ComPhySipSvc.h index 9fd6602..e918f01 100644 --- a/Silicon/Marvell/Library/ComPhyLib/ComPhySipSvc.h +++ b/Silicon/Marvell/Library/ComPhyLib/ComPhySipSvc.h @@ -43,11 +43,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* Helper macros for passing ComPhy parameters to the EL3 */ +#define COMPHY_CALLED_FROM_FW (1 << 21) #define COMPHY_FW_MODE_FORMAT(mode) (mode << 12) #define COMPHY_FW_FORMAT(mode, idx, speeds) \ ((mode << 12) | (idx << 8) | (speeds << 2)) #define COMPHY_FW_PCIE_FORMAT(pcie_width, mode, speeds) \ - ((pcie_width << 18) | COMPHY_FW_FORMAT (mode, 0, speeds)) + (COMPHY_CALLED_FROM_FW | ((pcie_width) << 18) | \ + COMPHY_FW_FORMAT(mode, 0, speeds)) /* Comphy speed */ #define COMPHY_SPEED_1_25G 0 -- 2.7.4