From: Arnd Bergmann <arnd@kernel.org>
To: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Daniel Mack <daniel@zonque.org>,
Haojian Zhuang <haojian.zhuang@gmail.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>
Subject: [PATCH 02/27] ARM: pxa: remove irda leftover
Date: Thu, 5 Jan 2023 14:45:57 +0100 [thread overview]
Message-ID: <20230105134622.254560-3-arnd@kernel.org> (raw)
In-Reply-To: <20230105134622.254560-1-arnd@kernel.org>
From: Arnd Bergmann <arnd@arndb.de>
irda support was removed a long time ago, so stop
registering the devices from the pxa machine.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
arch/arm/mach-pxa/devices.c | 42 ----------------------
arch/arm/mach-pxa/devices.h | 1 -
arch/arm/mach-pxa/pxa2xx.c | 29 ---------------
arch/arm/mach-pxa/spitz.c | 23 ------------
include/linux/platform_data/irda-pxaficp.h | 26 --------------
5 files changed, 121 deletions(-)
delete mode 100644 include/linux/platform_data/irda-pxaficp.h
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c
index a7b92dd1ca9e..72adaac9f332 100644
--- a/arch/arm/mach-pxa/devices.c
+++ b/arch/arm/mach-pxa/devices.c
@@ -15,7 +15,6 @@
#include <linux/platform_data/usb-pxa3xx-ulpi.h>
#include <linux/platform_data/video-pxafb.h>
#include <linux/platform_data/mmc-pxamci.h>
-#include <linux/platform_data/irda-pxaficp.h>
#include "irqs.h"
#include <linux/platform_data/usb-ohci-pxa27x.h>
#include <linux/platform_data/keypad-pxa27x.h>
@@ -378,47 +377,6 @@ struct platform_device pxa_device_asoc_platform = {
.id = -1,
};
-static u64 pxaficp_dmamask = ~(u32)0;
-
-static struct resource pxa_ir_resources[] = {
- [0] = {
- .start = IRQ_STUART,
- .end = IRQ_STUART,
- .flags = IORESOURCE_IRQ,
- },
- [1] = {
- .start = IRQ_ICP,
- .end = IRQ_ICP,
- .flags = IORESOURCE_IRQ,
- },
- [3] = {
- .start = 0x40800000,
- .end = 0x4080001b,
- .flags = IORESOURCE_MEM,
- },
- [4] = {
- .start = 0x40700000,
- .end = 0x40700023,
- .flags = IORESOURCE_MEM,
- },
-};
-
-struct platform_device pxa_device_ficp = {
- .name = "pxa2xx-ir",
- .id = -1,
- .num_resources = ARRAY_SIZE(pxa_ir_resources),
- .resource = pxa_ir_resources,
- .dev = {
- .dma_mask = &pxaficp_dmamask,
- .coherent_dma_mask = 0xffffffff,
- },
-};
-
-void __init pxa_set_ficp_info(struct pxaficp_platform_data *info)
-{
- pxa_register_device(&pxa_device_ficp, info);
-}
-
static struct resource pxa_rtc_resources[] = {
[0] = {
.start = 0x40900000,
diff --git a/arch/arm/mach-pxa/devices.h b/arch/arm/mach-pxa/devices.h
index 498b07bc6a3e..2828bea76cd7 100644
--- a/arch/arm/mach-pxa/devices.h
+++ b/arch/arm/mach-pxa/devices.h
@@ -17,7 +17,6 @@ extern struct platform_device pxa_device_stuart;
extern struct platform_device pxa_device_hwuart;
extern struct platform_device pxa_device_i2c;
extern struct platform_device pxa_device_i2s;
-extern struct platform_device pxa_device_ficp;
extern struct platform_device sa1100_device_rtc;
extern struct platform_device pxa_device_rtc;
extern struct platform_device pxa_device_ac97;
diff --git a/arch/arm/mach-pxa/pxa2xx.c b/arch/arm/mach-pxa/pxa2xx.c
index 4aafd692c1e8..35c23a5d73a3 100644
--- a/arch/arm/mach-pxa/pxa2xx.c
+++ b/arch/arm/mach-pxa/pxa2xx.c
@@ -18,7 +18,6 @@
#include "reset.h"
#include "smemc.h"
#include <linux/soc/pxa/smemc.h>
-#include <linux/platform_data/irda-pxaficp.h>
void pxa2xx_clear_reset_status(unsigned int mask)
{
@@ -26,34 +25,6 @@ void pxa2xx_clear_reset_status(unsigned int mask)
RCSR = mask;
}
-static unsigned long pxa2xx_mfp_fir[] = {
- GPIO46_FICP_RXD,
- GPIO47_FICP_TXD,
-};
-
-static unsigned long pxa2xx_mfp_sir[] = {
- GPIO46_STUART_RXD,
- GPIO47_STUART_TXD,
-};
-
-static unsigned long pxa2xx_mfp_off[] = {
- GPIO46_GPIO | MFP_LPM_DRIVE_LOW,
- GPIO47_GPIO | MFP_LPM_DRIVE_LOW,
-};
-
-void pxa2xx_transceiver_mode(struct device *dev, int mode)
-{
- if (mode & IR_OFF) {
- pxa2xx_mfp_config(pxa2xx_mfp_off, ARRAY_SIZE(pxa2xx_mfp_off));
- } else if (mode & IR_SIRMODE) {
- pxa2xx_mfp_config(pxa2xx_mfp_sir, ARRAY_SIZE(pxa2xx_mfp_sir));
- } else if (mode & IR_FIRMODE) {
- pxa2xx_mfp_config(pxa2xx_mfp_fir, ARRAY_SIZE(pxa2xx_mfp_fir));
- } else
- BUG();
-}
-EXPORT_SYMBOL_GPL(pxa2xx_transceiver_mode);
-
#define MDCNFG_DRAC2(mdcnfg) (((mdcnfg) >> 21) & 0x3)
#define MDCNFG_DRAC0(mdcnfg) (((mdcnfg) >> 5) & 0x3)
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
index 9964729cd428..26f0ebc4d136 100644
--- a/arch/arm/mach-pxa/spitz.c
+++ b/arch/arm/mach-pxa/spitz.c
@@ -40,7 +40,6 @@
#include "pxa27x.h"
#include "pxa27x-udc.h"
#include "reset.h"
-#include <linux/platform_data/irda-pxaficp.h>
#include <linux/platform_data/mmc-pxamci.h>
#include <linux/platform_data/usb-ohci-pxa27x.h>
#include <linux/platform_data/video-pxafb.h>
@@ -687,27 +686,6 @@ static void __init spitz_uhc_init(void)
static inline void spitz_uhc_init(void) {}
#endif
-/******************************************************************************
- * IrDA
- ******************************************************************************/
-#if defined(CONFIG_PXA_FICP) || defined(CONFIG_PXA_FICP_MODULE)
-static struct pxaficp_platform_data spitz_ficp_platform_data = {
- .transceiver_cap = IR_SIRMODE | IR_OFF,
-};
-
-static void __init spitz_irda_init(void)
-{
- if (machine_is_akita())
- spitz_ficp_platform_data.gpio_pwdown = AKITA_GPIO_IR_ON;
- else
- spitz_ficp_platform_data.gpio_pwdown = SPITZ_GPIO_IR_ON;
-
- pxa_set_ficp_info(&spitz_ficp_platform_data);
-}
-#else
-static inline void spitz_irda_init(void) {}
-#endif
-
/******************************************************************************
* Framebuffer
******************************************************************************/
@@ -1042,7 +1020,6 @@ static void __init spitz_init(void)
spitz_leds_init();
spitz_mmc_init();
spitz_pcmcia_init();
- spitz_irda_init();
spitz_uhc_init();
spitz_lcd_init();
spitz_nor_init();
diff --git a/include/linux/platform_data/irda-pxaficp.h b/include/linux/platform_data/irda-pxaficp.h
deleted file mode 100644
index bd35ddcf3068..000000000000
--
2.39.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-01-05 23:03 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230105134622.254560-1-arnd@kernel.org>
2023-01-05 13:45 ` [PATCH 01/27] ARM: pxa: remove unused board files Arnd Bergmann
2023-01-05 15:50 ` Dmitry Baryshkov
2023-01-05 17:05 ` Richard Purdie
2023-01-05 22:16 ` Arnd Bergmann
2023-01-05 22:45 ` Richard Purdie
2023-01-06 9:47 ` Arnd Bergmann
2023-01-06 10:06 ` Dmitry Baryshkov
2023-01-08 9:06 ` Robert Jarzmik
2023-01-08 20:36 ` Linus Walleij
2023-01-08 21:05 ` Arnd Bergmann
2023-01-08 21:12 ` Dmitry Baryshkov
2023-01-08 21:20 ` Arnd Bergmann
2023-01-05 13:45 ` Arnd Bergmann [this message]
2023-01-05 13:45 ` [PATCH 03/27] ARM: pxa: remove unused pxa3xx-ulpi Arnd Bergmann
2023-01-05 14:55 ` Greg Kroah-Hartman
2023-01-05 13:45 ` [PATCH 04/27] ARM: pxa: drop pxa310/pxa320/pxa93x support Arnd Bergmann
2023-01-05 14:59 ` Ulf Hansson
2023-01-06 2:19 ` Viresh Kumar
2023-01-08 8:49 ` Robert Jarzmik
2023-01-08 13:40 ` Arnd Bergmann
2023-01-09 14:18 ` Arnd Bergmann
2023-01-12 17:37 ` Robert Jarzmik
2023-01-05 13:46 ` [PATCH 05/27] ARM: pxa: prune unused device support Arnd Bergmann
2023-01-05 13:46 ` [PATCH 06/27] power: remove z2_battery driver Arnd Bergmann
2023-01-05 16:35 ` Sebastian Reichel
2023-01-05 13:46 ` [PATCH 07/27] power: remove tosa_battery driver Arnd Bergmann
2023-01-05 16:42 ` Sebastian Reichel
2023-01-05 17:16 ` Arnd Bergmann
2023-01-05 13:46 ` [PATCH 08/27] ata: remove palmld pata driver Arnd Bergmann
2023-01-06 6:25 ` Damien Le Moal
2023-01-11 17:37 ` Sergey Shtylyov
2023-01-05 13:46 ` [PATCH 09/27] backlight: remove pxa tosa support Arnd Bergmann
2023-01-05 14:23 ` Daniel Thompson
2023-01-20 14:00 ` Lee Jones
2023-01-05 13:46 ` [PATCH 10/27] input: remove pxa930_trkball driver Arnd Bergmann
2023-01-05 13:46 ` [PATCH 11/27] input: remove pxa930_rotary keyboard driver Arnd Bergmann
2023-01-05 13:46 ` [PATCH 12/27] input: remove zylonite touchscreen driver Arnd Bergmann
2023-01-05 13:46 ` [PATCH 13/27] pcmcia: remove unused pxa/sa1100 drivers Arnd Bergmann
2023-01-05 13:46 ` [PATCH 14/27] ASoC: PXA: make SND_PXA2XX_SOC_AC97 user-selectable Arnd Bergmann
2023-01-05 13:46 ` [PATCH 15/27] ASoC: pxa: remove unused board support Arnd Bergmann
2023-01-10 13:58 ` Mark Brown
2023-01-05 13:46 ` [PATCH 16/27] power: remove pda_power supply driver Arnd Bergmann
2023-01-05 16:39 ` Sebastian Reichel
2023-01-05 13:46 ` [PATCH 17/27] rtc: remove v3020 driver Arnd Bergmann
2023-01-05 13:46 ` [PATCH 18/27] mfd: remove toshiba tmio drivers Arnd Bergmann
2023-01-20 14:55 ` Lee Jones
2023-01-05 13:46 ` [PATCH 19/27] mfd: remove ucb1400 support Arnd Bergmann
2023-01-20 14:18 ` Lee Jones
2023-01-20 14:27 ` Arnd Bergmann
2023-01-20 14:57 ` Lee Jones
2023-01-05 13:46 ` [PATCH 20/27] mtd: remove tmio_nand driver Arnd Bergmann
2023-01-07 15:41 ` Miquel Raynal
2023-01-05 13:46 ` [PATCH 21/27] mmc: remove tmio_mmc driver Arnd Bergmann
2023-01-05 15:01 ` Ulf Hansson
2023-01-05 15:44 ` Arnd Bergmann
2023-01-16 10:48 ` Ulf Hansson
2023-01-05 15:14 ` Wolfram Sang
2023-01-05 13:46 ` [PATCH 22/27] fbdev: remove tmiofb driver Arnd Bergmann
2023-01-06 9:47 ` Helge Deller
2023-01-06 11:25 ` Arnd Bergmann
2023-01-05 13:46 ` [PATCH 23/27] fbdev: remove w100fb driver Arnd Bergmann
2023-01-05 13:46 ` [PATCH 24/27] leds: remove asic3 driver Arnd Bergmann
2023-01-20 14:02 ` Lee Jones
2023-01-05 13:46 ` [PATCH 25/27] usb: remove ohci-tmio driver Arnd Bergmann
2023-01-05 14:55 ` Greg Kroah-Hartman
2023-01-05 15:03 ` Arnd Bergmann
2023-01-05 13:46 ` [PATCH 26/27] w1: remove ds1wm driver Arnd Bergmann
2023-01-05 13:46 ` [PATCH 27/27] mfd: remove htc-pasic3 driver Arnd Bergmann
2023-01-20 14:09 ` Lee Jones
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=20230105134622.254560-3-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=arnd@arndb.de \
--cc=daniel@zonque.org \
--cc=haojian.zhuang@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robert.jarzmik@free.fr \
/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).