📄 board-init.c
字号:
/***************************************** Copyright (c) 2002-2003 Sigma Designs, Inc. All Rights Reserved Proprietary and Confidential *****************************************/#include "../config.h"#include "../uart.h"#include "../util.h"#include "../vsprintf.h"#include "../io.h"/* Board specific initialization routine */int board_init(void){ uart_puts("Configuring RCLKOUT\n"); __raw_writel(0x01070014, REG_BASE_SYSTEM + SYS_clkgen2_pll); __raw_writel(0x00000202, REG_BASE_SYSTEM + SYS_clkgen2_div); __raw_writel(0x0C000000, REG_BASE_SYSTEM + SYS_avclk_mux);/* uart_printf("Configuring RCLKOUT done: %x-%x-%x\n", \ __raw_readl(REG_BASE_SYSTEM + SYS_clkgen2_pll), \ __raw_readl(REG_BASE_SYSTEM + SYS_clkgen2_div), \ __raw_readl(REG_BASE_SYSTEM + SYS_avclk_mux));*/ /* add delay for PCI reset */ uart_puts("Waiting for PCI reset\n"); em86xx_msleep(10); //10ms //power up samsung wlan module// uart_puts("Powering up WLAN module\n");// em86xx_gpio_write(7, 1); return(0);}#if defined(CONFIG_ENABLE_IRQHANDLER) && defined(CONFIG_ENABLE_BITMAPS) && defined(CONFIG_ENABLE_USERPREF) && defined (CONFIG_ENABLE_VSYNCPARAM)/* Board specific initialization routine for screen */int board_splashscreen_init(void){#ifndef CONFIG_ENABLE_2NDBOOT uart_puts("Enabling LCD\n"); __raw_writel(0x7F6E, 0x6c138); __raw_writel(0x0808, 0x6c134); __raw_writel(0x0808, 0x6c130);#endif return(0);}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -