#ifdef CONFIG_SDMMC0_RK29
+#ifndef CONFIG_EMMC_RK29
static struct resource resources_sdmmc0[] = {
{
.start = IRQ_SDMMC,
.flags = IORESOURCE_IRQ,
},
{
- .start = RK29_SDMMC0_PHYS,
+ .start = RK29_SDMMC0_PHYS,
.end = RK29_SDMMC0_PHYS + RK29_SDMMC0_SIZE -1,
.flags = IORESOURCE_MEM,
}
};
+#else
+static struct resource resources_sdmmc0[] = {
+ {
+ .start = IRQ_EMMC,
+ .end = IRQ_EMMC,
+ .flags = IORESOURCE_IRQ,
+ },
+ {
+ .start = RK29_EMMC_PHYS,
+ .end = RK29_EMMC_PHYS + RK29_EMMC_SIZE -1,
+ .flags = IORESOURCE_MEM,
+ }
+};
+#endif
#endif
#ifdef CONFIG_SDMMC1_RK29
static struct resource resources_sdmmc1[] = {
unsigned char __iomem *gpioRegBase;
u32 isr;
- rk29_gpio = get_irq_chip_data(irq+14);
+ rk29_gpio = get_irq_chip_data(irq+13);
gpioRegBase = rk29_gpio->regbase;
//ÆÁ±ÎÖжÏ6»ò7
desc->chip->mask(irq);
+ if(desc->chip->ack)
+ desc->chip->ack(irq);
//¶ÁÈ¡µ±Ç°ÖжÏ״̬£¬¼´²éѯ¾ßÌåÊÇGPIOµÄÄĸöPINÒýÆðµÄÖжÏ
isr = rk29_gpio_read(gpioRegBase,GPIO_INT_STATUS);
if (!isr) {
char *name;
};
-struct rk29_dma_chan;
-
/* rk29_dma_cbfn_t
*
* buffer callback routine type
*/
-typedef void (*rk29_dma_cbfn_t)(struct rk29_dma_chan *,
- void *buf, int size,
+typedef void (*rk29_dma_cbfn_t)(void *buf, int size,
enum rk29_dma_buffresult result);
-typedef int (*rk29_dma_opfn_t)(struct rk29_dma_chan *,
- enum rk29_chan_op );
+typedef int (*rk29_dma_opfn_t)(enum rk29_chan_op );
/* Do callback */
if (ch->callback_fn)
- ch->callback_fn(NULL, xfer->token, xfer->px.bytes, res);
+ ch->callback_fn(xfer->token, xfer->px.bytes, res);
/* Force Free or if buffer is not needed anymore */
if (ffree || !(ch->options & RK29_DMAF_CIRCULAR))
/* Specifies how often in millisecs to poll for card removal-insertion changes
* when the timer switch is open */
-#define RK_SDMMC0_SWITCH_POLL_DELAY 3500
+#define RK_SDMMC0_SWITCH_POLL_DELAY 35
#endif
bool "RockChip rk29 serial port 0 support"
depends on SERIAL_RK29
+config UART0_CTS_RTS_RK29
+ bool "RockChip rk29 serial port 0 cts rts support"
+ depends on UART0_RK29
+
config UART1_RK29
bool "RockChip rk29 serial port 1 support"
depends on SERIAL_RK29
bool "RockChip rk29 serial port 2 support"
depends on SERIAL_RK29
+config UART2_CTS_RTS_RK29
+ bool "RockChip rk29 serial port 2 cts rts support"
+ depends on UART2_RK29
+
config UART3_RK29
bool "RockChip rk29 serial port 3 support"
depends on SERIAL_RK29
-
+
+config UART3_CTS_RTS_RK29
+ bool "RockChip rk29 serial port 3 cts rts support"
+ depends on UART3_RK29
+
config SERIAL_RK29_CONSOLE
bool "Rockchip rk29 serial console support"
depends on SERIAL_RK29=y