X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/cc381d8ad5426cc858e9eeded814dd1a8974cf9f..3d00b9bbe1ed2b958c6940b3b16f0f6907f1471c:/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c diff --git a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c index 249d4c5fd..800441716 100644 --- a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c +++ b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c @@ -31,6 +31,7 @@ #include #include +#include "clock.h" /* NAND */ static struct nand_ecclayout qi_lb60_ecclayout_1gb = { @@ -118,7 +119,6 @@ static struct jz_nand_platform_data qi_lb60_nand_pdata = { .busy_gpio = 94, }; - /* Keyboard*/ /* #define KEEP_UART_ALIVE @@ -238,7 +238,7 @@ static struct fb_videomode qi_lb60_video_modes[] = { .name = "320x240", .xres = 320, .yres = 240, - .pixclock = 700000, + .refresh = 30, .left_margin = 140, .right_margin = 273, .upper_margin = 20, @@ -257,6 +257,7 @@ static struct jz4740_fb_platform_data qi_lb60_fb_pdata = { .modes = qi_lb60_video_modes, .bpp = 24, .lcd_type = JZ_LCD_TYPE_8BIT_SERIAL, + .pixclk_falling_edge = 1, }; @@ -387,12 +388,18 @@ static int __init qi_lb60_init_platform_devices(void) ARRAY_SIZE(jz_platform_devices)); } + +struct jz4740_clock_board_data jz4740_clock_bdata = { + .ext_rate = 12000000, + .rtc_rate = 32768, +}; + extern int jz_gpiolib_init(void); -extern int jz_init_clocks(unsigned long extal); static __init int board_avt2(char *str) { qi_lb60_mmc_pdata.card_detect_active_low = 1; + qi_lb60_mmc_pdata.power_active_low = 1; return 1; } @@ -404,8 +411,8 @@ static int __init qi_lb60_board_setup(void) printk("Qi Hardware JZ4740 QI_LB60 setup\n"); if (jz_gpiolib_init()) panic("Failed to initalize jz gpio\n"); - jz_init_clocks(12000000); + jz4740_clock_init(); board_gpio_setup(); if (qi_lb60_init_platform_devices())