Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp706156rwd; Wed, 31 May 2023 04:26:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7m42lCuvM8E2ofAIsnT+DnD5xYqhIH7QC5Ymqj4bUHC9xyyPCR1apPYBPMmx57K0FPHStf X-Received: by 2002:a05:6a00:1581:b0:63d:45f3:9fc with SMTP id u1-20020a056a00158100b0063d45f309fcmr5909993pfk.5.1685532409854; Wed, 31 May 2023 04:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685532409; cv=none; d=google.com; s=arc-20160816; b=tQLK25EA0WhSNmmCHVrfljWP1oS3S/1YGvliCGfxdOOZOh2YGMowyYkG0EDvRtYRv2 H4j03epWhVpmCpfXiJ5R4GJKNBSAjS31eZ9qnkGNeE0SnQvhlrUPM5tjI594Z/lnYzNh Zukt/BmZXlxmJQT+OzlVXsx7dRwRmXJTwxemPpm16mhRHFtDfPHogzCuckdFQPrxq9oH m0zhkqDuGFOm+aO5p1WTwN5b99xUnNNda54QQMqht7tD9OtsIXMUMGFWKnsEximT7u8F VBUxVBn939HEbXyzsV/ALNr0Wm2ARJtVIwZ0Es3d+Pu29E36OdK8/K2RYItn/yWjgTSL 6zAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0nYsWVGJOGz8ttjTDAPLgXM+w4JK5u+IFaSs38V5gSg=; b=Kd2FiJF+HO8e2Ga+z4p/vnfXpTpBUyVs4OPJmmh7atR+w300Lp+uQFpLRfeK6R+n4j TNujJ1+S9H0Kinh/iE4J0+dVgenVYyHKrEsxXE2D4hfeNoT/s80XnVdLw3DtrfKAbXTC zbNzau7KnOUjct0jB+7/LT1TOtLvkAaxD0WAZHjDyPx+pONTa7g/rXaevepLzUl2ja+O cBSGJ5y1sh2n1InqhfMgrQmH/jlI+0v37b7G+zQYRxZsPIyJJRkwZHOmtDrDyGQx3+vK 0nFiL/75QZPPyUZNPe4IvWF1sg+THxBeTOrJMEIldanWGe3hAsUV9a1O3sQQldQKFE5h 7Zlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="QFimioP/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z189-20020a6333c6000000b005307169868bsi803686pgz.488.2023.05.31.04.26.37; Wed, 31 May 2023 04:26:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="QFimioP/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235240AbjEaLR1 (ORCPT + 99 others); Wed, 31 May 2023 07:17:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232240AbjEaLR0 (ORCPT ); Wed, 31 May 2023 07:17:26 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4227ED9; Wed, 31 May 2023 04:17:25 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1b0201d9a9eso6453665ad.0; Wed, 31 May 2023 04:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685531845; x=1688123845; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0nYsWVGJOGz8ttjTDAPLgXM+w4JK5u+IFaSs38V5gSg=; b=QFimioP/PjagTNgtw+kQnPBGCIag/xjs2oR2efYX0UBghA+S0a0LZ/2+Q2ppP8NRoE C7b6OqYJtimVxqIcd8l4ICNBanylPomKEmsJQ2V+od1nXBwvTE5fkb/rk10oZl45hUrm pzbxtBfSKlG2maEwaRNUdrpwxqJqxSjfxnrxc7crT9DcIZCRlU7R6oHDiE1MoqMrJEkV HyJomgJW5Xo3qorDVfcIDrO/kyb+VfVMZwxe/aSezGx7y6HOleXMSyUpkXK8pCwPREUk WlNDI5EyXlI6fLP4dSePQcsw0OxO7NaLLOrqzxWkYcE/EiJt1ngNaA9/fEHM5MQNF0x/ LVnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685531845; x=1688123845; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0nYsWVGJOGz8ttjTDAPLgXM+w4JK5u+IFaSs38V5gSg=; b=fyBdVUXG46zmFifrO0V6Cznq1o/7ecf4jBOMvGVxvKRM6pvnB4asHZ/wuOPapBhYIp 4szWstXxVoDBu9bksr/bCV+lCX6rpVUQgvg+zKz6B42/BdCpKNBYscfZDaEDLkwsYhFN 0bVWunA2Su9TvWE9K8NrwZ4dTpwfC3FDkqao8YDRBhKWWJfIPEM5oU9iaKOzdHiJ7N4c PWbj4SV6vhODa9gch6HyMj9dM8TNuIpg/FjDPRb/nobpKzT6MaVHKnqq9n9b+NpE5hZU JG3aBgHgxkNc24IMWlgUkIxdqzC8qg7r+W5kFztkjZkqxGujTYf8AfhRr/WMc2nqDzOK GGXQ== X-Gm-Message-State: AC+VfDxY5Qoh/LzGEgc6vnqy4act+awGwgGQba0hTV0ImXbDd7IznmJh BvkSXI8gVeRFTI4nZClbcKk= X-Received: by 2002:a17:903:41c3:b0:1af:f253:24b1 with SMTP id u3-20020a17090341c300b001aff25324b1mr16712771ple.9.1685531844655; Wed, 31 May 2023 04:17:24 -0700 (PDT) Received: from localhost.localdomain (111-82-252-250.emome-ip.hinet.net. [111.82.252.250]) by smtp.gmail.com with ESMTPSA id d17-20020a170903231100b001b0aec3ed59sm1076588plh.256.2023.05.31.04.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 04:17:24 -0700 (PDT) From: Victor Shih To: ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, benchuanggli@gmail.com, HL.Liu@genesyslogic.com.tw, Greg.tu@genesyslogic.com.tw, Victor Shih Subject: [PATCH V4 0/4] Add Genesys Logic GL9767 support Date: Wed, 31 May 2023 19:15:14 +0800 Message-Id: <20230531111518.396868-1-victorshihgli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Victor Shih These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v4 (May. 31, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * add VDD2 definition for power control-register. * Patch#4: use SDHCI_VDD2_POWER_ON to instead SDHCI_POWER_ON in gl9767_init_sd_express() function. use SDHCI_VDD2_POWER_180 to instead SDHCI_POWER_180 in gl9767_init_sd_express() function. ----------------- original cover letter from v3 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v3 (May. 31, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * Patch#2: use msleep() to instead mdelay(). * Patch#3: modify the if-else condition and content in gl9767_init_sd_express() function. adjust the order of definitions. ----------------- original cover letter from v2 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v2 (May. 30, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * Add set SDR104's clock to 205MHz and enable SSC for GL9767. * drop export sdhci_check_ro() function. * Patch#1: add gl9767_vhs_read() and gl9767_vhs_write(). * Patch#3: use mmc->ops->get_ro() to instead sdhci_check_ro(). use msleep() to instead mdelay(). modify the wait time for Power valid to CLKREQ. drop unused definitions. ----------------- original cover letter from v1 ----------------- These patches support for the GL9767 chipset and add support SD3/SD Express mode for the GL9767. Changes in v1 (May. 12, 2023) * rebased to the linux-kernel-v6.4.0-rc1 in Ulf Hansson next branch. * enable MSI interrupt for the GL9767. * add support SDR mode for the GL9767. * export sdhci_check_ro() function. * add support SD Express mode for the GL9767. Victor Shih (4): mmc: sdhci-pci-gli: Add Genesys Logic GL9767 support mmc: sdhci-pci-gli: Set SDR104's clock to 205MHz and enable SSC for GL9767 mmc: sdhci: Add VDD2 definition for power control register mmc: sdhci-pci-gli: Add support SD Express card for GL9767 drivers/mmc/host/sdhci-pci-core.c | 1 + drivers/mmc/host/sdhci-pci-gli.c | 406 ++++++++++++++++++++++++++++++ drivers/mmc/host/sdhci-pci.h | 2 + drivers/mmc/host/sdhci.h | 8 + 4 files changed, 417 insertions(+) -- 2.25.1