mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
[ARM] 4491/1: em7210 rtc clock
The commitd815461c7a
in linus tree converts the rtc-rs5c372 driver to a "new style" i2c driver. Like commitc00593f6f8
, this patch register the rtc i2c device for the em7210 board. Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
70c14ff0e9
commit
fe885fa237
1 changed files with 13 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
||||||
#include <linux/serial_8250.h>
|
#include <linux/serial_8250.h>
|
||||||
#include <linux/mtd/physmap.h>
|
#include <linux/mtd/physmap.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/i2c.h>
|
||||||
#include <asm/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <linux/irq.h>
|
#include <linux/irq.h>
|
||||||
|
@ -44,6 +45,15 @@ static struct sys_timer em7210_timer = {
|
||||||
.offset = iop_gettimeoffset,
|
.offset = iop_gettimeoffset,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* EM7210 RTC
|
||||||
|
*/
|
||||||
|
static struct i2c_board_info __initdata em7210_i2c_devices[] = {
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("rtc-rs5c372", 0x32),
|
||||||
|
.type = "rs5c372a",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* EM7210 I/O
|
* EM7210 I/O
|
||||||
|
@ -187,6 +197,9 @@ static void __init em7210_init_machine(void)
|
||||||
platform_device_register(&iop3xx_dma_0_channel);
|
platform_device_register(&iop3xx_dma_0_channel);
|
||||||
platform_device_register(&iop3xx_dma_1_channel);
|
platform_device_register(&iop3xx_dma_1_channel);
|
||||||
|
|
||||||
|
i2c_register_board_info(0, em7210_i2c_devices,
|
||||||
|
ARRAY_SIZE(em7210_i2c_devices));
|
||||||
|
|
||||||
|
|
||||||
pm_power_off = em7210_power_off;
|
pm_power_off = em7210_power_off;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue