From 401a2b5ea43cf6594350dae6855303c1f286680d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=94=A1=E6=9E=AB?= Date: Mon, 4 Jul 2011 21:21:26 +0800 Subject: [PATCH] update newton config file and board file --- arch/arm/configs/rk29_newton_defconfig | 29 +++++++++----------------- arch/arm/mach-rk29/board-rk29-newton.c | 8 +++++++ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/arch/arm/configs/rk29_newton_defconfig b/arch/arm/configs/rk29_newton_defconfig index 2689fbfb03b3..b06786b69b68 100755 --- a/arch/arm/configs/rk29_newton_defconfig +++ b/arch/arm/configs/rk29_newton_defconfig @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.32.27 -# Tue Jun 28 16:05:41 2011 +# Mon Jul 4 21:01:10 2011 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -502,7 +502,7 @@ CONFIG_IRNET=y # # CONFIG_IRDA_CACHE_LAST_LSAP is not set # CONFIG_IRDA_FAST_RR is not set -CONFIG_IRDA_DEBUG=y +# CONFIG_IRDA_DEBUG is not set # # Infrared-port device drivers @@ -660,8 +660,8 @@ CONFIG_MTD_NAND_IDS=y # CONFIG_MTD_NAND is not set CONFIG_MTD_RKNAND=y CONFIG_MTD_NAND_RK29XX=y -CONFIG_RKFTL_PAGECACHE_SIZE=64 CONFIG_MTD_RKNAND_BUFFER=y +# CONFIG_MTD_EMMC_CLK_POWER_SAVE is not set # CONFIG_MTD_NAND_RK29XX_DEBUG is not set # CONFIG_MTD_ONENAND is not set @@ -946,13 +946,17 @@ CONFIG_DEVKMEM=y CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_RK29=y +CONFIG_SERIAL_RK29_STANDARD=y CONFIG_UART0_RK29=y CONFIG_UART0_CTS_RTS_RK29=y +# CONFIG_UART0_DMA_RK29 is not set CONFIG_UART1_RK29=y CONFIG_UART2_RK29=y CONFIG_UART2_CTS_RTS_RK29=y +# CONFIG_UART2_DMA_RK29 is not set CONFIG_UART3_RK29=y CONFIG_UART3_CTS_RTS_RK29=y +# CONFIG_UART3_DMA_RK29 is not set CONFIG_SERIAL_RK29_CONSOLE=y CONFIG_UNIX98_PTYS=y # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set @@ -1009,6 +1013,7 @@ CONFIG_ADC_RK29=y # # CONFIG_RK_HEADSET_DET is not set +# # PPS support # # CONFIG_PPS is not set @@ -1328,12 +1333,7 @@ CONFIG_LCD_AT070TN93=y # # HDMI # -CONFIG_HDMI=y -CONFIG_HDMI_OLD=y -CONFIG_ANX7150=y -# CONFIG_ANX9030 is not set -# CONFIG_HDMI_NEW is not set -# CONFIG_HDMI_DEBUG is not set +# CONFIG_HDMI is not set # # Console display driver support @@ -1761,14 +1761,6 @@ CONFIG_ANDROID_RAM_CONSOLE_ERROR_CORRECTION_POLYNOMIAL=0x11d CONFIG_ANDROID_TIMED_OUTPUT=y CONFIG_ANDROID_TIMED_GPIO=y CONFIG_ANDROID_LOW_MEMORY_KILLER=y - -# -# Qualcomm MSM Camera And Video -# - -# -# Camera Sensor Selection -# # CONFIG_DST is not set # CONFIG_POHMELFS is not set # CONFIG_PLAN9AUTH is not set @@ -1819,8 +1811,7 @@ CONFIG_RK29_SMC=y # # CIR support # -CONFIG_RK_CIR=y -CONFIG_BU92747GUW_CIR=y +# CONFIG_RK_CIR is not set # # File systems diff --git a/arch/arm/mach-rk29/board-rk29-newton.c b/arch/arm/mach-rk29/board-rk29-newton.c index cd1c4ccd3f87..bacd0e616c58 100755 --- a/arch/arm/mach-rk29/board-rk29-newton.c +++ b/arch/arm/mach-rk29/board-rk29-newton.c @@ -1799,11 +1799,19 @@ static void __init machine_rk29_init_irq(void) rk29_gpio_init(); } +static struct cpufreq_frequency_table freq_table[] = { + { .index = 1200000, .frequency = 408000 }, + { .index = 1200000, .frequency = 816000 }, + { .index = 1300000, .frequency = 1008000 }, + { .frequency = CPUFREQ_TABLE_END }, +}; + static void __init machine_rk29_board_init(void) { rk29_board_iomux_init(); board_power_init(); + board_update_cpufreq_table(freq_table); platform_add_devices(devices, ARRAY_SIZE(devices)); #ifdef CONFIG_I2C0_RK29 -- 2.34.1