mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Franck Jullien <franck.jullien@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] openrisc: generic board cleanup
Date: Tue, 16 Oct 2012 21:54:56 +0200	[thread overview]
Message-ID: <1350417296-26963-3-git-send-email-franck.jullien@gmail.com> (raw)
In-Reply-To: <1350417296-26963-1-git-send-email-franck.jullien@gmail.com>

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
---
 arch/openrisc/boards/generic/config.h  |    7 +++----
 arch/openrisc/boards/generic/generic.c |    2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/arch/openrisc/boards/generic/config.h b/arch/openrisc/boards/generic/config.h
index 88d2929..95260cd 100644
--- a/arch/openrisc/boards/generic/config.h
+++ b/arch/openrisc/boards/generic/config.h
@@ -1,16 +1,15 @@
 #ifndef _GENERIC_NAMES_H_
 #define _GENERIC_NAMES_H_
 
-#define CONFIG_SYS_CLK_FREQ		20000000
+#define CONFIG_SYS_CLK_FREQ		50000000
 
-#define OPENRISC_TIMER_FREQ		20000000
+#define OPENRISC_TIMER_FREQ		CONFIG_SYS_CLK_FREQ
 
 #define OPENRISC_SOPC_MEMORY_BASE	0x00000000
 #define OPENRISC_SOPC_MEMORY_SIZE	0x02000000
 
+#define OPENRISC_SOPC_UART_FREQ		CONFIG_SYS_CLK_FREQ
 #define OPENRISC_SOPC_UART_BASE		0x90000000
-#define CONFIG_SYS_UART_FREQ		CONFIG_SYS_CLK_FREQ
-#define CONFIG_SYS_UART_BAUD		115200
 
 /* We reserve 256K for barebox */
 #define BAREBOX_RESERVED_SIZE		0x40000
diff --git a/arch/openrisc/boards/generic/generic.c b/arch/openrisc/boards/generic/generic.c
index 54c73a5..14b5e18 100644
--- a/arch/openrisc/boards/generic/generic.c
+++ b/arch/openrisc/boards/generic/generic.c
@@ -5,7 +5,7 @@
 #include <ns16550.h>
 
 static struct NS16550_plat serial_plat = {
-	.clock = 50000000,      /* 48MHz (APLL96/2) */
+	.clock = OPENRISC_SOPC_UART_FREQ,
 	.shift = 0,
 };
 
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2012-10-16 19:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-16 19:54 [PATCH 0/2] openrisc: cleanup generic board Franck Jullien
2012-10-16 19:54 ` [PATCH 1/2] openrisc: switch to defaultenv-2 and change boardinfo Franck Jullien
2012-10-16 19:54 ` Franck Jullien [this message]
2012-10-16 21:33   ` [PATCH 2/2] openrisc: generic board cleanup Sascha Hauer
2012-10-17  6:10     ` Franck Jullien
2012-10-21  8:57 ` [PATCH 0/2] openrisc: cleanup generic board Sascha Hauer

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=1350417296-26963-3-git-send-email-franck.jullien@gmail.com \
    --to=franck.jullien@gmail.com \
    --cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox