MIPS: remove CONFIG_SYS_MHZ
Resolve all uses of CONFIG_SYS_MHZ with the currently defined value. Remove code which depends on CONFIG_SYS_MHZ but where no board configs actually use that code. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
ac14db1ca9
commit
e9dcd5b402
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
/* PLL setup */
|
/* PLL setup */
|
||||||
#define JZ4780_SYS_EXTAL 48000000
|
#define JZ4780_SYS_EXTAL 48000000
|
||||||
#define JZ4780_SYS_MEM_SPEED (CONFIG_SYS_MHZ * 1000000)
|
#define JZ4780_SYS_MEM_SPEED (1200 * 1000000)
|
||||||
#define JZ4780_SYS_MEM_DIV 3
|
#define JZ4780_SYS_MEM_DIV 3
|
||||||
#define JZ4780_SYS_AUDIO_SPEED (768 * 1000000)
|
#define JZ4780_SYS_AUDIO_SPEED (768 * 1000000)
|
||||||
|
|
||||||
|
@ -399,11 +399,7 @@ static void cpu_mux_select(int pll)
|
|||||||
((2 - 1) << CPM_CPCCR_L2DIV_BIT) |
|
((2 - 1) << CPM_CPCCR_L2DIV_BIT) |
|
||||||
((1 - 1) << CPM_CPCCR_CDIV_BIT);
|
((1 - 1) << CPM_CPCCR_CDIV_BIT);
|
||||||
|
|
||||||
if (CONFIG_SYS_MHZ >= 1000)
|
clk_ctrl |= (12 - 1) << CPM_CPCCR_PDIV_BIT;
|
||||||
clk_ctrl |= (12 - 1) << CPM_CPCCR_PDIV_BIT;
|
|
||||||
else
|
|
||||||
clk_ctrl |= (6 - 1) << CPM_CPCCR_PDIV_BIT;
|
|
||||||
|
|
||||||
clrsetbits_le32(cpm_regs + CPM_CPCCR, 0x00ffffff, clk_ctrl);
|
clrsetbits_le32(cpm_regs + CPM_CPCCR, 0x00ffffff, clk_ctrl);
|
||||||
|
|
||||||
while (readl(cpm_regs + CPM_CPCSR) & (CPM_CPCSR_CDIV_BUSY |
|
while (readl(cpm_regs + CPM_CPCSR) & (CPM_CPCSR_CDIV_BUSY |
|
||||||
|
@ -350,10 +350,6 @@ static const struct jz4780_ddr_config H5TQ2G83CFR_48_config = {
|
|||||||
.pulldn = 0x0e,
|
.pulldn = 0x0e,
|
||||||
};
|
};
|
||||||
|
|
||||||
#if (CONFIG_SYS_MHZ != 1200)
|
|
||||||
#error No DDR configuration for CPU speed
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const struct jz4780_ddr_config *jz4780_get_ddr_config(void)
|
const struct jz4780_ddr_config *jz4780_get_ddr_config(void)
|
||||||
{
|
{
|
||||||
const int board_revision = ci20_revision();
|
const int board_revision = ci20_revision();
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
#define CONFIG_SYS_MHZ 200
|
#define CONFIG_SYS_MIPS_TIMER_FREQ 200000000
|
||||||
#define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
|
|
||||||
|
|
||||||
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
||||||
|
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
#define CONFIG_SYS_MHZ 325
|
#define CONFIG_SYS_MIPS_TIMER_FREQ 325000000
|
||||||
#define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
|
|
||||||
|
|
||||||
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
||||||
|
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
#define CONFIG_SYS_MHZ 375
|
#define CONFIG_SYS_MIPS_TIMER_FREQ 375000000
|
||||||
#define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
|
|
||||||
|
|
||||||
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
#define CONFIG_SYS_SDRAM_BASE 0x80000000
|
||||||
|
|
||||||
|
@ -10,8 +10,7 @@
|
|||||||
#define __CONFIG_CI20_H__
|
#define __CONFIG_CI20_H__
|
||||||
|
|
||||||
/* Ingenic JZ4780 clock configuration. */
|
/* Ingenic JZ4780 clock configuration. */
|
||||||
#define CONFIG_SYS_MHZ 1200
|
#define CONFIG_SYS_MIPS_TIMER_FREQ 1200000000
|
||||||
#define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
|
|
||||||
|
|
||||||
/* Memory configuration */
|
/* Memory configuration */
|
||||||
#define CONFIG_SYS_MONITOR_LEN (512 * 1024)
|
#define CONFIG_SYS_MONITOR_LEN (512 * 1024)
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
/*
|
/*
|
||||||
* CPU Configuration
|
* CPU Configuration
|
||||||
*/
|
*/
|
||||||
#define CONFIG_SYS_MHZ 250 /* arbitrary value */
|
#define CONFIG_SYS_MIPS_TIMER_FREQ 250000000
|
||||||
#define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Memory map
|
* Memory map
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#define __CONFIG_H
|
#define __CONFIG_H
|
||||||
|
|
||||||
#define CONFIG_SYS_MHZ 280
|
#define CONFIG_SYS_MIPS_TIMER_FREQ 280000000
|
||||||
#define CONFIG_SYS_MIPS_TIMER_FREQ (CONFIG_SYS_MHZ * 1000000)
|
|
||||||
|
|
||||||
#define CONFIG_SYS_SDRAM_BASE 0xa0000000
|
#define CONFIG_SYS_SDRAM_BASE 0xa0000000
|
||||||
|
|
||||||
|
@ -872,7 +872,6 @@ CONFIG_SYS_MDIO1_OFFSET
|
|||||||
CONFIG_SYS_MEMORY_BASE
|
CONFIG_SYS_MEMORY_BASE
|
||||||
CONFIG_SYS_MEM_RESERVE_SECURE
|
CONFIG_SYS_MEM_RESERVE_SECURE
|
||||||
CONFIG_SYS_MFD
|
CONFIG_SYS_MFD
|
||||||
CONFIG_SYS_MHZ
|
|
||||||
CONFIG_SYS_MIPS_TIMER_FREQ
|
CONFIG_SYS_MIPS_TIMER_FREQ
|
||||||
CONFIG_SYS_MMC_CD_PIN
|
CONFIG_SYS_MMC_CD_PIN
|
||||||
CONFIG_SYS_MMC_CLK_OD
|
CONFIG_SYS_MMC_CLK_OD
|
||||||
|
Loading…
Reference in New Issue
Block a user