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::241; helo=mail-lf0-x241.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x241.google.com (mail-lf0-x241.google.com [IPv6:2a00:1450:4010:c07::241]) (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 C1695209605BF for ; Sun, 17 Jun 2018 13:12:30 -0700 (PDT) Received: by mail-lf0-x241.google.com with SMTP id i83-v6so21558471lfh.5 for ; Sun, 17 Jun 2018 13:12:30 -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=+lN9UQE+rRm5n1BZPza6g+loU+Hw3BoX8N8yXY24gZ4=; b=xvdZt44GEb2mK+/FffHx3jGEINBGmYOnSMnqy152Hec3aQWbKBOErYTuhc5GzM6rpK SAVvhJGvptjHvtGPB3OAcFRGMNbdXS4SHFC+ds7JIbG3c8p8oOwRKK0duW2OBbGHaFaR EergHdWjP0EX0qU0bgG11kpLe7v2tVFSaXPA+yumNQF/UcLVA+0WZ0Si3EoYcWgd8XW9 zcBrBrRjq0GTniJKrw6eev9tJUsc0p73WiLKVBlhAFyf83NALArT8v3OtgVgaQBFh06D gHowFzTc5RlQSTyFSV7C+T1IgMrfM3/sRUb69Trit9s+gaN8b/iuKZ1VCr0QNwMogNa9 sjAw== 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=+lN9UQE+rRm5n1BZPza6g+loU+Hw3BoX8N8yXY24gZ4=; b=t4DfAGCdn8vd2GN8Nmxssj/r97v8dyE5D9421fb9AWgokvpRhfWZTkVEIlBTmhg07c o+xnpcs0lu7fO0R87fNWPIeK7Ajqs3g8Y4yxrZ1C6cXd91lewpjd0f/oOpKP/hK3CIiX Hvt5qY4G53MfOnYJmrmnrnDEKakK+XQPTM+vsQpYKDdJE1sLLZc05sqxuoSC6sHATUcS 96Yby6CxSpAd1xXjijJqRnv+2KCKoN1n/E0Oxmmt4Xu5oEII2gfSDUlo9UhS56emPD0j I04HnyixjYswxZ06MbRb4UW23yjGziL3IegZO5TgmjL66bLy+dRu6p3DhV2PNYLrg3iM 6UNw== X-Gm-Message-State: APt69E2LPA4BoJl5OjjwcTzkKV5Dzy8PhxASXsv7bcRZYSCruzrOR13l GRhXgCbzQa6PIfcuISR3+mOIduDFZi4= X-Google-Smtp-Source: ADUXVKIGRoSjQSQBvLrxqKRbeke+n95QnkHAg4g/5dVy/uNMvbox4FKN7qVzH+nnzMXM/EiZIGyaTw== X-Received: by 2002:a2e:4dcc:: with SMTP id c73-v6mr6129773ljd.135.1529266348880; Sun, 17 Jun 2018 13:12:28 -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 q75-v6sm387272lfq.47.2018.06.17.13.12.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Jun 2018 13:12:27 -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: Sun, 17 Jun 2018 22:11:42 +0200 Message-Id: <1529266325-18371-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529266325-18371-1-git-send-email-mw@semihalf.com> References: <1529266325-18371-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v2 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: Sun, 17 Jun 2018 20:12:31 -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: Leif Lindholm --- Silicon/Marvell/Marvell.dec | 1 + Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h | 27 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Silicon/Marvell/Include/Library/ArmadaBoardDescLib.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 diff --git a/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h b/Silicon/Marvell/Include/Library/ArmadaBoardDescLib.h new file mode 100644 index 0000000..068535a --- /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; + UINTN UtmiDevCount; + UINTN UtmiPortType; +} MV_BOARD_UTMI_DESC; +#endif /* __ARMADA_SOC_DESC_LIB_H__ */ -- 2.7.4