From: Geert Uytterhoeven <geert+renesas@glider.be>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 09/15] ARM: shmobile: Remove unused dma-register.h
Date: Wed, 17 Jun 2015 09:31:25 +0000 [thread overview]
Message-ID: <1434533491-21979-10-git-send-email-geert+renesas@glider.be> (raw)
In-Reply-To: <1434533491-21979-1-git-send-email-geert+renesas@glider.be>
The last users of "dma-register.h" were the sh73a0 and r8a7740 legacy
SoC code, which have been removed.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/mach-shmobile/dma-register.h | 84 -----------------------------------
1 file changed, 84 deletions(-)
delete mode 100644 arch/arm/mach-shmobile/dma-register.h
diff --git a/arch/arm/mach-shmobile/dma-register.h b/arch/arm/mach-shmobile/dma-register.h
deleted file mode 100644
index 52a2f66e600f2995..0000000000000000
--- a/arch/arm/mach-shmobile/dma-register.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * SH-ARM CPU-specific DMA definitions, used by both DMA drivers
- *
- * Copyright (C) 2012 Renesas Solutions Corp
- *
- * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
- *
- * Based on arch/sh/include/cpu-sh4/cpu/dma-register.h
- * Copyright (C) 2010 Guennadi Liakhovetski <g.liakhovetski@gmx.de>
- *
- * 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.
- */
-
-#ifndef DMA_REGISTER_H
-#define DMA_REGISTER_H
-
-/*
- * Direct Memory Access Controller
- */
-
-/* Transmit sizes and respective CHCR register values */
-enum {
- XMIT_SZ_8BIT = 0,
- XMIT_SZ_16BIT = 1,
- XMIT_SZ_32BIT = 2,
- XMIT_SZ_64BIT = 7,
- XMIT_SZ_128BIT = 3,
- XMIT_SZ_256BIT = 4,
- XMIT_SZ_512BIT = 5,
-};
-
-/* log2(size / 8) - used to calculate number of transfers */
-static const unsigned int dma_ts_shift[] = {
- [XMIT_SZ_8BIT] = 0,
- [XMIT_SZ_16BIT] = 1,
- [XMIT_SZ_32BIT] = 2,
- [XMIT_SZ_64BIT] = 3,
- [XMIT_SZ_128BIT] = 4,
- [XMIT_SZ_256BIT] = 5,
- [XMIT_SZ_512BIT] = 6,
-};
-
-#define TS_LOW_BIT 0x3 /* --xx */
-#define TS_HI_BIT 0xc /* xx-- */
-
-#define TS_LOW_SHIFT (3)
-#define TS_HI_SHIFT (20 - 2) /* 2 bits for shifted low TS */
-
-#define TS_INDEX2VAL(i) \
- ((((i) & TS_LOW_BIT) << TS_LOW_SHIFT) |\
- (((i) & TS_HI_BIT) << TS_HI_SHIFT))
-
-#define CHCR_TX(xmit_sz) (DM_FIX | SM_INC | RS_ERS | TS_INDEX2VAL((xmit_sz)))
-#define CHCR_RX(xmit_sz) (DM_INC | SM_FIX | RS_ERS | TS_INDEX2VAL((xmit_sz)))
-
-
-/*
- * USB High-Speed DMAC
- */
-/* Transmit sizes and respective CHCR register values */
-enum {
- USBTS_XMIT_SZ_8BYTE = 0,
- USBTS_XMIT_SZ_16BYTE = 1,
- USBTS_XMIT_SZ_32BYTE = 2,
-};
-
-/* log2(size / 8) - used to calculate number of transfers */
-static const unsigned int dma_usbts_shift[] = {
- [USBTS_XMIT_SZ_8BYTE] = 3,
- [USBTS_XMIT_SZ_16BYTE] = 4,
- [USBTS_XMIT_SZ_32BYTE] = 5,
-};
-
-#define USBTS_LOW_BIT 0x3 /* --xx */
-#define USBTS_HI_BIT 0x0 /* ---- */
-
-#define USBTS_LOW_SHIFT 6
-#define USBTS_HI_SHIFT 0
-
-#define USBTS_INDEX2VAL(i) (((i) & 3) << 6)
-
-#endif /* DMA_REGISTER_H */
--
1.9.1
next prev parent reply other threads:[~2015-06-17 9:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 9:31 [PATCH 00/15] ARM: shmobile: Remove legacy sh73a0/kzm9g and r8a7740/armadillo Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 01/15] ARM: shmobile: Remove legacy board code for KZM-A9-GT Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 02/15] ARM: shmobile: Remove legacy kzm9g_defconfig Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 03/15] ARM: shmobile: Drop sh73a0-kzm9g.dtb for legacy builds Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 04/15] ARM: shmobile: Remove legacy SoC code for SH-Mobile AG5 Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 05/15] ARM: shmobile: Remove legacy board code for Armadillo-800 EVA Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 06/15] ARM: shmobile: Remove legacy armadillo800eva_defconfig Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 07/15] ARM: shmobile: Drop r8a7740-armadillo800eva.dtb for legacy builds Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 08/15] ARM: shmobile: Remove legacy SoC code for R-Mobile A1 Geert Uytterhoeven
2015-06-17 9:31 ` Geert Uytterhoeven [this message]
2015-06-17 9:31 ` [PATCH 10/15] ARM: shmobile: R-Mobile: Remove legacy PM Domain code Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 11/15] ARM: shmobile: Remove obsolete zboot support Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 12/15] pinctrl: sh-pfc: sh73a0: Remove obsolete multi-platform check Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 13/15] pinctrl: sh-pfc: Remove obsolete sh73a0 platform_device_id entry Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 14/15] pinctrl: sh-pfc: r8a7740: Remove obsolete multi-platform check Geert Uytterhoeven
2015-06-17 9:31 ` [PATCH 15/15] pinctrl: sh-pfc: Remove obsolete r8a7740 platform_device_id entry Geert Uytterhoeven
2015-06-19 3:41 ` [PATCH 00/15] ARM: shmobile: Remove legacy sh73a0/kzm9g and r8a7740/armadillo Simon Horman
2015-06-19 7:30 ` Geert Uytterhoeven
2015-06-19 8:17 ` Simon Horman
2015-07-13 10:00 ` Linus Walleij
2015-07-13 10:06 ` Geert Uytterhoeven
2015-06-19 9:05 ` Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434533491-21979-10-git-send-email-geert+renesas@glider.be \
--to=geert+renesas@glider.be \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).