mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
support DDR
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
#include <asm/cputype.h>
|
||||
#include <asm/mach/map.h>
|
||||
#include <mach/memory.h>
|
||||
#ifdef CONFIG_ARCH_RK2818
|
||||
#include <mach/rk2818_iomap.h>
|
||||
#endif
|
||||
#include "tcm.h"
|
||||
|
||||
/* Scream and warn about misuse */
|
||||
@@ -51,7 +54,11 @@ static struct resource itcm_res = {
|
||||
static struct map_desc dtcm_iomap[] __initdata = {
|
||||
{
|
||||
.virtual = DTCM_OFFSET,
|
||||
#ifdef CONFIG_ARCH_RK2818
|
||||
.pfn = __phys_to_pfn(RK2818_SRAM_PHYS),
|
||||
#else
|
||||
.pfn = __phys_to_pfn(DTCM_OFFSET),
|
||||
#endif
|
||||
.length = (DTCM_END - DTCM_OFFSET + 1),
|
||||
.type = MT_UNCACHED
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ obj-y += proc_comm.o
|
||||
obj-y += vreg.o
|
||||
obj-y += clock.o
|
||||
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
|
||||
obj-y += ddr.o
|
||||
obj-y += dma.o
|
||||
obj-$(CONFIG_RK28_ADC) += adc.o
|
||||
obj-$(CONFIG_MACH_RK2818MID) += board-midsdk.o
|
||||
|
||||
@@ -1203,6 +1203,15 @@ static void recalculate_root_clocks(void)
|
||||
}
|
||||
}
|
||||
|
||||
void clk_recalculate_root_clocks(void)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&clockfw_lock, flags);
|
||||
recalculate_root_clocks();
|
||||
spin_unlock_irqrestore(&clockfw_lock, flags);
|
||||
}
|
||||
|
||||
/**
|
||||
* clk_preinit - initialize any fields in the struct clk before clk init
|
||||
* @clk: struct clk * to initialize
|
||||
|
||||
1549
arch/arm/mach-rk2818/ddr.c
Normal file
1549
arch/arm/mach-rk2818/ddr.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,8 @@
|
||||
#define ITCM_OFFSET 0xff400000
|
||||
#define ITCM_END 0xff401fff
|
||||
#define DTCM_OFFSET 0xff404000
|
||||
#define DTCM_END 0xff407fff
|
||||
#define DTCM_END 0xff404fff // use sram for dtcm,sram length = 4K.
|
||||
/* #define DTCM_END 0xff407fff */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user