Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) // SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *  linux/arch/arm/mach-pxa/ssp.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  *  based on linux/arch/arm/mach-sa1100/ssp.c by Russell King
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  *  Copyright (C) 2003 Russell King.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  *  Copyright (C) 2003 Wolfson Microelectronics PLC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  *  PXA2xx SSP driver.  This provides the generic core for simple
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  *  IO-based SSP applications and allows easy port setup for DMA access.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  *  Author: Liam Girdwood <liam.girdwood@wolfsonmicro.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/sched.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #include <linux/slab.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) #include <linux/errno.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #include <linux/ioport.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) #include <linux/init.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) #include <linux/mutex.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) #include <linux/clk.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #include <linux/err.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) #include <linux/spi/pxa2xx_spi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) #include <linux/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) #include <linux/of.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) #include <linux/of_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) #include <asm/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) static DEFINE_MUTEX(ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) static LIST_HEAD(ssp_list);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) struct ssp_device *pxa_ssp_request(int port, const char *label)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 	struct ssp_device *ssp = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	mutex_lock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	list_for_each_entry(ssp, &ssp_list, node) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 		if (ssp->port_id == port && ssp->use_count == 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 			ssp->use_count++;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 			ssp->label = label;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	mutex_unlock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	if (&ssp->node == &ssp_list)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 		return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	return ssp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) EXPORT_SYMBOL(pxa_ssp_request);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) struct ssp_device *pxa_ssp_request_of(const struct device_node *of_node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 				      const char *label)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	struct ssp_device *ssp = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	mutex_lock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	list_for_each_entry(ssp, &ssp_list, node) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 		if (ssp->of_node == of_node && ssp->use_count == 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 			ssp->use_count++;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 			ssp->label = label;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 			break;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	mutex_unlock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	if (&ssp->node == &ssp_list)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 		return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	return ssp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) EXPORT_SYMBOL(pxa_ssp_request_of);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) void pxa_ssp_free(struct ssp_device *ssp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	mutex_lock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	if (ssp->use_count) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 		ssp->use_count--;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 		ssp->label = NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	} else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 		dev_err(ssp->dev, "device already free\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	mutex_unlock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) EXPORT_SYMBOL(pxa_ssp_free);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) #ifdef CONFIG_OF
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) static const struct of_device_id pxa_ssp_of_ids[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	{ .compatible = "mrvl,pxa25x-ssp",	.data = (void *) PXA25x_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 	{ .compatible = "mvrl,pxa25x-nssp",	.data = (void *) PXA25x_NSSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	{ .compatible = "mrvl,pxa27x-ssp",	.data = (void *) PXA27x_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	{ .compatible = "mrvl,pxa3xx-ssp",	.data = (void *) PXA3xx_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 	{ .compatible = "mvrl,pxa168-ssp",	.data = (void *) PXA168_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 	{ .compatible = "mrvl,pxa910-ssp",	.data = (void *) PXA910_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	{ .compatible = "mrvl,ce4100-ssp",	.data = (void *) CE4100_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	{ },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) MODULE_DEVICE_TABLE(of, pxa_ssp_of_ids);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) static int pxa_ssp_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 	struct resource *res;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	struct ssp_device *ssp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	struct device *dev = &pdev->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	ssp = devm_kzalloc(dev, sizeof(struct ssp_device), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	if (ssp == NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 		return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	ssp->dev = dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	ssp->clk = devm_clk_get(dev, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	if (IS_ERR(ssp->clk))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 		return PTR_ERR(ssp->clk);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 	if (res == NULL) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 		dev_err(dev, "no memory resource defined\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	res = devm_request_mem_region(dev, res->start, resource_size(res),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 				      pdev->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	if (res == NULL) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 		dev_err(dev, "failed to request memory resource\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 		return -EBUSY;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	ssp->phys_base = res->start;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	ssp->mmio_base = devm_ioremap(dev, res->start, resource_size(res));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	if (ssp->mmio_base == NULL) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 		dev_err(dev, "failed to ioremap() registers\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	ssp->irq = platform_get_irq(pdev, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 	if (ssp->irq < 0) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 		dev_err(dev, "no IRQ resource defined\n");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	if (dev->of_node) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 		const struct of_device_id *id =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 			of_match_device(of_match_ptr(pxa_ssp_of_ids), dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 		ssp->type = (int) id->data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	} else {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 		const struct platform_device_id *id =
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) 			platform_get_device_id(pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 		ssp->type = (int) id->driver_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 		/* PXA2xx/3xx SSP ports starts from 1 and the internal pdev->id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 		 * starts from 0, do a translation here
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 		 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 		ssp->port_id = pdev->id + 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	ssp->use_count = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	ssp->of_node = dev->of_node;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	mutex_lock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	list_add(&ssp->node, &ssp_list);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	mutex_unlock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	platform_set_drvdata(pdev, ssp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) static int pxa_ssp_remove(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 	struct ssp_device *ssp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 	ssp = platform_get_drvdata(pdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	if (ssp == NULL)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 		return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 	mutex_lock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	list_del(&ssp->node);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	mutex_unlock(&ssp_lock);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) static const struct platform_device_id ssp_id_table[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	{ "pxa25x-ssp",		PXA25x_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	{ "pxa25x-nssp",	PXA25x_NSSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	{ "pxa27x-ssp",		PXA27x_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	{ "pxa3xx-ssp",		PXA3xx_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	{ "pxa168-ssp",		PXA168_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	{ "pxa910-ssp",		PXA910_SSP },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	{ },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) static struct platform_driver pxa_ssp_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	.probe		= pxa_ssp_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	.remove		= pxa_ssp_remove,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	.driver		= {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 		.name		= "pxa2xx-ssp",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 		.of_match_table	= of_match_ptr(pxa_ssp_of_ids),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 	.id_table	= ssp_id_table,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) static int __init pxa_ssp_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	return platform_driver_register(&pxa_ssp_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) static void __exit pxa_ssp_exit(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 	platform_driver_unregister(&pxa_ssp_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) arch_initcall(pxa_ssp_init);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) module_exit(pxa_ssp_exit);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) MODULE_DESCRIPTION("PXA SSP driver");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) MODULE_AUTHOR("Liam Girdwood");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) MODULE_LICENSE("GPL");