mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
m68k: stmark2: add mcf5441x DAC platform devices
Add mcf5441x DAC platform devices. Reviewed-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Angelo Dureghello <adureghello@baylibre.com> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
This commit is contained in:
parent
fed0dbb659
commit
5736f7ead5
|
|
@ -84,8 +84,28 @@ static struct platform_device dspi_spi0_device = {
|
|||
},
|
||||
};
|
||||
|
||||
static struct resource dac0_resource = DEFINE_RES_MEM(MCFDAC_BASE0, 0x100);
|
||||
|
||||
static struct platform_device dac0_device = {
|
||||
.name = "mcfdac",
|
||||
.id = 0,
|
||||
.num_resources = 1,
|
||||
.resource = &dac0_resource,
|
||||
};
|
||||
|
||||
static struct resource dac1_resource = DEFINE_RES_MEM(MCFDAC_BASE1, 0x100);
|
||||
|
||||
static struct platform_device dac1_device = {
|
||||
.name = "mcfdac",
|
||||
.id = 1,
|
||||
.num_resources = 1,
|
||||
.resource = &dac1_resource,
|
||||
};
|
||||
|
||||
static struct platform_device *stmark2_devices[] __initdata = {
|
||||
&dspi_spi0_device,
|
||||
&dac0_device,
|
||||
&dac1_device,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user