From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932767AbcHYT63 (ORCPT ); Thu, 25 Aug 2016 15:58:29 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57251 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932473AbcHYT60 (ORCPT ); Thu, 25 Aug 2016 15:58:26 -0400 Date: Thu, 25 Aug 2016 12:58:23 -0700 From: Stephen Boyd To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Michael Turquette , linux-clk@vger.kernel.org, bcm-kernel-feedback-list , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring , Mark Rutland , Eric Anholt , Jon Mason , Florian Fainelli , Stephen Warren , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH V5] clk: bcm: Add driver for BCM53573 ILP clock Message-ID: <20160825195823.GN19826@codeaurora.org> References: <20160823061745.8162-1-zajec5@gmail.com> <20160823062613.13865-1-zajec5@gmail.com> <20160824084738.GB6502@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/25, Rafał Miłecki wrote: > On 24 August 2016 at 10:47, Stephen Boyd wrote: > > On 08/23, Rafał Miłecki wrote: > >> +static int bcm53573_ilp_enable(struct clk_hw *hw) > >> +{ > >> + struct bcm53573_ilp *ilp = container_of(hw, struct bcm53573_ilp, hw); > >> + > >> + writel(0x10199, ilp->pmu + PMU_SLOW_CLK_PERIOD); > >> + writel(0x10000, ilp->pmu + 0x674); > > > > Is there a name for 0x674? > > No in any sources published by Broadcom. I was experimenting with bit > 0x10000 in PMU_SLOW_CLK_PERIOD and 0x10000 in 0x674. Both have to be > set. I was suspecting that maybe one of them is just some trigger and > it can be switched back to 0, but it's not the case. I definitely need > to set both of them to get clock working. Ok no worries, raw number is fine. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project