9
0
Fork 0

ARM imx27ads: Use device functions

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2010-10-24 20:53:49 +02:00
parent 5e8b64017e
commit 6f3e7b6529
1 changed files with 3 additions and 16 deletions

View File

@ -32,6 +32,7 @@
#include <fcntl.h>
#include <generated/mach-types.h>
#include <mach/iomux-mx27.h>
#include <mach/devices-imx27.h>
static struct device_d cfi_dev = {
.id = -1,
@ -58,13 +59,6 @@ static struct fec_platform_data fec_info = {
.phy_addr = 1,
};
static struct device_d fec_dev = {
.id = -1,
.name = "fec_imx",
.map_base = 0x1002b000,
.platform_data = &fec_info,
};
static int imx27ads_timing_init(void)
{
/* configure cpld on cs4 */
@ -134,7 +128,7 @@ static int mx27ads_devices_init(void)
register_device(&cfi_dev);
register_device(&sdram_dev);
register_device(&fec_dev);
imx27_add_fec(&fec_info);
devfs_add_partition("nor0", 0x00000, 0x20000, PARTITION_FIXED, "self0");
devfs_add_partition("nor0", 0x20000, 0x20000, PARTITION_FIXED, "env0");
@ -149,16 +143,9 @@ static int mx27ads_devices_init(void)
device_initcall(mx27ads_devices_init);
static struct device_d mx27ads_serial_device = {
.id = -1,
.name = "imx_serial",
.map_base = IMX_UART1_BASE,
.size = 4096,
};
static int mx27ads_console_init(void)
{
register_device(&mx27ads_serial_device);
imx27_add_uart0();
return 0;
}