diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/clock.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/clock.h index 0f7a35064..5f8263f14 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/clock.h +++ b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/clock.h @@ -15,6 +15,8 @@ #ifndef __ASM_JZ4740_CLOCK_H__ #define __ASM_JZ4740_CLOCK_H__ +#include + #ifndef JZ_EXTAL //#define JZ_EXTAL 3686400 /* 3.6864 MHz */ #define JZ_EXTAL 12000000 /* 3.6864 MHz */ diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/dma.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/dma.h index b82b984ea..821eca90e 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/dma.h +++ b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/dma.h @@ -19,7 +19,8 @@ #include /* need byte IO */ #include /* And spinlocks */ #include -#include +#include +#include /* * Descriptor structure for JZ4740 DMA engine @@ -167,7 +168,6 @@ extern void disable_dma(unsigned int dmanr); extern void set_dma_addr(unsigned int dmanr, unsigned int phyaddr); extern void set_dma_count(unsigned int dmanr, unsigned int bytecnt); extern void set_dma_mode(unsigned int dmanr, unsigned int mode); -extern void jz_set_oss_dma(unsigned int dmanr, unsigned int mode, unsigned int audio_fmt); extern void jz_set_alsa_dma(unsigned int dmanr, unsigned int mode, unsigned int audio_fmt); extern unsigned int get_dma_residue(unsigned int dmanr); diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/irq.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/irq.h new file mode 100644 index 000000000..1b4c0778d --- /dev/null +++ b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/irq.h @@ -0,0 +1,49 @@ +#ifndef __JZ4740_IRQ_H__ +#define __JZ4740_IRQ_H__ +/* + * JZ4740 irqs. + * + * Copyright (C) 2009, Lars-Peter Clausen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#define JZ_IRQ_BASE 8 + +// 1st-level interrupts +#define JZ_IRQ(x) (JZ_IRQ_BASE + (x)) +#define JZ_IRQ_I2C JZ_IRQ(1) +#define JZ_IRQ_UHC JZ_IRQ(3) +#define JZ_IRQ_UART1 JZ_IRQ(8) +#define JZ_IRQ_UART0 JZ_IRQ(9) +#define JZ_IRQ_SADC JZ_IRQ(12) +#define JZ_IRQ_MSC JZ_IRQ(14) +#define JZ_IRQ_RTC JZ_IRQ(15) +#define JZ_IRQ_SSI JZ_IRQ(16) +#define JZ_IRQ_CIM JZ_IRQ(17) +#define JZ_IRQ_AIC JZ_IRQ(18) +#define JZ_IRQ_ETH JZ_IRQ(19) +#define JZ_IRQ_DMAC JZ_IRQ(20) +#define JZ_IRQ_TCU2 JZ_IRQ(21) +#define JZ_IRQ_TCU1 JZ_IRQ(22) +#define JZ_IRQ_TCU0 JZ_IRQ(23) +#define JZ_IRQ_UDC JZ_IRQ(24) +#define JZ_IRQ_GPIO3 JZ_IRQ(25) +#define JZ_IRQ_GPIO2 JZ_IRQ(26) +#define JZ_IRQ_GPIO1 JZ_IRQ(27) +#define JZ_IRQ_GPIO0 JZ_IRQ(28) +#define JZ_IRQ_IPU JZ_IRQ(29) +#define JZ_IRQ_LCD JZ_IRQ(30) + +/* 2nd-level interrupts */ +#define JZ_IRQ_DMA(x) ((x) + JZ_IRQ(32)) /* 32 to 37 for DMAC channel 0 to 5 */ +#define JZ_IRQ_GPIO_0 JZ_IRQ(48) /* 48 to 175 for GPIO pin 0 to 127 */ + +#define JZ_IRQ_INTC_GPIO(x) (JZ_IRQ_GPIO0 - (x)) +#define JZ_IRQ_GPIO(x) ((x) + JZ_IRQ(48) + +#define NR_IRQS (JZ_IRQ_GPIO(127) + 1) + +#endif diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/jz4740.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/jz4740.h index 849d1c254..012f6deb6 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/jz4740.h +++ b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/jz4740.h @@ -22,6 +22,7 @@ /*------------------------------------------------------------------ * Platform definitions */ + #ifdef CONFIG_JZ4740_QI_LB60 #include #endif diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/ops.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/ops.h index 6ff050a63..1d6e35564 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/ops.h +++ b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/ops.h @@ -16,6 +16,8 @@ #ifndef __JZ4740_OPS_H__ #define __JZ4740_OPS_H__ +#include + /* * Definition of Module Operations */ diff --git a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/regs.h b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/regs.h index 3ac58eea7..278acebbf 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/regs.h +++ b/target/linux/xburst/files-2.6.31/arch/mips/include/asm/mach-jz4740/regs.h @@ -68,39 +68,6 @@ #define REG_INTC_IMCR REG32(INTC_IMCR) #define REG_INTC_IPR REG32(INTC_IPR) -// 1st-level interrupts -#define JZ_IRQ_BASE 8 -#define JZ_IRQ(x) (JZ_IRQ_BASE + (x)) -#define JZ_IRQ_I2C JZ_IRQ(1) -#define JZ_IRQ_UHC JZ_IRQ(3) -#define JZ_IRQ_UART1 JZ_IRQ(8) -#define JZ_IRQ_UART0 JZ_IRQ(9) -#define JZ_IRQ_SADC JZ_IRQ(12) -#define JZ_IRQ_MSC JZ_IRQ(14) -#define JZ_IRQ_RTC JZ_IRQ(15) -#define JZ_IRQ_SSI JZ_IRQ(16) -#define JZ_IRQ_CIM JZ_IRQ(17) -#define JZ_IRQ_AIC JZ_IRQ(18) -#define JZ_IRQ_ETH JZ_IRQ(19) -#define JZ_IRQ_DMAC JZ_IRQ(20) -#define JZ_IRQ_TCU2 JZ_IRQ(21) -#define JZ_IRQ_TCU1 JZ_IRQ(22) -#define JZ_IRQ_TCU0 JZ_IRQ(23) -#define JZ_IRQ_UDC JZ_IRQ(24) -#define JZ_IRQ_GPIO3 JZ_IRQ(25) -#define JZ_IRQ_GPIO2 JZ_IRQ(26) -#define JZ_IRQ_GPIO1 JZ_IRQ(27) -#define JZ_IRQ_GPIO0 JZ_IRQ(28) -#define JZ_IRQ_IPU JZ_IRQ(29) -#define JZ_IRQ_LCD JZ_IRQ(30) - -/* 2nd-level interrupts */ -#define JZ_IRQ_DMA(x) ((x) + JZ_IRQ(32)) /* 32 to 37 for DMAC channel 0 to 5 */ -#define IRQ_GPIO_0 JZ_IRQ(48) /* 48 to 175 for GPIO pin 0 to 127 */ - -#define JZ_IRQ_INTC_GPIO(x) (JZ_IRQ_GPIO0 - (x)) -#define JZ_IRQ_GPIO(x) (IRQ_GPIO_0 + (x)) - #define NUM_DMA 6 #define NUM_GPIO 128 /************************************************************************* diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/board-qi_lb60.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/board-qi_lb60.c index 8e30f5f77..9921df369 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/board-qi_lb60.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/board-qi_lb60.c @@ -28,6 +28,7 @@ #include #include #include +#include /* NAND */ @@ -325,12 +326,12 @@ static struct platform_device qi_lb60_gpio_keys = { .platform_data = &qi_lb60_gpio_keys_data, } }; -/* -static struct jz_mmc_platform_data jz_mmc_pdata = { - .card_detect_gpio = JZ_GPIO_PORTD(0), - .read_only_gpio = JZ_GPIO_PORTD(16), - .power_gpio = JZ_GPIO_PORTD(2), -};*/ + +static struct jz4740_mmc_platform_data qi_lb60_mmc_pdata = { + .gpio_card_detect = JZ_GPIO_PORTD(0), + .gpio_read_only = JZ_GPIO_PORTD(16), + .gpio_power = JZ_GPIO_PORTD(2), +}; static struct platform_device *jz_platform_devices[] __initdata = { &jz4740_usb_ohci_device, @@ -362,6 +363,7 @@ static int __init qi_lb60_init_platform_devices(void) jz4740_framebuffer_device.dev.platform_data = &qi_lb60_fb_pdata; jz4740_nand_device.dev.platform_data = &qi_lb60_nand_pdata; jz4740_battery_device.dev.platform_data = &qi_lb60_battery_pdata; + jz4740_mmc_device.dev.platform_data = &qi_lb60_mmc_pdata; spi_register_board_info(qi_lb60_spi_board_info, ARRAY_SIZE(qi_lb60_spi_board_info)); @@ -371,12 +373,14 @@ static int __init qi_lb60_init_platform_devices(void) } extern int jz_gpiolib_init(void); +extern int jz_init_clocks(unsigned long extal); 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); board_gpio_setup(); diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/clock.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/clock.c index 7b43bf231..9a5b2eb0d 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/clock.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/clock.c @@ -473,6 +473,8 @@ static int jz_clk_ldclk_set_rate(struct clk *clk, unsigned long rate) jz_clk_reg_write_mask(JZ_REG_CLOCK_CTRL, div << JZ_CLOCK_CTRL_LDIV_OFFSET, JZ_CLOCK_CTRL_LDIV_MASK); + + return 0; } static unsigned long jz_clk_ldclk_get_rate(struct clk *clk) @@ -704,8 +706,8 @@ struct clk *clk_get(struct device *dev, const char *name) struct clk *clk; list_for_each_entry(clk, &jz_clocks, list) { - if (strcmp(clk->name, name)) - return clk; + if (strcmp(clk->name, name) == 0) + return clk; } return ERR_PTR(-ENOENT); } diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/cpufreq.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/cpufreq.c index d646a1e2e..f80572f6c 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/cpufreq.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/cpufreq.c @@ -17,7 +17,8 @@ #include -#include +#include +#include #include #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, \ @@ -70,24 +71,6 @@ struct dpm_regs { u32 pll_up_flag; /* New PLL freq is higher than current or not */ }; -extern jz_clocks_t jz_clocks; - -static void jz_update_clocks(void) -{ - /* Next clocks must be updated if we have changed - * the PLL or divisors. - */ - jz_clocks.cclk = __cpm_get_cclk(); - jz_clocks.hclk = __cpm_get_hclk(); - jz_clocks.mclk = __cpm_get_mclk(); - jz_clocks.pclk = __cpm_get_pclk(); - jz_clocks.lcdclk = __cpm_get_lcdclk(); - jz_clocks.pixclk = __cpm_get_pixclk(); - jz_clocks.i2sclk = __cpm_get_i2sclk(); - jz_clocks.usbclk = __cpm_get_usbclk(); - jz_clocks.mscclk = __cpm_get_mscclk(); -} - static void jz_init_boot_config(void) { @@ -434,9 +417,6 @@ static void jz4740_transition(struct dpm_regs *regs) REG_LCD_CTRL &= ~LCD_CTRL_DIS; REG_LCD_CTRL |= LCD_CTRL_ENA; #endif - - /* Update system clocks */ - jz_update_clocks(); } extern unsigned int idle_times; diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/dma.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/dma.c index d0ed6e737..24038a233 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/dma.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/dma.c @@ -21,14 +21,14 @@ #include #include #include -#include #include #include -#include #include #include -#include +#include +#include +#include #define JZ_REG_DMA_SRC_ADDR(x) ((x) * 0x20 + 0x00) #define JZ_REG_DMA_DEST_ADDR(x) ((x) * 0x20 + 0x04) @@ -501,39 +501,6 @@ unsigned int get_dma_residue(unsigned int dmanr) return count; } -void jz_set_oss_dma(unsigned int dmanr, unsigned int mode, unsigned int audio_fmt) -{ - struct jz_dma_chan *chan = get_dma_chan(dmanr); - - if (!chan) - return; - - switch (audio_fmt) { - case AFMT_U8: - /* burst mode : 32BIT */ - break; - case AFMT_S16_LE: - /* burst mode : 16BYTE */ - if (mode == DMA_MODE_READ) { - chan->mode = DMA_AIC_32_16BYTE_RX_CMD | DMA_MODE_READ; - chan->mode |= mode & ~(DMAC_DCMD_SAI | DMAC_DCMD_DAI); - mode &= DMA_MODE_MASK; - chan->mode |= DMAC_DCMD_DAI; - chan->mode &= ~DMAC_DCMD_SAI; - } else if (mode == DMA_MODE_WRITE) { - chan->mode = DMA_AIC_32_16BYTE_TX_CMD | DMA_MODE_WRITE; - chan->mode |= mode & ~(DMAC_DCMD_SAI | DMAC_DCMD_DAI); - mode &= DMA_MODE_MASK; - chan->mode |= DMAC_DCMD_SAI; - chan->mode &= ~DMAC_DCMD_DAI; - } else - printk("oss_dma_burst_mode() just supports DMA_MODE_READ or DMA_MODE_WRITE!\n"); - - jz_dma_write(JZ_REG_DMA_CMD(chan->io), chan->mode & ~DMA_MODE_MASK); - jz_dma_write(JZ_REG_DMA_TYPE(chan->io), chan->source); - break; - } -} void jz_set_alsa_dma(unsigned int dmanr, unsigned int mode, unsigned int audio_fmt) { @@ -912,7 +879,6 @@ EXPORT_SYMBOL(jz_set_dma_dest_width); EXPORT_SYMBOL(jz_set_dma_block_size); EXPORT_SYMBOL(jz_set_dma_mode); EXPORT_SYMBOL(set_dma_mode); -EXPORT_SYMBOL(jz_set_oss_dma); EXPORT_SYMBOL(jz_set_alsa_dma); EXPORT_SYMBOL(set_dma_addr); EXPORT_SYMBOL(set_dma_count); diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/irq.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/irq.c index 8fc85d70c..ebdeb1d37 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/irq.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/irq.c @@ -11,28 +11,20 @@ * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. */ +#include +#include + #include #include -#include -#include -#include -#include -#include #include #include #include #include #include -#include #include -#include -#include #include #include -#include -#include -#include #include static void __iomem *jz_intc_base; diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/platform.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/platform.c index e20e36512..05ee4c309 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/platform.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/platform.c @@ -15,7 +15,8 @@ #include #include -#include +#include +#include /* OHCI (USB full speed host controller) */ static struct resource jz4740_usb_ohci_resources[] = { @@ -89,7 +90,7 @@ static struct resource jz4740_mmc_resources[] = { static u64 jz4740_mmc_dmamask = ~(u32)0; struct platform_device jz4740_mmc_device = { - .name = "jz-mmc", + .name = "jz4740-mmc", .id = 0, .dev = { .dma_mask = &jz4740_mmc_dmamask, diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/pm.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/pm.c index 48a994d60..6f40a91c1 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/pm.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/pm.c @@ -23,9 +23,9 @@ #include #include -#include +#include #include -#include +#include extern void jz4740_intc_suspend(void); extern void jz4740_intc_resume(void); @@ -37,7 +37,6 @@ static int jz_pm_enter(suspend_state_t state) unsigned long delta; unsigned long nfcsr = REG_EMC_NFCSR; uint32_t scr = REG_CPM_SCR; - uint32_t sleep_gpio_save[7*3]; /* Preserve current time */ delta = xtime.tv_sec - REG_RTC_RSR; diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/proc.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/proc.c index 8136b7aa7..13d3e08e9 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/proc.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/proc.c @@ -29,7 +29,9 @@ #include #include #include -#include +#include +#include +#include //#define DEBUG 1 #undef DEBUG diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/prom.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/prom.c index 406893976..924717516 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/prom.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/prom.c @@ -40,7 +40,7 @@ #include #include -#include +#include /* #define DEBUG_CMDLINE */ diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/reset.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/reset.c index 359700ab4..20e0f04d0 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/reset.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/reset.c @@ -17,7 +17,8 @@ #include #include #include -#include +#include +#include void jz_restart(char *command) { diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/setup.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/setup.c index 409b1d3f2..896bc16eb 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/setup.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/setup.c @@ -37,17 +37,10 @@ #include #include #include -#include - -#ifdef CONFIG_PM -#include -#endif - -#ifdef CONFIG_PC_KEYB -#include -#endif - -jz_clocks_t jz_clocks; +#include +#include +#include +#include extern char * __init prom_getcmdline(void); extern void __init jz_board_setup(void); @@ -58,40 +51,13 @@ extern void jz_time_init(void); static void __init sysclocks_setup(void) { -#ifndef CONFIG_MIPS_JZ_EMURUS /* FPGA */ - jz_clocks.cclk = __cpm_get_cclk(); - jz_clocks.hclk = __cpm_get_hclk(); - jz_clocks.pclk = __cpm_get_pclk(); - jz_clocks.mclk = __cpm_get_mclk(); - jz_clocks.lcdclk = __cpm_get_lcdclk(); - jz_clocks.pixclk = __cpm_get_pixclk(); - jz_clocks.i2sclk = __cpm_get_i2sclk(); - jz_clocks.usbclk = __cpm_get_usbclk(); - jz_clocks.mscclk = __cpm_get_mscclk(); - jz_clocks.extalclk = __cpm_get_extalclk(); - jz_clocks.rtcclk = __cpm_get_rtcclk(); -#else - -#define FPGACLK 8000000 - - jz_clocks.cclk = FPGACLK; - jz_clocks.hclk = FPGACLK; - jz_clocks.pclk = FPGACLK; - jz_clocks.mclk = FPGACLK; - jz_clocks.lcdclk = FPGACLK; - jz_clocks.pixclk = FPGACLK; - jz_clocks.i2sclk = FPGACLK; - jz_clocks.usbclk = FPGACLK; - jz_clocks.mscclk = FPGACLK; - jz_clocks.extalclk = FPGACLK; - jz_clocks.rtcclk = FPGACLK; -#endif - +#if 0 printk("CPU clock: %dMHz, System clock: %dMHz, Peripheral clock: %dMHz, Memory clock: %dMHz\n", (jz_clocks.cclk + 500000) / 1000000, (jz_clocks.hclk + 500000) / 1000000, (jz_clocks.pclk + 500000) / 1000000, (jz_clocks.mclk + 500000) / 1000000); +#endif } static void __init soc_cpm_setup(void) @@ -139,7 +105,7 @@ static void __init jz_serial_setup(void) s.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST; s.iotype = SERIAL_IO_MEM; s.regshift = 2; - s.uartclk = jz_clocks.extalclk ; + s.uartclk = JZ_EXTAL; s.line = 0; s.membase = (u8 *)UART0_BASE; diff --git a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/time.c b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/time.c index 46bb6d8bf..5b6a7684b 100644 --- a/target/linux/xburst/files-2.6.31/arch/mips/jz4740/time.c +++ b/target/linux/xburst/files-2.6.31/arch/mips/jz4740/time.c @@ -26,7 +26,8 @@ #include #include -#include +#include +#include /* This is for machines which generate the exact clock. */ diff --git a/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c b/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c index 386be34bb..7dd82fe87 100644 --- a/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c +++ b/target/linux/xburst/files-2.6.31/drivers/mmc/host/jz_mmc.c @@ -27,7 +27,7 @@ #include #include -#include +#include #include "jz_mmc.h" diff --git a/target/linux/xburst/files-2.6.31/drivers/usb/gadget/jz4740_udc.c b/target/linux/xburst/files-2.6.31/drivers/usb/gadget/jz4740_udc.c index bde60ddaa..0fdb15316 100755 --- a/target/linux/xburst/files-2.6.31/drivers/usb/gadget/jz4740_udc.c +++ b/target/linux/xburst/files-2.6.31/drivers/usb/gadget/jz4740_udc.c @@ -37,7 +37,8 @@ #include #include #include -#include +#include +#include #include "jz4740_udc.h" diff --git a/target/linux/xburst/files-2.6.31/sound/soc/jz4740/jz4740-i2s.c b/target/linux/xburst/files-2.6.31/sound/soc/jz4740/jz4740-i2s.c index 6f4f33603..978f7e604 100644 --- a/target/linux/xburst/files-2.6.31/sound/soc/jz4740/jz4740-i2s.c +++ b/target/linux/xburst/files-2.6.31/sound/soc/jz4740/jz4740-i2s.c @@ -18,6 +18,9 @@ #include #include +#include +#include + #include "jz4740-pcm.h" #include "jz4740-i2s.h" diff --git a/target/linux/xburst/files-2.6.31/sound/soc/jz4740/jz4740-pcm.h b/target/linux/xburst/files-2.6.31/sound/soc/jz4740/jz4740-pcm.h index 68ea842d1..54cadabcb 100644 --- a/target/linux/xburst/files-2.6.31/sound/soc/jz4740/jz4740-pcm.h +++ b/target/linux/xburst/files-2.6.31/sound/soc/jz4740/jz4740-pcm.h @@ -8,7 +8,7 @@ #ifndef _JZ4740_PCM_H #define _JZ4740_PCM_H -#include +#include #define ST_RUNNING (1<<0) #define ST_OPENED (1<<1)