From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4010:c07::243; helo=mail-lf0-x243.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::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 3CC7021107442 for ; Fri, 8 Jun 2018 08:34:46 -0700 (PDT) Received: by mail-lf0-x243.google.com with SMTP id t134-v6so20710800lff.6 for ; Fri, 08 Jun 2018 08:34:46 -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=/u95Jn4GF/m3nEUy3FUBimD+9uilupA7zKjsdTWvrz4=; b=Mrzc2WaLeek52T0Deyz+OKIWVhAu6k6BWJnCexXR+FYBMBx1izbi/1FNxiCsEbeCGo Pg0McF73huK9fnUwBiG11buGuFkyDm2K8vgnfu6+iq6NPTk/lFRQY3mzUVgjAc4ApJMG sRqpwzPoBcX7GLjE9LEqU6hR/pqmdH290nvvQkPgy5mMOUyNQ6RzS/xkVNykPT4RdZC8 zN643vuUYe0slb6RuwugaPvsvJDveEbHLYymCbVrITtFQK2W+PtC8b7hhgNSHDbjert4 E3RKnh9hyDnbGN0w5RgzayrXDQG+hXVQluflL2dSWAG73Zjm6dJ+cztPd9DNZApVinBB jQiQ== 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=/u95Jn4GF/m3nEUy3FUBimD+9uilupA7zKjsdTWvrz4=; b=opSsjFo3pODMQojs3KxiQGCR+3UT3gFqVIdEHYsXNdvRZU8cYfpopVBjRAqIZoMA9o 9IeYBqE/R6NeWmy+Ic+0dKokiMgd4kBTXRjwzbdb6TU/8w+nmpvDEABp281Tm75eWOlw 9kW7oZlQGGD6MYkjJSi2qWhL31ILrB7i5qVWD2ypkoPiqIZinVmGXQOeHW83v/97RcSm e3YobDJ49mHzlp6oBjSwXq50wFtz53PKG7FBj4rjqy1ZP6fOk1T/GYRLPMKuFm1hC0xf wkpWEbXZKcKUgo393hMRwTcM7LUWuxUCUAuZftIceG6XHSG8J1tCRK4nRhncmxsVYRxs hQ7A== X-Gm-Message-State: APt69E0ecFHqxeN3+9jFKnBJTcH81ZWIe86kKE3q8Mkq9q3CJI3clMi1 l7DdJQ4iwnh5CFXpOCZjuwibrJa7riw= X-Google-Smtp-Source: ADUXVKLazg/hI9mdEH1HV9OaokN0j/bEzHHbXUjdFmm2TtXmnAGhe1asbHNiHSvFaQHg/w6btcoFMA== X-Received: by 2002:a19:5c4b:: with SMTP id q72-v6mr4141393lfb.128.1528472083768; Fri, 08 Jun 2018 08:34:43 -0700 (PDT) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id v79-v6sm7355396lfd.32.2018.06.08.08.34.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Jun 2018 08:34:43 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, jinghua@marvell.com, mw@semihalf.com, jsd@semihalf.com, jaz@semihalf.com Date: Fri, 8 Jun 2018 17:34:00 +0200 Message-Id: <1528472063-1660-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528472063-1660-1-git-send-email-mw@semihalf.com> References: <1528472063-1660-1-git-send-email-mw@semihalf.com> Subject: [platforms PATCH 02/25] Marvell/Library: Introduce ArmadaBoardDescLib class X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2018 15:34:46 -0000 This patch adds a new library class that will be helpful to describe a per-board information, which will be processed by BoardDesc protocol. Together with ArmadaSoCDescLib data it will be a flexible solution allowing to provide complete information to the drivers, replacing faulty MvHwDescLib.h. Initially ArmadaBoardDescLib defines per-board UTMI PHYs information structure. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas Reviewed-by: Hua Jing --- Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h | 27 ++++++++++++++++++++ Silicon/Marvell/Marvell.dec | 1 + 2 files changed, 28 insertions(+) diff --git a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h new file mode 100644 index 0000000..2d50067 --- /dev/null +++ b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h @@ -0,0 +1,27 @@ +/** +* +* Copyright (C) 2018, Marvell International Ltd. and its affiliates +* +* This program and the accompanying materials are licensed and made available +* under the terms and conditions of the BSD License which accompanies this +* distribution. The full text of the license may be found at +* http://opensource.org/licenses/bsd-license.php +* +* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* +**/ +#ifndef __ARMADA_BOARD_DESC_LIB_H__ +#define __ARMADA_BOARD_DESC_LIB_H__ + +#include + +// +// UTMI PHY devices per-board description +// +typedef struct { + MV_SOC_UTMI_DESC *SoC; + UINT8 UtmiDevCount; + UINT8 UtmiPortType; +} MV_BOARD_UTMI_DESC; +#endif /* __ARMADA_SOC_DESC_LIB_H__ */ diff --git a/Silicon/Marvell/Marvell.dec b/Silicon/Marvell/Marvell.dec index 2a92eff..db49300 100644 --- a/Silicon/Marvell/Marvell.dec +++ b/Silicon/Marvell/Marvell.dec @@ -60,6 +60,7 @@ gMarvellSpiFlashDxeGuid = { 0x49d7fb74, 0x306d, 0x42bd, { 0x94, 0xc8, 0xc0, 0xc5, 0x4b, 0x18, 0x1d, 0xd7 } } [LibraryClasses] + ArmadaBoardDescLib|Include/Library/ArmadaBoardDescLib.h ArmadaSoCDescLib|Include/Library/ArmadaSoCDescLib.h SampleAtResetLib|Include/Library/SampleAtResetLib.h -- 2.7.4