Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d2fe946 authored by Greg Ungerer's avatar Greg Ungerer
Browse files

m68knommu: merge common ColdFire UART platform setup code



The ColdFire UART is common to all ColdFire CPU's. No need to duplicate
its platform setup code for every CPU family member. Merge all the setup
code into a single shared file.

Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
parent b9a0c3f8
Loading
Loading
Loading
Loading
+0 −34
Original line number Diff line number Diff line
@@ -20,30 +20,6 @@

/***************************************************************************/

static struct mcf_platform_uart m5206_uart_platform[] = {
	{
		.mapbase	= MCFUART_BASE0,
		.irq		= MCF_IRQ_UART0,
	},
	{
		.mapbase 	= MCFUART_BASE1,
		.irq		= MCF_IRQ_UART1,
	},
	{ },
};

static struct platform_device m5206_uart = {
	.name			= "mcfuart",
	.id			= 0,
	.dev.platform_data	= m5206_uart_platform,
};

static struct platform_device *m5206_devices[] __initdata = {
	&m5206_uart,
};

/***************************************************************************/

static void __init m5206_uarts_init(void)
{
	/* UART0 interrupt setup */
@@ -107,13 +83,3 @@ void __init config_BSP(char *commandp, int size)
}

/***************************************************************************/

static int __init init_BSP(void)
{
	platform_add_devices(m5206_devices, ARRAY_SIZE(m5206_devices));
	return 0;
}

arch_initcall(init_BSP);

/***************************************************************************/
+0 −23
Original line number Diff line number Diff line
@@ -25,28 +25,6 @@

/***************************************************************************/

static struct mcf_platform_uart m520x_uart_platform[] = {
	{
		.mapbase	= MCFUART_BASE0,
		.irq		= MCF_IRQ_UART0,
	},
	{
		.mapbase 	= MCFUART_BASE1,
		.irq		= MCF_IRQ_UART1,
	},
	{
		.mapbase 	= MCFUART_BASE2,
		.irq		= MCF_IRQ_UART2,
	},
	{ },
};

static struct platform_device m520x_uart = {
	.name			= "mcfuart",
	.id			= 0,
	.dev.platform_data	= m520x_uart_platform,
};

static struct resource m520x_fec_resources[] = {
	{
		.start		= MCFFEC_BASE,
@@ -218,7 +196,6 @@ static void __init m520x_qspi_init(void)


static struct platform_device *m520x_devices[] __initdata = {
	&m520x_uart,
	&m520x_fec,
#if defined(CONFIG_SPI_COLDFIRE_QSPI) || defined(CONFIG_SPI_COLDFIRE_QSPI_MODULE)
	&m520x_qspi,
+0 −23
Original line number Diff line number Diff line
@@ -26,28 +26,6 @@

/***************************************************************************/

static struct mcf_platform_uart m523x_uart_platform[] = {
	{
		.mapbase	= MCFUART_BASE0,
		.irq		= MCF_IRQ_UART0,
	},
	{
		.mapbase 	= MCFUART_BASE1,
		.irq		= MCF_IRQ_UART1,
	},
	{
		.mapbase 	= MCFUART_BASE2,
		.irq		= MCF_IRQ_UART2,
	},
	{ },
};

static struct platform_device m523x_uart = {
	.name			= "mcfuart",
	.id			= 0,
	.dev.platform_data	= m523x_uart_platform,
};

static struct resource m523x_fec_resources[] = {
	{
		.start		= MCFFEC_BASE,
@@ -240,7 +218,6 @@ static void __init m523x_qspi_init(void)
#endif /* defined(CONFIG_SPI_COLDFIRE_QSPI) || defined(CONFIG_SPI_COLDFIRE_QSPI_MODULE) */

static struct platform_device *m523x_devices[] __initdata = {
	&m523x_uart,
	&m523x_fec,
#if defined(CONFIG_SPI_COLDFIRE_QSPI) || defined(CONFIG_SPI_COLDFIRE_QSPI_MODULE)
	&m523x_qspi,
+0 −19
Original line number Diff line number Diff line
@@ -22,24 +22,6 @@

/***************************************************************************/

static struct mcf_platform_uart m5249_uart_platform[] = {
	{
		.mapbase	= MCFUART_BASE0,
		.irq		= MCF_IRQ_UART0,
	},
	{
		.mapbase 	= MCFUART_BASE1,
		.irq		= MCF_IRQ_UART1,
	},
	{ },
};

static struct platform_device m5249_uart = {
	.name			= "mcfuart",
	.id			= 0,
	.dev.platform_data	= m5249_uart_platform,
};

#ifdef CONFIG_M5249C3

static struct resource m5249_smc91x_resources[] = {
@@ -223,7 +205,6 @@ static void __init m5249_qspi_init(void)


static struct platform_device *m5249_devices[] __initdata = {
	&m5249_uart,
#ifdef CONFIG_M5249C3
	&m5249_smc91x,
#endif
+0 −19
Original line number Diff line number Diff line
@@ -30,24 +30,6 @@ unsigned char ledbank = 0xff;

/***************************************************************************/

static struct mcf_platform_uart m5272_uart_platform[] = {
	{
		.mapbase	= MCFUART_BASE0,
		.irq		= MCF_IRQ_UART0,
	},
	{
		.mapbase 	= MCFUART_BASE1,
		.irq		= MCF_IRQ_UART1,
	},
	{ },
};

static struct platform_device m5272_uart = {
	.name			= "mcfuart",
	.id			= 0,
	.dev.platform_data	= m5272_uart_platform,
};

static struct resource m5272_fec_resources[] = {
	{
		.start		= MCF_MBAR + 0x840,
@@ -79,7 +61,6 @@ static struct platform_device m5272_fec = {
};

static struct platform_device *m5272_devices[] __initdata = {
	&m5272_uart,
	&m5272_fec,
};

Loading