From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by mx.groups.io with SMTP id smtpd.web11.1852.1589310019413710389 for ; Tue, 12 May 2020 12:00:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=f72E9VmY; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.68, mailfrom: mw@semihalf.com) Received: by mail-lf1-f68.google.com with SMTP id b26so11494131lfa.5 for ; Tue, 12 May 2020 12:00:19 -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:in-reply-to:references; bh=ENYNlF8/EHoQfBEvewEw0ivgCziRuTk/GoTKBuIUSiI=; b=f72E9VmYid8pbdWBGkDAyh19lCprkLbuahN8+zcdlh5W6KUe+4arFXZkzP09aTCFDN ANND9EBzKGVo4HF1dmWHjbM/gLI90N0T3kY7O0UvSzXSHK56Qmqw0THf5yqGXt3d4jz6 oJbeGerljE8ZDivw76X3LE0KQU03p5p0+B054xFJACvA1aoimODTLzj9Nt5A8YpR5XIz Bghjt6tbEX2L7uDvhCr6CWC7Oph6ASp6LjUYets89ZjtHlZgbSNngLDsPqUn31j87OoE VwY3LBhTgqzKwNrtGVvJ3z6HK4je8Vao7CrgDz7ZcIRUmB2glHlFnhTir3zi9vsjl4fF +lmQ== 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:in-reply-to :references; bh=ENYNlF8/EHoQfBEvewEw0ivgCziRuTk/GoTKBuIUSiI=; b=aZpttdTku6hyXt7J4bJ0tAPuv2dWAc6ZMHj0/zWD/ZlJ+Ccw3tX+idNJ02w13uKS7a DOgzwDWhY/FsYuaKEsaY/rD2ccO4BcbOOYVTr5LmgftiA20NuUbzVSAvsuCtZxIWT9p+ o4aDfKjXdcB+qM1OxMQKn5DK9G0zi4YfEoTKyl4DpsQlxJOz/2aAq3H9QvqnAw7CqO6c EMeLyzmvlVOrSS+mLjrQHBZYUhcAPmC89BgXbOrzIU77tITboxcu9XmJzVyw7PE7yG4y eDvVNCbGVifL9uWjlhLTTMLT4j7yUcNzxKjDpkKMfMgZQRBD2g87r+VyDrYSOhhr0C1K 7o1w== X-Gm-Message-State: AOAM530Z/hu32sSUpyEAVD5XFeoK1ykLCXrzIxZuEHQFfrEUy3qs0cFZ 2Zhq9brPEbN/apO+hgnzqtTLJZHEu0E= X-Google-Smtp-Source: ABdhPJw/s6Q2/6hMDn48k3JH83TLIcDPdWYmaU+Ss6CVExGXT7g1QrTWhZqIYCkNHV6gOBsXAQDuww== X-Received: by 2002:ac2:5215:: with SMTP id a21mr15031193lfl.13.1589310017224; Tue, 12 May 2020 12:00:17 -0700 (PDT) Return-Path: Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id 5sm98247lju.87.2020.05.12.12.00.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2020 12:00:16 -0700 (PDT) From: "Marcin Wojtas" To: devel@edk2.groups.io Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com, kostap@marvell.com Subject: [edk2-platforms: PATCH 3/3] Marvell/Library: UtmiLib: Fix USB mux configuration Date: Tue, 12 May 2020 20:59:31 +0200 Message-Id: <1589309971-12939-4-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589309971-12939-1-git-send-email-mw@semihalf.com> References: <1589309971-12939-1-git-send-email-mw@semihalf.com> If UTMI connected to USB Device, the MUX must be configured prior to the PHY init. Add missing register update in the relevant code. Signed-off-by: Marcin Wojtas --- Silicon/Marvell/Library/UtmiPhyLib/UtmiPhyLib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Silicon/Marvell/Library/UtmiPhyLib/UtmiPhyLib.c b/Silicon/Marvell/Library/UtmiPhyLib/UtmiPhyLib.c index 391b654..5abbcb2 100644 --- a/Silicon/Marvell/Library/UtmiPhyLib/UtmiPhyLib.c +++ b/Silicon/Marvell/Library/UtmiPhyLib/UtmiPhyLib.c @@ -79,6 +79,7 @@ UtmiPhyPowerDown ( } else { Data = 0x0 << UTMI_USB_CFG_DEVICE_EN_OFFSET; } + RegSet (UsbCfgAddr, Data, Mask); /* Set Test suspendm mode */ Mask = UTMI_CTRL_STATUS0_SUSPENDM_MASK; -- 2.7.4