📄 embtf.h
字号:
/* * vivi/include/arch-s3c2410/embtf.h: * Specific definitions for EMBTF * * Author: Janghoon Lyu * Created: October 22, 2003 * Copyright: MIZI Research, Inc. All rights reserved. * * Last modified: $Date: 2003/11/21 09:11:48 $ * $Revision: 1.5 $ * * 2003-10-22 Initial release. * By Janghoon Lyu * * 2003-11-30 Change GPIO initial values. * By Chan Gyun Jeong */#ifndef _EMBTF_H_#define _EMBTF_H_#include <config.h>#include <arch/s3c2410.h>/* * Architecture magic and machine type * NOTE: Below 'MACH_TYPE' does not _real_ mach type. * If you want to change mach type, you should be * modify the variable of 'default_vivi_parameters' * in the 'vivi/arch/s3c2410/embtf.c' */#define MACH_TYPE 393 #define VIVI_MAGIC (0x43090000 | MACH_TYPE)/* * Miscellaneous */#define FIN 12000000#define UART_REF_CLK (50700000)/* * Default values for processor's control register */#define vLOCKTIME 0x00ffffff /* Hardware reset value */#define vCLKCON 0x0000fff8 /* Hardware reset value */ /* * 202.80 MHz, 101.40 MHz, 50.7 MHz. * These values are recommaned by SOC. */#define vCLKDIVN 0x3 /* FCLK:HCLK_PCLK = 1:2:4 */#define MDIV 0xa1#define PDIV 0x3#define SDIV 0x1#define vMPLLCON ((MDIV << 12) | (PDIV << 4) | (SDIV))/* Initial values for DRAM */#define vBWSCON 0x2211d110 //0x22111110#define vBANKCON0 0x00000700#define vBANKCON1 0x00000700#define vBANKCON2 0x00000700#define vBANKCON3 0x00001f7c#define vBANKCON4 0x00000700#define vBANKCON5 0x00000700#define vBANKCON6 0x00018005#define vBANKCON7 0x00018005#define vREFRESH 0x008e0459#define vBANKSIZE 0xb2#define vMRSRB6 0x30#define vMRSRB7 0x30/* initial values for serial */#define vULCON 0x3 /* UART, no parity, one stop bit, 8 bits */#define vUCON 0x245#define vUFCON 0x0#define vUMCON 0x0/* inital values for GPIOs */#define vGPACON 0x007fffff#define vGPADAT 0x00000000#define vGPBCON 0x00015405#define vGPBDAT 0x00000000#define vGPBUP 0x000007ff#define vGPCCON 0xaaaaaaaa#define vGPCDAT 0x00000000#define vGPCUP 0x0000ffff#define vGPDCON 0xaaaaaaaa#define vGPDDAT 0x00000000#define vGPDUP 0x0000ffff#define vGPECON 0x55000000#define vGPEDAT 0x00000000#define vGPEUP 0x0000ffff#define vGPFCON 0x00000000#define vGPFDAT 0x00000000#define vGPFUP 0x000000ff#define vGPGCON 0x00005400#define vGPGDAT 0x00000000#define vGPGUP 0x0000ffff#define vGPHCON 0x0014faaa#define vGPHDAT 0x00000000#define vGPHUP 0x000007ff#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -