Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339602
b: refs/heads/master
c: cc8c29d
h: refs/heads/master
v: v3
  • Loading branch information
Lokesh Vutla authored and Tony Lindgren committed Oct 15, 2012
1 parent b8f9f32 commit 97b4ead
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 165 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: 27615a97b2dc7e98b925973b78d1cdc3ee288ab0
refs/heads/master: cc8c29d9ff05cc15681f9715eea6c292877f7b41
147 changes: 0 additions & 147 deletions trunk/arch/arm/plat-omap/include/plat/dma-44xx.h

This file was deleted.

3 changes: 0 additions & 3 deletions trunk/arch/arm/plat-omap/include/plat/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
* the omap drivers hwmod adapted.
*/

/* Move omap4 specific defines to dma-44xx.h */
#include "dma-44xx.h"

#define INT_DMA_LCD 25

/* DMA channels for omap1 */
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/char/hw_random/omap-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <asm/io.h>

#include <plat/cpu.h>

#define RNG_OUT_REG 0x00 /* Output register */
#define RNG_STAT_REG 0x04 /* Status register
[0] = STAT_BUSY */
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/crypto/omap-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <crypto/scatterwalk.h>
#include <crypto/aes.h>

#include <plat/cpu.h>
#include <plat/dma.h>

/* OMAP TRM gives bitfields as start:end, where start is the higher bit
Expand Down Expand Up @@ -940,6 +941,11 @@ static int __init omap_aes_mod_init(void)
{
pr_info("loading %s driver\n", "omap-aes");

if (!cpu_class_is_omap2() || omap_type() != OMAP2_DEVICE_TYPE_SEC) {
pr_err("Unsupported cpu\n");
return -ENODEV;
}

return platform_driver_register(&omap_aes_driver);
}

Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/crypto/omap-sham.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <crypto/hash.h>
#include <crypto/internal/hash.h>

#include <plat/cpu.h>
#include <plat/dma.h>
#include <mach/irqs.h>

Expand Down Expand Up @@ -1288,6 +1289,13 @@ static int __init omap_sham_mod_init(void)
{
pr_info("loading %s driver\n", "omap-sham");

if (!cpu_class_is_omap2() ||
(omap_type() != OMAP2_DEVICE_TYPE_SEC &&
omap_type() != OMAP2_DEVICE_TYPE_EMU)) {
pr_err("Unsupported cpu\n");
return -ENODEV;
}

return platform_driver_register(&omap_sham_driver);
}

Expand Down
9 changes: 2 additions & 7 deletions trunk/drivers/dma/omap-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,9 @@

#include "virt-dma.h"

#include <plat/cpu.h>
#include <plat/dma.h>

#ifdef CONFIG_ARCH_OMAP2PLUS
#define dma_omap2plus() 1
#else
#define dma_omap2plus() 0
#endif

struct omap_dmadev {
struct dma_device ddev;
spinlock_t lock;
Expand Down Expand Up @@ -443,7 +438,7 @@ static struct dma_async_tx_descriptor *omap_dma_prep_dma_cyclic(
omap_disable_dma_irq(c->dma_ch, OMAP_DMA_BLOCK_IRQ);
}

if (dma_omap2plus()) {
if (!cpu_class_is_omap1()) {
omap_set_dma_src_burst_mode(c->dma_ch, OMAP_DMA_DATA_BURST_16);
omap_set_dma_dest_burst_mode(c->dma_ch, OMAP_DMA_DATA_BURST_16);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <linux/vmalloc.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <plat/clock.h>
#include <linux/clk.h>
#include <plat/mailbox.h>
#include <linux/pagemap.h>
Expand Down
9 changes: 2 additions & 7 deletions trunk/sound/soc/omap/omap-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,9 @@
#include <sound/dmaengine_pcm.h>
#include <sound/soc.h>

#include <plat/cpu.h>
#include "omap-pcm.h"

#ifdef CONFIG_ARCH_OMAP1
#define pcm_omap1510() cpu_is_omap1510()
#else
#define pcm_omap1510() 0
#endif

static const struct snd_pcm_hardware omap_pcm_hardware = {
.info = SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |
Expand Down Expand Up @@ -164,7 +159,7 @@ static snd_pcm_uframes_t omap_pcm_pointer(struct snd_pcm_substream *substream)
{
snd_pcm_uframes_t offset;

if (pcm_omap1510())
if (cpu_is_omap1510())
offset = snd_dmaengine_pcm_pointer_no_residue(substream);
else
offset = snd_dmaengine_pcm_pointer(substream);
Expand Down

0 comments on commit 97b4ead

Please sign in to comment.