Skip to content
Snippets Groups Projects
Commit f9b814a8 authored by Sricharan R's avatar Sricharan R Committed by Tom Rini
Browse files

ARM: DRA7xx: Correct the SYS_CLK to 20MHZ


The sys_clk on the dra evm board is 20MHZ.
Changing the configuration for the same.
And also moving V_SCLK, V_OSCK defines to
arch/clock.h for OMAP4+ boards.

Signed-off-by: default avatarSricharan R <r.sricharan@ti.com>
Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
parent 378bd1fb
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <common.h> #include <common.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/arch/cpu.h> #include <asm/arch/cpu.h>
#include <asm/arch/clock.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
......
...@@ -214,6 +214,10 @@ ...@@ -214,6 +214,10 @@
#define DPLL_NO_LOCK 0 #define DPLL_NO_LOCK 0
#define DPLL_LOCK 1 #define DPLL_LOCK 1
/* Clock Defines */
#define V_OSCK 38400000 /* Clock output from T2 */
#define V_SCLK V_OSCK
struct omap4_scrm_regs { struct omap4_scrm_regs {
u32 revision; /* 0x0000 */ u32 revision; /* 0x0000 */
u32 pad00[63]; u32 pad00[63];
......
...@@ -284,4 +284,12 @@ ...@@ -284,4 +284,12 @@
* into microsec and passing the value. * into microsec and passing the value.
*/ */
#define CONFIG_DEFAULT_OMAP_RESET_TIME_MAX_USEC 31219 #define CONFIG_DEFAULT_OMAP_RESET_TIME_MAX_USEC 31219
#ifdef CONFIG_DRA7XX
#define V_OSCK 20000000 /* Clock output from T2 */
#else
#define V_OSCK 19200000 /* Clock output from T2 */
#endif
#define V_SCLK V_OSCK
#endif /* _CLOCKS_OMAP5_H_ */ #endif /* _CLOCKS_OMAP5_H_ */
...@@ -45,10 +45,6 @@ ...@@ -45,10 +45,6 @@
#define CONFIG_DISPLAY_CPUINFO 1 #define CONFIG_DISPLAY_CPUINFO 1
#define CONFIG_DISPLAY_BOARDINFO 1 #define CONFIG_DISPLAY_BOARDINFO 1
/* Clock Defines */
#define V_OSCK 38400000 /* Clock output from T2 */
#define V_SCLK V_OSCK
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_OF_LIBFDT 1 #define CONFIG_OF_LIBFDT 1
......
...@@ -45,10 +45,6 @@ ...@@ -45,10 +45,6 @@
#define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO #define CONFIG_DISPLAY_BOARDINFO
/* Clock Defines */
#define V_OSCK 19200000 /* Clock output from T2 */
#define V_SCLK V_OSCK
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_OF_LIBFDT #define CONFIG_OF_LIBFDT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment