Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Ben Dooks | bec0806 | 2009-12-14 22:20:24 -0800 | [diff] [blame] | 2 | /* linux/drivers/spi/spi_s3c24xx_fiq.h |
| 3 | * |
| 4 | * Copyright 2009 Simtec Electronics |
| 5 | * Ben Dooks <ben@simtec.co.uk> |
| 6 | * |
| 7 | * S3C24XX SPI - FIQ pseudo-DMA transfer support |
Ben Dooks | bec0806 | 2009-12-14 22:20:24 -0800 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | /* We have R8 through R13 to play with */ |
| 11 | |
| 12 | #ifdef __ASSEMBLY__ |
| 13 | #define __REG_NR(x) r##x |
| 14 | #else |
| 15 | #define __REG_NR(x) (x) |
| 16 | #endif |
| 17 | |
| 18 | #define fiq_rspi __REG_NR(8) |
| 19 | #define fiq_rtmp __REG_NR(9) |
| 20 | #define fiq_rrx __REG_NR(10) |
| 21 | #define fiq_rtx __REG_NR(11) |
| 22 | #define fiq_rcount __REG_NR(12) |
| 23 | #define fiq_rirq __REG_NR(13) |