aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2015-10-14 07:42:44 -0400
committerVinod Koul <vinod.koul@intel.com>2015-10-14 10:25:34 -0400
commitd28c2b36d6027702585ca93773b3edd6e5f1a5bd (patch)
tree3045bb96f37dedba785958d4e6482d71ff323eea /include/linux/platform_data
parent696d8b70c09dd421c4d037fab04341e5b30585cf (diff)
ARM: common: edma: Remove unused functions
We no longer have users for these functions so they can be removed. Remove also unused enums from the header file. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/edma.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/include/linux/platform_data/edma.h b/include/linux/platform_data/edma.h
index bdb2710e2aab..c1862423b356 100644
--- a/include/linux/platform_data/edma.h
+++ b/include/linux/platform_data/edma.h
@@ -72,20 +72,6 @@ struct edmacc_param {
72#define EDMA_DMA_TC1_ERROR 3 72#define EDMA_DMA_TC1_ERROR 3
73#define EDMA_DMA_TC2_ERROR 4 73#define EDMA_DMA_TC2_ERROR 4
74 74
75enum address_mode {
76 INCR = 0,
77 FIFO = 1
78};
79
80enum fifo_width {
81 W8BIT = 0,
82 W16BIT = 1,
83 W32BIT = 2,
84 W64BIT = 3,
85 W128BIT = 4,
86 W256BIT = 5
87};
88
89enum dma_event_q { 75enum dma_event_q {
90 EVENTQ_0 = 0, 76 EVENTQ_0 = 0,
91 EVENTQ_1 = 1, 77 EVENTQ_1 = 1,
@@ -94,11 +80,6 @@ enum dma_event_q {
94 EVENTQ_DEFAULT = -1 80 EVENTQ_DEFAULT = -1
95}; 81};
96 82
97enum sync_dimension {
98 ASYNC = 0,
99 ABSYNC = 1
100};
101
102#define EDMA_CTLR_CHAN(ctlr, chan) (((ctlr) << 16) | (chan)) 83#define EDMA_CTLR_CHAN(ctlr, chan) (((ctlr) << 16) | (chan))
103#define EDMA_CTLR(i) ((i) >> 16) 84#define EDMA_CTLR(i) ((i) >> 16)
104#define EDMA_CHAN_SLOT(i) ((i) & 0xffff) 85#define EDMA_CHAN_SLOT(i) ((i) & 0xffff)
@@ -121,22 +102,9 @@ void edma_free_channel(unsigned channel);
121int edma_alloc_slot(unsigned ctlr, int slot); 102int edma_alloc_slot(unsigned ctlr, int slot);
122void edma_free_slot(unsigned slot); 103void edma_free_slot(unsigned slot);
123 104
124/* alloc/free a set of contiguous parameter RAM slots */
125int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count);
126int edma_free_cont_slots(unsigned slot, int count);
127
128/* calls that operate on part of a parameter RAM slot */ 105/* calls that operate on part of a parameter RAM slot */
129void edma_set_src(unsigned slot, dma_addr_t src_port,
130 enum address_mode mode, enum fifo_width);
131void edma_set_dest(unsigned slot, dma_addr_t dest_port,
132 enum address_mode mode, enum fifo_width);
133dma_addr_t edma_get_position(unsigned slot, bool dst); 106dma_addr_t edma_get_position(unsigned slot, bool dst);
134void edma_set_src_index(unsigned slot, s16 src_bidx, s16 src_cidx);
135void edma_set_dest_index(unsigned slot, s16 dest_bidx, s16 dest_cidx);
136void edma_set_transfer_params(unsigned slot, u16 acnt, u16 bcnt, u16 ccnt,
137 u16 bcnt_rld, enum sync_dimension sync_mode);
138void edma_link(unsigned from, unsigned to); 107void edma_link(unsigned from, unsigned to);
139void edma_unlink(unsigned from);
140 108
141/* calls that operate on an entire parameter RAM slot */ 109/* calls that operate on an entire parameter RAM slot */
142void edma_write_slot(unsigned slot, const struct edmacc_param *params); 110void edma_write_slot(unsigned slot, const struct edmacc_param *params);
@@ -146,7 +114,6 @@ void edma_read_slot(unsigned slot, struct edmacc_param *params);
146int edma_start(unsigned channel); 114int edma_start(unsigned channel);
147void edma_stop(unsigned channel); 115void edma_stop(unsigned channel);
148void edma_clean_channel(unsigned channel); 116void edma_clean_channel(unsigned channel);
149void edma_clear_event(unsigned channel);
150void edma_pause(unsigned channel); 117void edma_pause(unsigned channel);
151void edma_resume(unsigned channel); 118void edma_resume(unsigned channel);
152 119