From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753343AbaI1DX1 (ORCPT ); Sat, 27 Sep 2014 23:23:27 -0400 Received: from mga14.intel.com ([192.55.52.115]:60445 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752180AbaI1DXZ (ORCPT ); Sat, 27 Sep 2014 23:23:25 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,612,1406617200"; d="scan'208";a="597819659" From: "Chen, Alvin" To: Andy Shevchenko , Mark Brown CC: Eric Miao , Russell King , Haojian Zhuang , "linux-arm-kernel@lists.infradead.org" , "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Westerberg, Mika" , "Kweh, Hock Leong" , "Ong, Boon Leong" , "Tan, Raymond" Subject: RE: [PATCH] SPI: spi-pxa2xx: SPI support for Intel Quark X1000 Thread-Topic: [PATCH] SPI: spi-pxa2xx: SPI support for Intel Quark X1000 Thread-Index: AQHP2ZVZkx0ZBJe9NUiWssulYNYxF5wV4pPw Date: Sun, 28 Sep 2014 03:23:21 +0000 Message-ID: <4656BEB6164FC34F8171C6538F1A595B2E99710F@SHSMSX101.ccr.corp.intel.com> References: <1411752349-31490-1-git-send-email-alvin.chen@intel.com> <1411752349-31490-2-git-send-email-alvin.chen@intel.com> <20140926100832.GE27755@sirena.org.uk> <1411741357.22717.4.camel@linux.intel.com> In-Reply-To: <1411741357.22717.4.camel@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id s8S3NkO8007779 > > > > > > +/* see Quark SPI data sheet for implementation rationale */ static > > > +u32 quark_x1000_set_clk_regvals(u32 rate, u32 *dds, u32 *clk_div) { > > > > Please document this in the driver - I don't know if this datasheet is > > public but even if it is it may not stay that way. > > Datasheet is public. > I'm just wondering if we can use just a formula instead of table. > As I said before, there are two formulas, but for the given rate, from the formulas, we can get a lot of pairs, and we also need to select them according to the guidelines which is not formula. The table the datasheet given should be the best one to meet the jitter and duty cycles as the datasheet documented. ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±þG«�éÿŠ{ayºʇڙë,j­¢f£¢·hš�ï�êÿ‘êçz_è®(­éšŽŠÝ¢j"�ú¶m§ÿÿ¾«þG«�éÿ¢¸?™¨è­Ú&£ø§~�á¶iO•æ¬z·švØ^¶m§ÿÿà ÿ¶ìÿ¢¸?–I¥