All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manish Lachwani <mlachwani@mvista.com>
To: linux-mips@linux-mips.org
Cc: ralf@linux-mips.org
Subject: [PATCH] TX4927 processor can support different speeds
Date: Sun, 23 Jan 2005 11:23:18 -0800	[thread overview]
Message-ID: <20050123192318.GA22681@prometheus.mvista.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

Hi Ralf,

Based on the feedback from Toshiba, the TX4927 processor can support different 
speeds. Attached patch takes care of that. If you find this approach reasonable, 
can you please check it in

Thanks
Manish Lachwani


[-- Attachment #2: common_mips_tx4927_cpuspeed.patch --]
[-- Type: text/plain, Size: 1639 bytes --]

Source: MontaVista Software, Inc. | http://www.mvista.com | Manish Lachwani <mlachwani@mvista.com>
MR: 9936
Type: Enhancement
Disposition: Submitted to linux-mips.org
Keywords:
Signed-off-by: Manish Lachwani  <mlachwani@mvista.com>
Description:
	Based on suggestion from Toshiba, TX4927 can operate at different
	speeds

Index: linux-2.6.10/arch/mips/Kconfig
===================================================================
--- linux-2.6.10.orig/arch/mips/Kconfig
+++ linux-2.6.10/arch/mips/Kconfig
@@ -901,6 +901,14 @@
 	  This Toshiba board is based on the TX4927 processor. Say Y here to
 	  support this machine type
 
+config TOSHIBA_TX4927_CPU_SPEED
+	int "CPU speed of the TX4927 processor (MHz)"
+	depends on TOSHIBA_RBTX4927
+	default 200
+	help
+	  This sets the speed for the TX4927 processor. The default speed
+	  is 200 MHz. 
+
 config TOSHIBA_FPCIB0
 	bool "FPCIB0 Backplane Support"
 	depends on TOSHIBA_RBTX4927
Index: linux-2.6.10/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c
===================================================================
--- linux-2.6.10.orig/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c
+++ linux-2.6.10/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c
@@ -1008,7 +1008,11 @@
 				       mips_hpt_frequency,
 				       mips_hpt_frequency / 1000000);
 #else
-	mips_hpt_frequency = 100000000;
+	/*
+	 * Default TX4927 processor speed is 200 MHz. However, it 
+	 * can be configured by the user
+	 */
+	mips_hpt_frequency = (CONFIG_TOSHIBA_TX4927_CPU_SPEED * 1000000) / 2;
 #endif
 
 	TOSHIBA_RBTX4927_SETUP_DPRINTK(TOSHIBA_RBTX4927_SETUP_TIME_INIT, "+\n");

             reply	other threads:[~2005-01-23 19:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-23 19:23 Manish Lachwani [this message]
2005-01-23 19:41 ` [PATCH] TX4927 processor can support different speeds Thiemo Seufer
2005-01-23 19:51   ` Ralf Baechle
2005-01-23 20:39     ` Manish Lachwani
2005-01-24 20:22       ` Ralf Baechle
2005-01-24 20:48         ` Manish Lachwani
2005-01-24 21:13           ` Maciej W. Rozycki
2005-01-24 21:28             ` Manish Lachwani
  -- strict thread matches above, loose matches on Subject: below --
2005-01-24 21:23 Brad Larson
2005-01-25  0:37 ` Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050123192318.GA22681@prometheus.mvista.com \
    --to=mlachwani@mvista.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.