From patchwork Thu Jun 14 11:43:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 929380 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="Qlq0xvTR"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4161wn09f6z9s19 for ; Thu, 14 Jun 2018 21:43:52 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 7A8DBC21CB6; Thu, 14 Jun 2018 11:43:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 34503C21C29; Thu, 14 Jun 2018 11:43:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2EB26C21C27; Thu, 14 Jun 2018 11:43:45 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id C6B6DC21BE5 for ; Thu, 14 Jun 2018 11:43:44 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id x6-v6so9969849wmc.3 for ; Thu, 14 Jun 2018 04:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=poiQzRm63tHcngQaTmelUYveOjUPLRIkR46kaBCx1QQ=; b=Qlq0xvTRpgx8fFDBtYUvwsedCSpwzYRPgPdL7klzbm1ghopr5eK2LKq6/oJFvmUDoa +j0hY7LF5/wc6lv4upvb11dWupf+3bXmfQbXOsK8hQ8zC+YInZfWaztbSeUwRW+kOWbz 63jQ4p3uxIMVG7EAz0PUA5sjux4spvjt07T1owRjiS+QuZOT181jxcYUXmbmZsiVwqe4 6vsuZhkEv87RuCxc256BAix2iR3ocICV2xWA80Pnxe3CtUhDGCxKU9o6V6Kf2/24avq3 slljgp7sCM8WOpfWzrTxe4lAUSerXbudzQo/6yIey3nGrZQ8B3HLPVKwBcp6ocOWcwfl BzKg== 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=poiQzRm63tHcngQaTmelUYveOjUPLRIkR46kaBCx1QQ=; b=fX4JRL9/bQ5FRE8bVuW3Ilihq9gESh4rUXLXqA2ocgVt0fCuY8gxsPPIAKHQjCwhSt NJfa+6LzsLOrdXyxZdpgW1qrzmDf4VO0unktjWG2grQ57FP2EbJObiZ6BusLuQ/C3SXs Ew3zQ6LDRIbE/zmAhp6bo7myqOKE7B1dsdl5GfbwBbINp3YK7vfv4PsP+GfXXrvB3YIQ AaETGoRiOKtAcSvPZJ4hlGGdpm97J/13p1a/cHFoewHEg/E/GM8TJsr4gbpXW1n7o/5K EeSQpZUGO15XikrKy1EnSPE1O7A/uvD7DyJQt7Vj67SGEQugR6naRJgiVLKyWpDrfT+x /qxg== X-Gm-Message-State: APt69E1daMRjHmN4fTbwtu/ygMxzxrHJpEjNcCtUFmUqtC1jVGaRCOqL CcLiBJ+PCRisu4TTQPpEGNZCrg== X-Google-Smtp-Source: ADUXVKIVSJ4l+xqhpeDnviPvM2z5SaK60V2GQ14+WaJpf4jQo24d0SACEMVtFE43bXdJqxsy2XBhhA== X-Received: by 2002:a1c:2dd5:: with SMTP id t204-v6mr1687749wmt.94.1528976624194; Thu, 14 Jun 2018 04:43:44 -0700 (PDT) Received: from bender.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id b80-v6sm7850426wmf.2.2018.06.14.04.43.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jun 2018 04:43:43 -0700 (PDT) From: Neil Armstrong To: trini@konsulko.com, sjg@chromium.org Date: Thu, 14 Jun 2018 13:43:36 +0200 Message-Id: <1528976621-8397-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 Cc: u-boot@lists.denx.de, linux-amlogic@lists.infradead.org Subject: [U-Boot] [PATCH u-boot 0/5] Amlogic Meson GX Updates for v2018.07 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patchset : - fixes meson-saradc build - adds the meson clock driver from Beniamino with it's consent - switches to the clock driver for Ethernet and I2C - Enables boot from USB if config is enabled - finally enables USB, Regulator & ADC drivers for selected boards Beniamino Galvani (2): clk: add Amlogic meson clock driver meson: use the clock driver Neil Armstrong (3): adc: meson-saradc: fix regmap_init_mem call config: meson-gx-common: Enable USB boot configs: Update Meson GX configs arch/arm/include/asm/arch-meson/clock.h | 117 +++++++++ arch/arm/include/asm/arch-meson/gx.h | 10 - arch/arm/mach-meson/Kconfig | 2 + arch/arm/mach-meson/eth.c | 3 +- board/amlogic/libretech-cc/libretech-cc.c | 4 - board/amlogic/odroid-c2/odroid-c2.c | 3 - configs/khadas-vim_defconfig | 14 ++ configs/libretech-cc_defconfig | 17 ++ configs/odroid-c2_defconfig | 4 + configs/p212_defconfig | 14 ++ drivers/adc/meson-saradc.c | 2 +- drivers/clk/Makefile | 1 + drivers/clk/clk_meson.c | 393 ++++++++++++++++++++++++++++++ drivers/clk/clk_meson.h | 47 ++++ drivers/i2c/meson_i2c.c | 20 +- include/configs/meson-gx-common.h | 7 + 16 files changed, 635 insertions(+), 23 deletions(-) create mode 100644 arch/arm/include/asm/arch-meson/clock.h create mode 100644 drivers/clk/clk_meson.c create mode 100644 drivers/clk/clk_meson.h