diff options
author | lars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-20 20:45:00 +0000 |
---|---|---|
committer | lars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-20 20:45:00 +0000 |
commit | d0f76caa10028fbdbff38d8eed9442c85202b37f (patch) | |
tree | b2bbef75a47aa0256c9494968b84acd17ed9870b /target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c | |
parent | 9380739d16fa8406e84aaf0ed3d85855c00a5321 (diff) |
[xburst] Add per board struct describing the external clock setup.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19783 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c')
-rw-r--r-- | target/linux/xburst/files-2.6.32/arch/mips/jz4740/board-qi_lb60.c | 12 |
1 files changed, 9 insertions, 3 deletions
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..bf0863626 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 <linux/power/gpio-charger.h> #include <linux/mmc/jz4740_mmc.h> +#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 @@ -387,12 +387,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 +410,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); + jz_init_clocks(); board_gpio_setup(); if (qi_lb60_init_platform_devices()) |