From patchwork Thu Apr 18 01:26:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rashmica Gupta X-Patchwork-Id: 1087331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44l1gD32Phz9s3l for ; Thu, 18 Apr 2019 11:27:20 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FaQop+Ti"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44l1gC5QwqzDqPC for ; Thu, 18 Apr 2019 11:27:19 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::441; helo=mail-pf1-x441.google.com; envelope-from=rashmica.g@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FaQop+Ti"; dkim-atps=neutral Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 44l1g32Dq3zDqNr for ; Thu, 18 Apr 2019 11:27:10 +1000 (AEST) Received: by mail-pf1-x441.google.com with SMTP id 9so289929pfj.13 for ; Wed, 17 Apr 2019 18:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bPEE8QFXRlpGfaZSbHJYfBOA1JjuAnZz12ODLkZ5Nd0=; b=FaQop+TiswUZnuWk/lNLa1hYnFUgswo13xbLR2cZUMiAG9zrbed0hwIQY5JhsoVouC ciQrB0Svl6JxCOD4rzN5Dn2l72c+C2Ro7X/CRpylRZxDgmBDUnge34fk8oevoq1FZwel PMZhJLWzijPpGAwklrm/6mSsVMaqCv8PKJ4Km1b/wzBtr0r3TomlIsbrMhtaaqtGV3Y2 E9dVonn6PeOKWVYN5yYzxMAWuk6VsEZKqRfEOqv37IJjrPv0Kv+CrQbP1FpOvXzfqBlt ZJPuAUkERSGJc8pMQIoOQDmhLgNSrOt3og1nzDT+nxk8mY2S7WiEOyBSZrMbeser3DjO Z+/w== 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=bPEE8QFXRlpGfaZSbHJYfBOA1JjuAnZz12ODLkZ5Nd0=; b=fc11D6D0P/mYDSJdZ+cOj5oCvibzm98pYsAqqN4Ii58lSGPkBSt2/7DPgU0+nyhxBp NwysIaHhjD0oY0J3Sm9thHz5DGaSQF4Ci9/F5RTlVfI8UliiF8/0Uc3tsFToiMasqENH tg9nAyFJYOFF/qUt9slEPCYUiVetyccb80BEEUQaG6/yXKtNjIRBnnB+NVzDcQ8xG/nS JCEPs6Bxy+HdxjnlUgWGqxRzBP7SKi45ASBM8TZQ17mKV3F/n9dST4Mf2zBLldwDMHfp Kve65FqX9kU6aPMUaqzy4xS33D+Mzs2gaXlocYHULGlpNZj2T5XTQ95+tAb6RLeplwyG EX/g== X-Gm-Message-State: APjAAAX9L/n6GO3HYdkMYWtQS+ELZ7wsJQsC3uoO9s9ElZQLLbXYFHW1 P8UF9TeDL+xOZX62lt1/uwflu8rw X-Google-Smtp-Source: APXvYqxKJ8bjc2c+xjoI/AT5JciKbFrodmKyndr0YdZGu9tIRUC0jNZ/DvrXRsghTshElh9OiMPGMQ== X-Received: by 2002:a63:84c7:: with SMTP id k190mr84460204pgd.255.1555550828745; Wed, 17 Apr 2019 18:27:08 -0700 (PDT) Received: from rashmica.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id j62sm610585pfg.6.2019.04.17.18.27.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Apr 2019 18:27:07 -0700 (PDT) From: Rashmica Gupta To: pdbg@lists.ozlabs.org, alistair@popple.id.au, joel@jms.id.au Date: Thu, 18 Apr 2019 11:26:54 +1000 Message-Id: <20190418012658.23315-1-rashmica.g@gmail.com> X-Mailer: git-send-email 2.17.2 Subject: [Pdbg] [PATCH v2 0/4] Add i2c put and get to pdbg X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" This series is dependant on Amitay's hexdump series. v1->v2: clearer separation of i2cm/i2cbus, uint8_t parser in separate patch Rashmica Gupta (4): pdbg: Add in parser for uint8_t libpdbg: use i2ctools lib libpdbg: Add i2c get and put functions for i2c master on CFAM libpdbg: Add i2c get and put for i2c masters on the PIB Makefile.am | 6 + configure.ac | 5 + libpdbg/i2cm.c | 686 ++++++++++++++++++++++++++++++++++++++++++++++ libpdbg/libpdbg.h | 5 + libpdbg/target.c | 22 ++ libpdbg/target.h | 16 ++ p9-host.dts.m4 | 46 ++++ p9-i2c.dts.m4 | 21 ++ p9-kernel.dts.m4 | 8 + src/i2c.c | 79 ++++++ src/main.c | 6 +- src/parsers.c | 18 ++ src/parsers.h | 2 + 13 files changed, 918 insertions(+), 2 deletions(-) create mode 100644 libpdbg/i2cm.c create mode 100644 p9-i2c.dts.m4 create mode 100644 src/i2c.c