Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932954AbcLMJjK (ORCPT ); Tue, 13 Dec 2016 04:39:10 -0500 Received: from lucky1.263xmail.com ([211.157.147.134]:50271 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932549AbcLMJjE (ORCPT ); Tue, 13 Dec 2016 04:39:04 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: shawn.lin@rock-chips.com X-FST-TO: linux-arm-kernel@lists.infradead.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: shawn.lin@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH v1 2/3] clk: rockchip: add clock controller for rk3328 To: Elaine Zhang References: <1481618869-1239-1-git-send-email-zhangqing@rock-chips.com> <1481618869-1239-3-git-send-email-zhangqing@rock-chips.com> Cc: heiko@sntech.de, mturquette@baylibre.com, sboyd@codeaurora.org, xf@rock-chips.com, shawn.lin@rock-chips.com, mark.rutland@arm.com, devicetree@vger.kernel.org, huangtao@rock-chips.com, xxx@rock-chips.com, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, cl@rock-chips.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Shawn Lin Message-ID: Date: Tue, 13 Dec 2016 17:38:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481618869-1239-3-git-send-email-zhangqing@rock-chips.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1872 Lines: 76 Hi, Elaine, I always only keep an eye for mmc stuff here. :) On 2016/12/13 16:47, Elaine Zhang wrote: > Add the clock tree definition for the new rk3328 SoC. > > Signed-off-by: Elaine Zhang > --- ----8<-------------- > + > + /* PD_MMC */ > + MMC(SCLK_SDMMC_DRV, "sdmmc_drv", "sclk_sdmmc", > + RK3328_SDMMC_CON0, 1), > + MMC(SCLK_SDMMC_SAMPLE, "sdmmc_sample", "sclk_sdmmc", > + RK3328_SDMMC_CON1, 0), > + All of offset for these *_sample are wrong, and they should be 1 , the same as *_drv. You could refer to P565 of TRM instead the section of CRU for these details. > + MMC(SCLK_SDIO_DRV, "sdio_drv", "sclk_sdio", > + RK3328_SDIO_CON0, 1), > + MMC(SCLK_SDIO_SAMPLE, "sdio_sample", "sclk_sdio", > + RK3328_SDIO_CON1, 0), > + > + MMC(SCLK_EMMC_DRV, "emmc_drv", "sclk_emmc", > + RK3328_EMMC_CON0, 1), > + MMC(SCLK_EMMC_SAMPLE, "emmc_sample", "sclk_emmc", > + RK3328_EMMC_CON1, 0), > + > + MMC(SCLK_SDMMC_EXT_DRV, "sdmmc_ext_drv", "sclk_sdmmc_ext", > + RK3328_SDMMC_EXT_CON0, 1), > + MMC(SCLK_SDMMC_EXT_SAMPLE, "sdmmc_ext_sample", "sclk_sdmmc_ext", > + RK3328_SDMMC_EXT_CON1, 0), > +}; > + ----8<-------- > +#define RK3328_SDMMC_CON0 0x380 > +#define RK3328_SDMMC_CON1 0x384 > +#define RK3328_SDIO_CON0 0x388 > +#define RK3328_SDIO_CON1 0x38c > +#define RK3328_EMMC_CON0 0x390 > +#define RK3328_EMMC_CON1 0x394 > +#define RK3328_SDMMC_EXT_CON0 0x398 > +#define RK3328_SDMMC_EXT_CON1 0x39C Just wondering is it worth, but this uppercase 'C' isn't consistent with the former lowercase > + > #define RK3368_PLL_CON(x) RK2928_PLL_CON(x) > #define RK3368_CLKSEL_CON(x) ((x) * 0x4 + 0x100) > #define RK3368_CLKGATE_CON(x) ((x) * 0x4 + 0x200) > @@ -130,6 +152,7 @@ > enum rockchip_pll_type { > pll_rk3036, > pll_rk3066, > + pll_rk3328, > pll_rk3399, > }; > > -- Best Regards Shawn Lin