summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/rtkload/start.h
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
committerRoman Yeryomin <roman@advem.lv>2012-12-03 00:13:21 +0200
commit5deb3317cb51ac52de922bb55f8492624018906d (patch)
treec2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/files/rtkload/start.h
parent0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff)
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/rtkload/start.h')
-rw-r--r--target/linux/realtek/files/rtkload/start.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/target/linux/realtek/files/rtkload/start.h b/target/linux/realtek/files/rtkload/start.h
new file mode 100644
index 000000000..c5397d2b9
--- /dev/null
+++ b/target/linux/realtek/files/rtkload/start.h
@@ -0,0 +1,46 @@
+#ifndef __RTL_START_H__
+#define __RTL_START_H__
+
+//#include <linux/config.h>
+#include <linux/autoconf.h>
+
+//----- System Registers ------------------------------------------------
+#define REG_REVISION 0xbd01010c
+#define REG_PLLMNR 0xbd010104
+#define REG_SYSCLKR 0xbd010108
+#define REG_GPEFDIR 0xbd010144
+#define REG_GPEFDATA 0xbd010140
+#define REG_MTCR0 0xbd011004
+#define REG_MCR 0xbd011000
+#define REG_MTCR1 0xbd011008
+#define REG_TKNR 0xbd010110
+#define REG_GISR 0xbd010004
+#define REG_WDTCNR 0xbd01005c
+#define REG_CDBR 0xbd010058
+
+//----- Revision bit ----------------------------------------------------
+#define VERSION_B 0x0 //0000
+#define VERSION_C 0x8 //1000
+#define VERSION_D 0x4 //0100
+
+//----- DPLL and Clock Setting ------------------------------------------
+#define VAL_PLLMNR_8186B 0x36704 // 160/128
+#define VAL_SYSCLKR_8186B 0xa0b // CPU=320/2 MEM=320/2.5
+
+#define VAL_PLLMNR_8186C 0x35a03 // 180/108
+#define VAL_SYSCLKR_8186C 0x090b // CPU=270/1.5 MEM=270/2.5
+
+//----- Memory Setting --------------------------------------------------
+#define VAL_FLASH_TIMING 0x88880000
+//#define VAL_FLASH_TIMING 0x33330000 //high speed.
+
+
+#if (defined(CONFIG_SKIP_ADJUST_SYSCLK) )
+ #define CONFIG_DONOT_ADJUST_SYSCLK_MEMSP
+#endif
+//----- Others ----------------------------------------------------------
+#define PCI_LOW_COUNTER 0xFFFF
+#define BOOT_ADDR 0x80100000
+
+#endif
+