Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __ASM_ARCH_MSM_DMA_FSM9XXX_H |
| 14 | #define __ASM_ARCH_MSM_DMA_FSM9XXX_H |
| 15 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 16 | /* DMA channels allocated to Scorpion */ |
| 17 | #define DMOV_GP_CHAN 4 |
| 18 | #define DMOV_CE1_IN_CHAN 5 |
| 19 | #define DMOV_CE1_OUT_CHAN 6 |
| 20 | #define DMOV_NAND_CHAN 7 |
| 21 | #define DMOV_SDC1_CHAN 8 |
| 22 | #define DMOV_GP2_CHAN 10 |
| 23 | #define DMOV_CE2_IN_CHAN 12 |
| 24 | #define DMOV_CE2_OUT_CHAN 13 |
| 25 | #define DMOV_CE3_IN_CHAN 14 |
| 26 | #define DMOV_CE3_OUT_CHAN 15 |
| 27 | |
| 28 | /* CRCIs */ |
| 29 | #define DMOV_CE1_IN_CRCI 1 |
| 30 | #define DMOV_CE1_OUT_CRCI 2 |
| 31 | #define DMOV_CE1_HASH_CRCI 3 |
| 32 | |
| 33 | #define DMOV_NAND_CRCI_DATA 4 |
| 34 | #define DMOV_NAND_CRCI_CMD 5 |
| 35 | |
| 36 | #define DMOV_SDC1_CRCI 6 |
| 37 | |
| 38 | #define DMOV_HSUART_TX_CRCI 7 |
| 39 | #define DMOV_HSUART_RX_CRCI 8 |
| 40 | |
| 41 | #define DMOV_CE2_IN_CRCI 9 |
| 42 | #define DMOV_CE2_OUT_CRCI 10 |
| 43 | #define DMOV_CE2_HASH_CRCI 11 |
| 44 | |
| 45 | #define DMOV_CE3_IN_CRCI 12 |
| 46 | #define DMOV_CE3_OUT_CRCI 13 |
| 47 | #define DMOV_CE3_HASH_DONE_CRCI 14 |
| 48 | |
| 49 | /* Following CRCIs are not defined in FSM9XXX, but these are added to keep |
| 50 | * the existing SDCC host controller driver compatible with FSM9XXX. |
| 51 | */ |
| 52 | #define DMOV_SDC2_CRCI DMOV_SDC1_CRCI |
| 53 | #define DMOV_SDC3_CRCI DMOV_SDC1_CRCI |
| 54 | #define DMOV_SDC4_CRCI DMOV_SDC1_CRCI |
| 55 | |
| 56 | #endif /* __ASM_ARCH_MSM_DMA_FSM9XXX_H */ |