Message ID | 20191221161525.27976-3-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Heiko Schocher |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="mS2/1nOV"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47g9hY1GGYz9s29 for <incoming@patchwork.ozlabs.org>; Sun, 22 Dec 2019 03:15:57 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 590F181680; Sat, 21 Dec 2019 17:15:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="mS2/1nOV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C066280E8D; Sat, 21 Dec 2019 17:15:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BC28980E8D for <u-boot@lists.denx.de>; Sat, 21 Dec 2019 17:15:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd42.google.com with SMTP id b10so12400870iof.11 for <u-boot@lists.denx.de>; Sat, 21 Dec 2019 08:15:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RBqvAGh/FYXslpI0NXUhS/XScLF9kLu1seKK298tUs8=; b=mS2/1nOVtiL4IjQt6NrgeNztdDjOzntKb8tHa8dBRczcxYPi7P/wGfe63RJZyRJ9Vd ggil+VrScf86nJE6VxulmaClHHvUjROA72XvcU+O21x44ev9V608wVO2/E6HVjdpv9G0 WLK4JvWc44QZL4dgI8eiU83cyS35kYcmIHJlg= 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:mime-version:content-transfer-encoding; bh=RBqvAGh/FYXslpI0NXUhS/XScLF9kLu1seKK298tUs8=; b=B6b4FkRqwlLuFxuXyMoBR5kZke8yIFHYMAARbxsBU25ZVSGbSJEWcNH/3kVPzYs6oH i/ouIYlZsFFkkrDxyJGcBjt4FILig/GNx/+lpht2/AjhvW5QGJoJB8GhsngOaV2FuoUC 4UI//lQx4vlgs49GmXj/LkaECNVckojl4IVXs+bzXa776ozsmCUfH8V9bh45s+cUrGjI HOhKg1Hh0+tihZnnhAE0mfstLVW1nOuhUzoikjPigPvyzxg46jVsV531hINGvaXS34I3 A3/hN9zHUaHEro4XAH6jE6Yk2Ld+bbTBAVN/LSEd/pdOU5LCUQH1rZCaQO5Wedh0+e9A 1Jng== X-Gm-Message-State: APjAAAW+Aok4vA/S00RXiFDQWZDixQkoKMG9iLTKfY6WMEG5jgmbX59k Uhr8OzzS8E9LHUg98Js8LKUVUDSgZqY= X-Google-Smtp-Source: APXvYqwKJi9hok/hBfyEUTpcthkndivnc9b5H7CbYraOquwlt/Vs25pE2PbrkM8SgTuXQL2WIyIsRA== X-Received: by 2002:a5d:9c12:: with SMTP id 18mr13906050ioe.211.1576944933568; Sat, 21 Dec 2019 08:15:33 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id r20sm4945005ioc.35.2019.12.21.08.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2019 08:15:33 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Subject: [PATCH 02/12] i2c: designware_i2c: Don't allow changing IC_CLK Date: Sat, 21 Dec 2019 09:15:15 -0700 Message-Id: <20191221161525.27976-3-sjg@chromium.org> X-Mailer: git-send-email 2.24.1.735.g03f4e72817-goog In-Reply-To: <20191221161525.27976-1-sjg@chromium.org> References: <20191221161525.27976-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Cc: Jun Chen <ptchentw@gmail.com> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
i2c: designware_ic2: Improvements to timing
|
expand
|
diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index d359c8c3f8..0eb28191d2 100644 --- a/drivers/i2c/designware_i2c.h +++ b/drivers/i2c/designware_i2c.h @@ -58,9 +58,7 @@ struct i2c_regs { u32 comp_type; }; -#if !defined(IC_CLK) #define IC_CLK 166 -#endif #define NANO_TO_MICRO 1000 /* High and low times in different speed modes (in ns) */
If a different input clock is required then the correct way to do this is with a clock driver. Don't allow boards to override IC_CLK. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/i2c/designware_i2c.h | 2 -- 1 file changed, 2 deletions(-)