Commit a6b6b5ff authored by Jonas Larsson's avatar Jonas Larsson Committed by Haavard Skinnemoen

Add RTC support for Merisc boards

This patch adds RTC support for the Merisc boards.
Signed-off-by: default avatarJonas Larsson <jonas.larsson@martinsson.se>
Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
parent 2f47c8c5
...@@ -160,6 +160,12 @@ static struct platform_device i2c_gpio_device = { ...@@ -160,6 +160,12 @@ static struct platform_device i2c_gpio_device = {
}, },
}; };
static struct i2c_board_info __initdata i2c_info[] = {
{
I2C_BOARD_INFO("pcf8563", 0x51)
},
};
#ifdef CONFIG_LEDS_ATMEL_PWM #ifdef CONFIG_LEDS_ATMEL_PWM
static struct gpio_led stk_pwm_led[] = { static struct gpio_led stk_pwm_led[] = {
{ {
...@@ -284,6 +290,8 @@ static int __init merisc_init(void) ...@@ -284,6 +290,8 @@ static int __init merisc_init(void)
AT32_GPIOF_MULTIDRV | AT32_GPIOF_OUTPUT | AT32_GPIOF_HIGH); AT32_GPIOF_MULTIDRV | AT32_GPIOF_OUTPUT | AT32_GPIOF_HIGH);
platform_device_register(&i2c_gpio_device); platform_device_register(&i2c_gpio_device);
i2c_register_board_info(0, i2c_info, ARRAY_SIZE(i2c_info));
return 0; return 0;
} }
postcore_initcall(merisc_init); postcore_initcall(merisc_init);
...@@ -887,7 +887,7 @@ CONFIG_RTC_INTF_DEV=y ...@@ -887,7 +887,7 @@ CONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_DRV_RS5C372 is not set # CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set # CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_X1205 is not set # CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF8563 is not set CONFIG_RTC_DRV_PCF8563=y
# CONFIG_RTC_DRV_PCF8583 is not set # CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set # CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_S35390A is not set # CONFIG_RTC_DRV_S35390A is not set
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment