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 6DD93211093AB for ; Mon, 18 Jun 2018 15:59:03 -0700 (PDT) Received: by mail-lf0-x243.google.com with SMTP id u5-v6so5931995lff.13 for ; Mon, 18 Jun 2018 15:59:03 -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=SLFOVfFNO87NKbKjRCaNN3xmv4vbYgqRQ3+ggbw0aM8xkRNZt5ZMBZcovhUtvGrYNK QlnfpNzgJFDjcp7dOXtlYMq8Nug72OUbQGfaIpfBFFLBIpF/fPmRieFfKP4ivAHEOiBF FW0JQg0lm/PkI1m0kDxchA0l0r1+a4mjD/Bs/d0Wj23//nX1byuFzmjMGxL9vTcN/EXq b8LdUkFUb5PopbxxxCGcmXEFmAwe3Tp5c0iXqyP+P4FwAqEn6SbUPoEseAkdrvdHJ+ww JG/dXlmi6sXk8hfHWxtBdti2zl1GKpj9/AYzpudIM0zH/re0OJKpsQ6+51/uD/jV0Igk 8PnQ== 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=OFW+u2MOVA9b/fMuUjLJTr7DzCz2zpf6JMgAEnu+439pl/bGomBpuzpJsRdO0WVQPY e5mIEzwCE8bpmG6qdjdG3Qz2FusMS2rHQWzRDpESMM3FlkrikHnHlhsgw75/BMKnvfDz hHlilvm78ce1FFBVaBZrQdIf1F/yWgBNi3PRqxDNkEk09P7Lgt6juGvDOA2Ho8ZikLpu GeEduG7iS/QDQmH7aPb7APU8cX9anSarDF9LGqqsHsWIgAKRI8hcPh5uJwzsP0ZPn86P MmuNj9+SLniTKzpgN2Jbd3Vy8TOwrgU7sXnkDeRn5O94h6eywvkKP3P0PCW6qZW33w4W 0wFA== X-Gm-Message-State: APt69E1R8S/dBuVfV8qxi2u1x/wW5nAZTJYO542cDB56Jcyf8ZcBUosa MXS/Yk3ajjz10aZiM1Ayd58dLRPwBkY= X-Google-Smtp-Source: ADUXVKI4urL/2XUj9wsqeC6l7Sy9yyzdWpP4q8B0c0CdJy2RejVmD1tovWedj45LbHbQck7t2sMklw== X-Received: by 2002:a2e:2ac3:: with SMTP id q186-v6mr9710110ljq.44.1529362741441; Mon, 18 Jun 2018 15:59:01 -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 h136-v6sm3020754lfe.23.2018.06.18.15.59.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 15:59:00 -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: Tue, 19 Jun 2018 00:58:21 +0200 Message-Id: <1529362724-9244-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529362724-9244-1-git-send-email-mw@semihalf.com> References: <1529362724-9244-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v3 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: Mon, 18 Jun 2018 22:59:03 -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