aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-12-31 00:29:13 -0500
committerTejun Heo <tj@kernel.org>2013-12-31 06:32:05 -0500
commit96f7f6bd855cc47988e3efb1efc4926404ae6f60 (patch)
tree18a4a3de6c834d748c998865bb98bcc25a460351 /drivers/ata
parent73993396d8591580f03fe0ee9c6cc5ea8fa09928 (diff)
ata: pata_samsung_cf: Move plat/regs-ata.h to drivers/ata
plat/regs-ata.h is used only by Samsung PATA driver. Move this file to the drivers folder to remove platform dependency required for multiplatform support. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Reviewed-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_samsung_cf.c2
-rw-r--r--drivers/ata/pata_samsung_cf.h55
2 files changed, 56 insertions, 1 deletions
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c
index 898e544a7ae8..e04d70b7ce76 100644
--- a/drivers/ata/pata_samsung_cf.c
+++ b/drivers/ata/pata_samsung_cf.c
@@ -24,7 +24,7 @@
24#include <linux/slab.h> 24#include <linux/slab.h>
25 25
26#include <linux/platform_data/ata-samsung_cf.h> 26#include <linux/platform_data/ata-samsung_cf.h>
27#include <plat/regs-ata.h> 27#include "pata_samsung_cf.h"
28 28
29#define DRV_NAME "pata_samsung_cf" 29#define DRV_NAME "pata_samsung_cf"
30#define DRV_VERSION "0.1" 30#define DRV_VERSION "0.1"
diff --git a/drivers/ata/pata_samsung_cf.h b/drivers/ata/pata_samsung_cf.h
new file mode 100644
index 000000000000..eeefe2e0cdc6
--- /dev/null
+++ b/drivers/ata/pata_samsung_cf.h
@@ -0,0 +1,55 @@
1/*
2 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Samsung CF-ATA register definitions
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10*/
11
12#ifndef __PATA_SAMSUNG_CF_H
13#define __PATA_SAMSUNG_CF_H
14
15#define S3C_CFATA_REG(x) (x)
16
17#define S3C_CFATA_MUX S3C_CFATA_REG(0x0)
18
19#define S3C_ATA_CTRL S3C_CFATA_REG(0x0)
20#define S3C_ATA_STATUS S3C_CFATA_REG(0x4)
21#define S3C_ATA_CMD S3C_CFATA_REG(0x8)
22#define S3C_ATA_SWRST S3C_CFATA_REG(0xc)
23#define S3C_ATA_IRQ S3C_CFATA_REG(0x10)
24#define S3C_ATA_IRQ_MSK S3C_CFATA_REG(0x14)
25#define S3C_ATA_CFG S3C_CFATA_REG(0x18)
26
27#define S3C_ATA_MDMA_TIME S3C_CFATA_REG(0x28)
28#define S3C_ATA_PIO_TIME S3C_CFATA_REG(0x2c)
29#define S3C_ATA_UDMA_TIME S3C_CFATA_REG(0x30)
30#define S3C_ATA_XFR_NUM S3C_CFATA_REG(0x34)
31#define S3C_ATA_XFR_CNT S3C_CFATA_REG(0x38)
32#define S3C_ATA_TBUF_START S3C_CFATA_REG(0x3c)
33#define S3C_ATA_TBUF_SIZE S3C_CFATA_REG(0x40)
34#define S3C_ATA_SBUF_START S3C_CFATA_REG(0x44)
35#define S3C_ATA_SBUF_SIZE S3C_CFATA_REG(0x48)
36#define S3C_ATA_CADR_TBUF S3C_CFATA_REG(0x4c)
37#define S3C_ATA_CADR_SBUF S3C_CFATA_REG(0x50)
38#define S3C_ATA_PIO_DTR S3C_CFATA_REG(0x54)
39#define S3C_ATA_PIO_FED S3C_CFATA_REG(0x58)
40#define S3C_ATA_PIO_SCR S3C_CFATA_REG(0x5c)
41#define S3C_ATA_PIO_LLR S3C_CFATA_REG(0x60)
42#define S3C_ATA_PIO_LMR S3C_CFATA_REG(0x64)
43#define S3C_ATA_PIO_LHR S3C_CFATA_REG(0x68)
44#define S3C_ATA_PIO_DVR S3C_CFATA_REG(0x6c)
45#define S3C_ATA_PIO_CSD S3C_CFATA_REG(0x70)
46#define S3C_ATA_PIO_DAD S3C_CFATA_REG(0x74)
47#define S3C_ATA_PIO_READY S3C_CFATA_REG(0x78)
48#define S3C_ATA_PIO_RDATA S3C_CFATA_REG(0x7c)
49
50#define S3C_CFATA_MUX_TRUEIDE 0x01
51
52#define S3C_ATA_CFG_SWAP 0x40
53#define S3C_ATA_CFG_IORDYEN 0x02
54
55#endif /* __PATA_SAMSUNG_CF_H */