From patchwork Wed Apr 15 10:50:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 18338 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3FAqlhY007219 for ; Wed, 15 Apr 2009 10:52:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753180AbZDOKwx (ORCPT ); Wed, 15 Apr 2009 06:52:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752227AbZDOKwx (ORCPT ); Wed, 15 Apr 2009 06:52:53 -0400 Received: from rv-out-0506.google.com ([209.85.198.236]:60616 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752112AbZDOKww (ORCPT ); Wed, 15 Apr 2009 06:52:52 -0400 Received: by rv-out-0506.google.com with SMTP id f9so3043136rvb.1 for ; Wed, 15 Apr 2009 03:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=QMfaGD/DtDQun9rrNyZGiC79QJX3RxSgHo7zLPY5PP8=; b=oW2dVIC1T+33CabLV4TEmh+je5ScjZn8cHB49j+sod64xBqFyKgdrqrW5Yn/KUf2FG qzPvEv4ShFTGDKzIEJA+NOnw1rHXs0upUQWqYc1pV1sBeV7UnNgG7YKQkfAjSTvi0RaW ysPCfzCUtv7AlEE7kkMbDuz0tPjqr/6nLmiJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=e1FONDrlUy7I4Kl7fo0NBzAr2ynazXMd6saSdM+lvQ3jPRX6L7MdvNhUdVo0n5QW8J tOZq1zJJt3SkE7uSNm3W4iMs89LSeBI3S2UiT1EGY7uHe4mdz86m7I6oj8hAwPTA+Ijh r1LAHJv0dFS4+YXPYyTqojxrz/nKONq+V+a0A= Received: by 10.141.204.17 with SMTP id g17mr303244rvq.41.1239792772552; Wed, 15 Apr 2009 03:52:52 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id g31sm17483670rvb.58.2009.04.15.03.52.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 15 Apr 2009 03:52:51 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: johnstul@us.ibm.com, Magnus Damm , lethal@linux-sh.org, gregkh@suse.de, akpm@linux-foundation.org Date: Wed, 15 Apr 2009 19:50:12 +0900 Message-Id: <20090415105012.29940.70431.sendpatchset@rx1.opensource.se> In-Reply-To: <20090415104956.29940.86548.sendpatchset@rx1.opensource.se> References: <20090415104956.29940.86548.sendpatchset@rx1.opensource.se> Subject: [PATCH 02/05] sh: arch earlytimer support Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Extend the 32-bit SuperH timer code to register and probe the earlytimer class of Early Platform Drivers. This registers the sh_cmt driver if compiled-in. Signed-off-by: Magnus Damm --- arch/sh/kernel/time_32.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/sh/kernel/time_32.c +++ work/arch/sh/kernel/time_32.c 2009-04-15 16:59:31.000000000 +0900 @@ -17,6 +17,7 @@ #include #include #include /* for rtc_lock */ +#include #include #include #include @@ -233,6 +234,14 @@ void __init time_init(void) * initialized for us. */ sys_timer = get_sys_timer(); + + /* Make sure all compiled-in early timers register themselves. + * Run probe() for one "earlytimer" device. + */ + early_platform_driver_register_all("earlytimer"); + if (early_platform_driver_probe("earlytimer", 1, 0)) + return; + if (unlikely(!sys_timer)) panic("System timer missing.\n");