Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168410
b: refs/heads/master
c: 210012a
h: refs/heads/master
v: v3
  • Loading branch information
Jassi Brar authored and Ben Dooks committed Nov 9, 2009
1 parent bfd6823 commit fa49627
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3c5496fbfc2e5f64bb85b142615717850fee980
refs/heads/master: 210012a6cd8770a73d1aa74b742667b462d04511
12 changes: 10 additions & 2 deletions trunk/arch/arm/mach-s3c6400/include/mach/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,21 @@ enum dma_ch {
DMACH_MAX /* the end */
};

static __inline__ bool s3c_dma_has_circular(void)
static __inline__ int s3c_dma_has_circular(void)
{
return true;
/* we will be supporting ciruclar buffers as soon as we have DMA
* engine support.
*/
return 1;
}

#define S3C2410_DMAF_CIRCULAR (1 << 0)

static inline bool s3c_dma_has_circular(void)
{
return false;
}

#include <plat/dma.h>

#endif /* __ASM_ARCH_IRQ_H */
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-s3c6410/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ config SMDK6410_WM1190_EV1
depends on MACH_SMDK6410
select REGULATOR
select REGULATOR_WM8350
select S3C24XX_GPIO_EXTRA64
select MFD_WM8350_I2C
select MFD_WM8350_CONFIG_MODE_0
select MFD_WM8350_CONFIG_MODE_3
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/arm/mach-s3c6410/mach-smdk6410.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ static int __init smdk6410_wm8350_init(struct wm8350 *wm8350)
{
int i;

/* Configure the IRQ line */
s3c_gpio_setpull(S3C64XX_GPN(12), S3C_GPIO_PULL_UP);

/* Instantiate the regulators */
for (i = 0; i < ARRAY_SIZE(wm1190_regulators); i++)
wm8350_register_regulator(wm8350,
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/plat-s3c64xx/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,
struct s3c64xx_dma_buff *next;
struct s3c64xx_dma_buff *buff;
struct pl080s_lli *lli;
unsigned long flags;
int ret;

WARN_ON(!chan);
Expand Down Expand Up @@ -366,6 +367,8 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,

s3c64xx_dma_fill_lli(chan, lli, data, size);

local_irq_save(flags);

if ((next = chan->next) != NULL) {
struct s3c64xx_dma_buff *end = chan->end;
struct pl080s_lli *endlli = end->lli;
Expand Down Expand Up @@ -397,6 +400,8 @@ int s3c2410_dma_enqueue(unsigned int channel, void *id,
s3c64xx_lli_to_regs(chan, lli);
}

local_irq_restore(flags);

show_lli(lli);

dbg_showchan(chan);
Expand Down

0 comments on commit fa49627

Please sign in to comment.