Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3C65C4332F for ; Fri, 23 Dec 2022 12:33:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A2FE585448; Fri, 23 Dec 2022 13:33:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=microchip.com header.i=@microchip.com header.b="ufwUlbEV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1EE5185478; Fri, 23 Dec 2022 13:33:48 +0100 (CET) Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F2B4985444 for ; Fri, 23 Dec 2022 13:33:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Sergiu.Moga@microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1671798823; x=1703334823; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ptMvMEr84ODp9D2v1ZtZjVxnTduu7u+aZeo69euEBZQ=; b=ufwUlbEVoLyszxebwfROE2u70ShCakzJ17hxv362nvAwExB7jddYvvB8 FGceIqQsh4Tlv+QFhSIfZlb/bUsR427CcxhIHslt5GOyP3IO1vPA0XUXa IcY6+8g49G4GCmmiG11bpsUnQiZ5Z6evpZczDEpSbhO4Krd5PorRT5/SN +4OxBUUsWCY6AJPtv80zThNJHF3MhJdpuIMKZ1gNkCMv+wKTISeaNt3oq YtB3mWDqhJZLpwPwYI7Pcfv//jNDGewQOsPktQmSyXX2CnYRSwaayXRCK DrKHnLldPexF+ndL9y3PzAG1Uly8BwuelT/59r17oMAymubrvKf+l5SFd w==; X-IronPort-AV: E=Sophos;i="5.96,268,1665471600"; d="scan'208";a="193013376" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 Dec 2022 05:33:40 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Fri, 23 Dec 2022 05:33:40 -0700 Received: from ROB-ULT-M68701.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Fri, 23 Dec 2022 05:33:37 -0700 From: Sergiu Moga To: , , , , , , , , CC: , Sergiu Moga Subject: [PATCH 0/5] Support the required clocks to enable USB on SAM9X60 Date: Fri, 23 Dec 2022 14:33:09 +0200 Message-ID: <20221223123313.362676-1-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This patch series originates from a bigger patch series: https://lists.denx.de/pipermail/u-boot/2022-December/502865.html A driver for clock operations on SAM9X60's USB clock has been added as well as its registration on CCF. In order for USB to work properly, the UPLL and USBCK need an initial frequency before probing the OHCI/EHCI driver. Furthermore enable this driver in the defconfigs. Claudiu Beznea (1): clk: at91: pmc: export clock setup to pmc Sergiu Moga (4): clk: at91: Add support for sam9x60 USB clock clk: at91: sam9x60: Register the required clocks for USB clk: at91: sam9x60: Add initial setup of UPLL and USBCK rates configs: at91: sam9x60: Add required configs for the USB clock configs/sam9x60_curiosity_mmc_defconfig | 1 + configs/sam9x60ek_mmc_defconfig | 1 + configs/sam9x60ek_nandflash_defconfig | 1 + configs/sam9x60ek_qspiflash_defconfig | 1 + drivers/clk/at91/Kconfig | 7 ++ drivers/clk/at91/Makefile | 1 + drivers/clk/at91/clk-sam9x60-usb.c | 157 ++++++++++++++++++++++++ drivers/clk/at91/pmc.c | 42 +++++++ drivers/clk/at91/pmc.h | 27 ++++ drivers/clk/at91/sam9x60.c | 63 ++++++++++ drivers/clk/at91/sama7g5.c | 48 +------- 11 files changed, 307 insertions(+), 42 deletions(-) create mode 100644 drivers/clk/at91/clk-sam9x60-usb.c -- 2.34.1