Signed-off-by: Franck Jullien <franck.jullien@xxxxxxxxx> --- 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@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox