diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-06-02 13:09:29 +0200 |
---|---|---|
committer | codeworkx <daniel.hillenbrand@codeworkx.de> | 2012-06-02 13:09:29 +0200 |
commit | c6da2cfeb05178a11c6d062a06f8078150ee492f (patch) | |
tree | f3b4021d252c52d6463a9b3c1bb7245e399b009c /arch/arm/plat-s5p/dev-tsi.c | |
parent | c6d7c4dbff353eac7919342ae6b3299a378160a6 (diff) | |
download | kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.zip kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.gz kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.bz2 |
samsung update 1
Diffstat (limited to 'arch/arm/plat-s5p/dev-tsi.c')
-rw-r--r-- | arch/arm/plat-s5p/dev-tsi.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/arm/plat-s5p/dev-tsi.c b/arch/arm/plat-s5p/dev-tsi.c new file mode 100644 index 0000000..9ac42cc --- /dev/null +++ b/arch/arm/plat-s5p/dev-tsi.c @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2010-2011 Samsung Electronics Co., Ltd. + * + * S5P series device definition for TSI + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#include <linux/kernel.h> +#include <linux/interrupt.h> +#include <linux/platform_device.h> +#include <mach/map.h> +#include <linux/dma-mapping.h> +#include <linux/interrupt.h> +#include <linux/ioport.h> + +/*TSI Interface*/ +static u64 tsi_dma_mask = 0xffffffffUL; + +static struct resource s3c_tsi_resource[] = { + [0] = { + .start = S5P_PA_TSI, + .end = S5P_PA_TSI + S5P_SZ_TSI - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_TSI, + .end = IRQ_TSI, + .flags = IORESOURCE_IRQ, + } +}; + +struct platform_device s3c_device_tsi = { + .name = "s3c-tsi", + .id = -1, + .num_resources = ARRAY_SIZE(s3c_tsi_resource), + .resource = s3c_tsi_resource, + .dev = { + .dma_mask = &tsi_dma_mask, + .coherent_dma_mask = 0xffffffffUL + } + + +}; +EXPORT_SYMBOL(s3c_device_tsi); |