From: Chen Baozi Subject: Re: [PATCH v5 5/5] xen/arm: Platform recognition and initialize arch_timer for the OMAP5 Date: Thu, 8 Aug 2013 20:23:33 +0800 Message-ID: <4E74E182-16F6-463D-B2D4-382F775D04FA@gmail.com> References: <1375959145-13709-1-git-send-email-baozich@gmail.com> <1375959145-13709-6-git-send-email-baozich@gmail.com> <1375964317.970.98.camel@kazak.uk.xensource.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1375964317.970.98.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Julien Grall , Xen Developer List List-Id: xen-devel@lists.xenproject.org On Aug 8, 2013, at 8:18 PM, Ian Campbell wrote: > On Thu, 2013-08-08 at 18:52 +0800, Chen Baozi wrote: >> Signed-off-by: Chen Baozi > > Acked-by: Ian Campbell > > I suppose this cannot be applied without some of the precursors from > this series? It only depends on patch #4. And thanks for pointing out the typos, :) Cheers, Baozi > > A few typos: >> --- >> + * xen/arch/arm/platforma/omap5.c > > "platforms" > >> + * >> + * OMAP5 specific settings >> + * >> + * Chen Baozi >> + * Copyright (c) 2013 >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License as published by >> + * the Free Software Foundation; either version 2 of the License, or >> + * (at your option) any later version. >> + * >> + * This program is distributted in the hope that it will be useful, > > "distributted" > >> + * but WITHOUT ANY WARRANTY; without even the implied warranty of >> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> + * GNU Gerneral Public License for more details. > > "General" > > I checked the rest of the tree and you must have introduced these after > copying the block ;-) > >> + */ >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +static uint16_t num_den[8][2] = { >> + { 0, 0 }, /* not used */ >> + { 26 * 64, 26 * 125 }, /* 12.0 Mhz */ >> + { 2 * 768, 2 * 1625 }, /* 13.0 Mhz */ >> + { 0, 0 }, /* not used */ >> + { 130 * 8, 130 * 25 }, /* 19.2 Mhz */ >> + { 2 * 384, 2 * 1625 }, /* 26.0 Mhz */ >> + { 3 * 256, 3 * 1125 }, /* 27.0 Mhz */ >> + { 130 * 4, 130 * 25 }, /* 38.4 Mhz */ >> +}; >> + >> +/* >> + * The realtime counter also called master counter, is a free-running >> + * counter, which is related to real time. It produces the count used >> + * by the CPU local timer peripherals in teh MPU cluster. The timer counts > > teh -> the > > Ian. >