From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from f218.mail.ru ([94.100.178.209]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U3mbY-0004Qf-Ag for barebox@lists.infradead.org; Fri, 08 Feb 2013 11:58:57 +0000 From: =?UTF-8?B?QWxleGFuZGVyIFNoaXlhbg==?= Mime-Version: 1.0 Date: Fri, 08 Feb 2013 15:58:52 +0400 Message-ID: <1360324732.215067481@f218.mail.ru> In-Reply-To: <20130208111126.GR19322@game.jcrosoft.org> References: <1360317743-25975-1-git-send-email-shc_work@mail.ru> <1360317743-25975-3-git-send-email-shc_work@mail.ru> <20130208111126.GR19322@game.jcrosoft.org> Reply-To: =?UTF-8?B?QWxleGFuZGVyIFNoaXlhbg==?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: =?UTF-8?B?UmVbMl06IFtQQVRDSCAwMy8xMV0gQVJNOiBjbHBzNzExeDogQWRkcyBjb25m?= =?UTF-8?B?aWcgb3B0aW9uIGZvciBDUFUgUExMIG11bHRpcGxpZXI=?= To: =?UTF-8?B?SmVhbi1DaHJpc3RvcGhlIFBMQUdOSU9MLVZJTExBUkQ=?= Cc: barebox@lists.infradead.org Hello. ... > > +menu "CLPS711X specific settings" > > + > > +config CLPS711X_CPU_PLL_MULT > > + int "CPU PLL multiplier (20-50)" > > + range 20 50 > > + default "40" > > + help > > + Define CPU PLL multiplier. PLL is calculated by formula: > > + PLL Frequency = (PLL Multiplier / 2) * 3686400 Hz > > + Default value is 40, for achieve 73 MHz. > > + > this board specific put this in c code > kconfig is too easy to break > > check how we do on at91 This is not board-specific, this is CPU-specific. PLL multiplier is set up at the start and we not touch it anymore since all system frequencies is depends on it, including SDRAM refresh. How to place this configurable parameter in C code i am not understand. For Kconfig, we can add additional compile-time checker into lowlevel unit which uses this symbol: #if (CLPS711X_CPU_PLL_MULT < 20) || (CLPS711X_CPU_PLL_MULT > 50) #error "CPU PLL multiplier out of range" #endif Thanks! --- _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox