Skip to content
Snippets Groups Projects
Commit 035cbe99 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

mips: Move per_clk and dev_clk to arch_global_data


Move these field into arch_global_data and tidy up. The other
CONFIG_JZSOC fields are used by various architectures, so just remove
the #ifdef bracketing for these.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 7e2592fd
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,11 @@
/* Architecture-specific global data */
struct arch_global_data {
#ifdef CONFIG_JZSOC
/* There are other clocks in the jz4740 */
unsigned long per_clk; /* Peripheral bus clock */
unsigned long dev_clk; /* Device clock */
#endif
};
/*
......@@ -41,13 +46,9 @@ struct arch_global_data {
typedef struct global_data {
bd_t *bd;
unsigned long flags;
#ifdef CONFIG_JZSOC
/* There are other clocks in the jz4740 */
unsigned long cpu_clk; /* CPU core clock */
unsigned long sys_clk; /* System bus clock */
unsigned long per_clk; /* Peripheral bus clock */
unsigned long mem_clk; /* Memory bus clock */
unsigned long dev_clk; /* Device clock */
/* "static data" needed by most of timer.c */
unsigned long tbl;
unsigned long lastinc;
......
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