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 05171C433EF for ; Sat, 12 Mar 2022 09:14:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5E71F83108; Sat, 12 Mar 2022 10:14:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="ZlEoGgTC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AB17F83AE6; Sat, 12 Mar 2022 10:14:25 +0100 (CET) Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 BB0C282F70 for ; Sat, 12 Mar 2022 10:14:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ej1-x62d.google.com with SMTP id yy13so23840710ejb.2 for ; Sat, 12 Mar 2022 01:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=XdrtrVkX1+OQxphXL67uHnvsfWfAuquTUNePfcD54lQ=; b=ZlEoGgTCny7hrdWEt1GRm7etyX6QuIiSiNqxQAjXoNu/VqNSvhJ/Q1ZrlVFM+dn7NC jzJY9zDOWRAe3fg2xX5lMa7jrw3pLXhlArwSjUjwJb4ROx61qGImtgYXpvlafSMtVdsD B/EzPN/kk+1mZoUZwM++3h0IX0/sTN4pGlg6DEj5FoYOaWtHn7n/8NkBW2Xu48fS/omb iRJJyXCnO0qkz9uV58M/Q89YlNAjvN0CER9c2huB/DuQLDjGiE6dEhRMeyDLySscz/eG +4DkxO4F4if0TegNnYlBdWEqFk+rpvaOENYhtJ6XEnzsA0XMi5er0FyFWZ7ui81FcntQ 8hbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=XdrtrVkX1+OQxphXL67uHnvsfWfAuquTUNePfcD54lQ=; b=GJdJH4t2ojlItY7PM6uiBRJC8M5QMqWK0eXLyATfd7pqavtprLKd7tIL8kkefnDzmq Etn6WJK81qfh9xCkrVX+RsgP/jY+hy/dw1GfzK6jOTqV0H4GEgi2omvWmw4DUACyzfP+ tJ0gZ6kgnbNmyCb4SeOwXRGalUZ+PfOKwJfx2xZEuwV/nIAs6xM3QUnleqwO7CtqHMbU d73jgA8aZItbLfSSfDL/v6nxCV+mobhgYZPW/O8knaBDTI2rWm2RymisCF7sQ0DI5s+x bgO/U88HPD5jcaoteshlTIvU6BySssrR5q+R+B9xCGu7MywFiPRA8w7AsSHd2SKe/xEX Ug0w== X-Gm-Message-State: AOAM531j/VAHDDQJiiI9OvrcujNzR1JOoy+W74P30Sr7mkbkogKd+oRM 0F3TYCg8OtkrD2ypZ0FpGRQ= X-Google-Smtp-Source: ABdhPJzMLonyqMvPwl/T5KLAjIVI3PPdS6qBq/MFiPW+/01/B9rrQ/O8xE5KexrCYQCSwTTYNr1tRA== X-Received: by 2002:a17:906:32d0:b0:6ce:e1cf:3f2e with SMTP id k16-20020a17090632d000b006cee1cf3f2emr11266972ejk.214.1647076462224; Sat, 12 Mar 2022 01:14:22 -0800 (PST) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id i21-20020a1709061cd500b006da62ab503csm3989546ejh.157.2022.03.12.01.14.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Mar 2022 01:14:21 -0800 (PST) Message-ID: <0c7e4997-0e2c-21a7-34b7-4fac4b69c8be@gmail.com> Date: Sat, 12 Mar 2022 10:14:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v1 2/2] rockchip: mmc: rockchip_dw_mmc: add rk3066/rk3188 support Content-Language: en-US To: Jagan Teki Cc: kever.yang@rock-chips.com, sjg@chromium.org, philipp.tomsich@vrull.eu, peng.fan@nxp.com, jh80.chung@samsung.com, u-boot@lists.denx.de References: <20220107183406.1804-1-jbx6244@gmail.com> <20220107183406.1804-2-jbx6244@gmail.com> From: Johan Jonker In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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.5 at phobos.denx.de X-Virus-Status: Clean Hi Jagan, On 3/12/22 10:02, Jagan Teki wrote: > On Sat, Jan 8, 2022 at 12:04 AM Johan Jonker wrote: >> >> The Rockchip SoCs rk3066/rk3188 have mmc DT nodes >> with as compatible string "rockchip,rk2928-dw-mshc". >> Add support to the existing driver with help of >> a DM_DRIVER_ALIAS. >> >> This type needs a permanent enabled fifo. >> The other Rockchip SoCs not always have the property >> "fifo-mode" in the TPL/SPL DT nodes, so dtplat structures > > No, it is not true. we have property for spl/tpl to enable that. > "u-boot,spl-fifo-mode" This is not usable for rk3066/rk3188 and OF_PLATDATA in combination with c code as there's no guaranty that other models have this property in the dtplat structure. It's about finding a solution for disabling fifo-mode and OF_PLATDATA. There's also a V2 with a more generic approach. Could you have a look at it as well. Whatever which method is preferred. #if CONFIG_IS_ENABLED(OF_PLATDATA) struct dtd_rockchip_rk3288_dw_mshc dtplat; #endif Johan