},
};
+static struct i2c_board_info __initdata i2c_info[] = {
+ {
+ I2C_BOARD_INFO("pcf8563", 0x51)
+ },
+};
+
#ifdef CONFIG_LEDS_ATMEL_PWM
static struct gpio_led stk_pwm_led[] = {
{
void __init setup_board(void)
{
- at32_map_usart(0, 0);
- at32_map_usart(1, 1);
- at32_map_usart(3, 3);
+ at32_map_usart(0, 0, 0);
+ at32_map_usart(1, 1, 0);
+ at32_map_usart(3, 3, 0);
at32_setup_serial_console(1);
}
at32_reserve_pin(GPIO_PIOE_BASE, ATMEL_EBI_PE_DATA_ALL | (1 << 26));
if (merisc_board_id >= 1)
- at32_map_usart(2, 2);
+ at32_map_usart(2, 2, 0);
at32_add_device_usart(0);
at32_add_device_usart(1);
AT32_GPIOF_MULTIDRV | AT32_GPIOF_OUTPUT | AT32_GPIOF_HIGH);
platform_device_register(&i2c_gpio_device);
+ i2c_register_board_info(0, i2c_info, ARRAY_SIZE(i2c_info));
+
return 0;
}
postcore_initcall(merisc_init);