diff options
| author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2015-10-14 07:42:44 -0400 |
|---|---|---|
| committer | Vinod Koul <vinod.koul@intel.com> | 2015-10-14 10:25:34 -0400 |
| commit | d28c2b36d6027702585ca93773b3edd6e5f1a5bd (patch) | |
| tree | 3045bb96f37dedba785958d4e6482d71ff323eea /include/linux | |
| parent | 696d8b70c09dd421c4d037fab04341e5b30585cf (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')
| -rw-r--r-- | include/linux/platform_data/edma.h | 33 |
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 | ||
| 75 | enum address_mode { | ||
| 76 | INCR = 0, | ||
| 77 | FIFO = 1 | ||
| 78 | }; | ||
| 79 | |||
| 80 | enum fifo_width { | ||
| 81 | W8BIT = 0, | ||
| 82 | W16BIT = 1, | ||
| 83 | W32BIT = 2, | ||
| 84 | W64BIT = 3, | ||
| 85 | W128BIT = 4, | ||
| 86 | W256BIT = 5 | ||
| 87 | }; | ||
| 88 | |||
| 89 | enum dma_event_q { | 75 | enum 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 | ||
| 97 | enum 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); | |||
| 121 | int edma_alloc_slot(unsigned ctlr, int slot); | 102 | int edma_alloc_slot(unsigned ctlr, int slot); |
| 122 | void edma_free_slot(unsigned slot); | 103 | void edma_free_slot(unsigned slot); |
| 123 | 104 | ||
| 124 | /* alloc/free a set of contiguous parameter RAM slots */ | ||
| 125 | int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count); | ||
| 126 | int 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 */ |
| 129 | void edma_set_src(unsigned slot, dma_addr_t src_port, | ||
| 130 | enum address_mode mode, enum fifo_width); | ||
| 131 | void edma_set_dest(unsigned slot, dma_addr_t dest_port, | ||
| 132 | enum address_mode mode, enum fifo_width); | ||
| 133 | dma_addr_t edma_get_position(unsigned slot, bool dst); | 106 | dma_addr_t edma_get_position(unsigned slot, bool dst); |
| 134 | void edma_set_src_index(unsigned slot, s16 src_bidx, s16 src_cidx); | ||
| 135 | void edma_set_dest_index(unsigned slot, s16 dest_bidx, s16 dest_cidx); | ||
| 136 | void edma_set_transfer_params(unsigned slot, u16 acnt, u16 bcnt, u16 ccnt, | ||
| 137 | u16 bcnt_rld, enum sync_dimension sync_mode); | ||
| 138 | void edma_link(unsigned from, unsigned to); | 107 | void edma_link(unsigned from, unsigned to); |
| 139 | void 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 */ |
| 142 | void edma_write_slot(unsigned slot, const struct edmacc_param *params); | 110 | void edma_write_slot(unsigned slot, const struct edmacc_param *params); |
| @@ -146,7 +114,6 @@ void edma_read_slot(unsigned slot, struct edmacc_param *params); | |||
| 146 | int edma_start(unsigned channel); | 114 | int edma_start(unsigned channel); |
| 147 | void edma_stop(unsigned channel); | 115 | void edma_stop(unsigned channel); |
| 148 | void edma_clean_channel(unsigned channel); | 116 | void edma_clean_channel(unsigned channel); |
| 149 | void edma_clear_event(unsigned channel); | ||
| 150 | void edma_pause(unsigned channel); | 117 | void edma_pause(unsigned channel); |
| 151 | void edma_resume(unsigned channel); | 118 | void edma_resume(unsigned channel); |
| 152 | 119 | ||
