mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
rk2928: add initial support
This commit is contained in:
@@ -871,6 +871,17 @@ config ARCH_RK29
|
||||
help
|
||||
Support for Rockchip's RK29xx SoCs.
|
||||
|
||||
config ARCH_RK2928
|
||||
bool "Rockchip RK2928"
|
||||
select PLAT_RK
|
||||
select CPU_V7
|
||||
select ARM_GIC
|
||||
select PL330
|
||||
select MIGHT_HAVE_CACHE_L2X0
|
||||
select ARM_ERRATA_754322
|
||||
help
|
||||
Support for Rockchip's RK2928 SoCs.
|
||||
|
||||
config ARCH_RK30
|
||||
bool "Rockchip RK30xx"
|
||||
select PLAT_RK
|
||||
@@ -986,6 +997,7 @@ source "arch/arm/mach-realview/Kconfig"
|
||||
|
||||
source "arch/arm/plat-rk/Kconfig"
|
||||
source "arch/arm/mach-rk29/Kconfig"
|
||||
source "arch/arm/mach-rk2928/Kconfig"
|
||||
source "arch/arm/mach-rk30/Kconfig"
|
||||
|
||||
source "arch/arm/mach-sa1100/Kconfig"
|
||||
|
||||
@@ -172,6 +172,7 @@ machine-$(CONFIG_ARCH_PNX4008) := pnx4008
|
||||
machine-$(CONFIG_ARCH_PXA) := pxa
|
||||
machine-$(CONFIG_ARCH_REALVIEW) := realview
|
||||
machine-$(CONFIG_ARCH_RK29) := rk29
|
||||
machine-$(CONFIG_ARCH_RK2928) := rk2928
|
||||
machine-$(CONFIG_ARCH_RK30) := rk30
|
||||
machine-$(CONFIG_ARCH_RPC) := rpc
|
||||
machine-$(CONFIG_ARCH_S3C2410) := s3c2410 s3c2400 s3c2412 s3c2416 s3c2440 s3c2443
|
||||
|
||||
15
arch/arm/mach-rk2928/Kconfig
Normal file
15
arch/arm/mach-rk2928/Kconfig
Normal file
@@ -0,0 +1,15 @@
|
||||
if ARCH_RK2928
|
||||
|
||||
choice
|
||||
prompt "RK2928 Board Type"
|
||||
default MACH_RK2928_SDK
|
||||
|
||||
config MACH_RK2928_FPGA
|
||||
bool "RK2928 FPGA board"
|
||||
|
||||
config MACH_RK2928_SDK
|
||||
bool "RK2928 SDK board"
|
||||
|
||||
endchoice
|
||||
|
||||
endif
|
||||
3
arch/arm/mach-rk2928/Makefile.boot
Normal file
3
arch/arm/mach-rk2928/Makefile.boot
Normal file
@@ -0,0 +1,3 @@
|
||||
zreladdr-y := 0x60408000
|
||||
params_phys-y := 0x60088000
|
||||
initrd_phys-y := 0x60800000
|
||||
1
arch/arm/mach-rk2928/include/mach/clkdev.h
Normal file
1
arch/arm/mach-rk2928/include/mach/clkdev.h
Normal file
@@ -0,0 +1 @@
|
||||
#include <plat/clkdev.h>
|
||||
1
arch/arm/mach-rk2928/include/mach/debug-macro.S
Normal file
1
arch/arm/mach-rk2928/include/mach/debug-macro.S
Normal file
@@ -0,0 +1 @@
|
||||
#include <plat/debug-macro.S>
|
||||
1
arch/arm/mach-rk2928/include/mach/dma-pl330.h
Normal file
1
arch/arm/mach-rk2928/include/mach/dma-pl330.h
Normal file
@@ -0,0 +1 @@
|
||||
#include <plat/dma-pl330.h>
|
||||
1
arch/arm/mach-rk2928/include/mach/entry-macro.S
Normal file
1
arch/arm/mach-rk2928/include/mach/entry-macro.S
Normal file
@@ -0,0 +1 @@
|
||||
#include <plat/entry-macro.S>
|
||||
1
arch/arm/mach-rk2928/include/mach/fiq.h
Normal file
1
arch/arm/mach-rk2928/include/mach/fiq.h
Normal file
@@ -0,0 +1 @@
|
||||
#include <plat/fiq.h>
|
||||
4
arch/arm/mach-rk2928/include/mach/hardware.h
Normal file
4
arch/arm/mach-rk2928/include/mach/hardware.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef __MACH_HARDWARE_H
|
||||
#define __MACH_HARDWARE_H
|
||||
|
||||
#endif
|
||||
14
arch/arm/mach-rk2928/include/mach/memory.h
Normal file
14
arch/arm/mach-rk2928/include/mach/memory.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __MACH_MEMORY_H
|
||||
#define __MACH_MEMORY_H
|
||||
|
||||
#include <mach/io.h>
|
||||
|
||||
/*
|
||||
* SRAM memory whereabouts
|
||||
*/
|
||||
#define SRAM_CODE_OFFSET (RK2928_IMEM_BASE + 0x0000)
|
||||
#define SRAM_CODE_END (RK2928_IMEM_BASE + 0x0FFF)
|
||||
#define SRAM_DATA_OFFSET (RK2928_IMEM_BASE + 0x1000)
|
||||
#define SRAM_DATA_END (RK2928_IMEM_BASE + 0x1FFF)
|
||||
|
||||
#endif
|
||||
13
arch/arm/mach-rk2928/include/mach/sram.h
Normal file
13
arch/arm/mach-rk2928/include/mach/sram.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef __MACH_SRAM_H
|
||||
#define __MACH_SRAM_H
|
||||
|
||||
#include <plat/sram.h>
|
||||
|
||||
#define SRAM_LOOPS_PER_USEC 24
|
||||
#define SRAM_LOOP(loops) do { unsigned int i = (loops); if (i < 7) i = 7; barrier(); while (--i) barrier(); } while (0)
|
||||
/* delay on slow mode */
|
||||
#define sram_udelay(usecs) SRAM_LOOP((usecs)*SRAM_LOOPS_PER_USEC)
|
||||
/* delay on deep slow mode */
|
||||
#define sram_32k_udelay(usecs) SRAM_LOOP(((usecs)*SRAM_LOOPS_PER_USEC)/(24000000/32768))
|
||||
|
||||
#endif
|
||||
1
arch/arm/mach-rk2928/include/mach/system.h
Normal file
1
arch/arm/mach-rk2928/include/mach/system.h
Normal file
@@ -0,0 +1 @@
|
||||
#include <plat/system.h>
|
||||
1
arch/arm/mach-rk2928/include/mach/timex.h
Normal file
1
arch/arm/mach-rk2928/include/mach/timex.h
Normal file
@@ -0,0 +1 @@
|
||||
#include <plat/timex.h>
|
||||
1
arch/arm/mach-rk2928/include/mach/uncompress.h
Normal file
1
arch/arm/mach-rk2928/include/mach/uncompress.h
Normal file
@@ -0,0 +1 @@
|
||||
#include <plat/uncompress.h>
|
||||
Reference in New Issue
Block a user