Browse Source

ar71xx/sysmocom: register boot counter for all board

the bootcounter was only registered for ap2
master
Alexander Couzens 6 years ago
parent
commit
641ec9db23
  1. 2
      target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c

2
target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c

@ -158,6 +158,7 @@ static struct i2c_board_info sob_ap_i2c_devs[] __initdata = {
static void __init sysmocom_common_setup(void)
{
ath79_register_m25p80(&size_depend_flash_data);
platform_device_register(&sob_boot_counter);
}
static void __init sysmocom_sob_ap1_setup(void)
@ -223,7 +224,6 @@ static void __init sysmocom_sob_ap2_setup(void)
ath79_reset_rr(AR933X_RESET_REG_BOOTSTRAP) |
AR933X_BOOTSTRAP_MDIO_GPIO_EN);
platform_device_register(&sob_boot_counter);
platform_device_register(&sob_ap2_i2c_gpio_device);
i2c_register_board_info(0, sob_ap_i2c_devs,
ARRAY_SIZE(sob_ap_i2c_devs));

Loading…
Cancel
Save