Compare commits

...

3 Commits

Author SHA1 Message Date
Alexander Couzens 4a16f8b4f4 fixup boot-counter as platform device 2015-07-01 16:44:31 +02:00
Alexander Couzens dd99dd4ab5 ar71xx/sysmocom: rename image filename to be consistant with board name
sed -i 's/,sysmo-sob-/,-sysmocom-sob-/g' target/linux/ar71xx/image/Makefile
2015-06-30 19:24:17 +02:00
Alexander Couzens 7b9a031efa ar71xx/sysmocom: register boot counter as platform_device 2015-06-30 18:02:04 +02:00
2 changed files with 22 additions and 4 deletions

View File

@ -112,6 +112,23 @@ static struct i2c_gpio_platform_data sob_ap2_i2c_gpio_data = {
.udelay = 20,
};
static struct resource boot_counter_resources[] = {
{
.name = "counter_base",
.flags = IORESOURCE_MEM,
.start = 0x1d000100,
.end = 0x1d000100 + 0x10 - 1,
}
};
static struct platform_device sob_boot_counter = {
.name = "boot-counter-sram",
.id = 0,
.resource = boot_counter_resources,
.num_resources = ARRAY_SIZE(boot_counter_resources),
};
static struct platform_device sob_ap1_i2c_gpio_device = {
.name = "i2c-gpio",
.id = 0,
@ -206,6 +223,7 @@ 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));

View File

@ -1068,10 +1068,10 @@ $(eval $(call SingleProfile,AthLzma,64k,AP113,ap113,AP113,ttyS0,115200,$$(ap113_
$(eval $(call SingleProfile,AthLzma,64k,AP121_2M,ap121-2M,AP121,ttyATH0,115200,$$(ap121_mtdlayout_2M),RKuImage))
$(eval $(call SingleProfile,AthLzma,64k,AP121_4M,ap121-4M,AP121,ttyATH0,115200,$$(ap121_mtdlayout_4M),RKuImage))
$(eval $(call SingleProfile,AthLzma,64k,CARAMBOLA2,carambola2,CARAMBOLA2,ttyATH0,115200,$$(carambola2_mtdlayout_16M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,SYSMOSOBAP1,sysmo-sob-ap1,SYSMOSOBAP1,ttyATH0,115200,$$(carambola2_mtdlayout_16M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,SYSMOSOBAP2,sysmo-sob-ap2,SYSMOSOBAP2,ttyATH0,115200,$$(carambola2_mtdlayout_8M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,SYSMOSOBJB02,sysmo-sob-jb02v2-cb2,SYSMOSOBJB02,ttyATH0,115200,$$(carambola2_mtdlayout_16M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,SYSMOSOBJB02V3,sysmo-sob-jb02v3,SYSMOSOBJB02V3,ttyATH0,115200,$$(carambola2_mtdlayout_16M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,SYSMOSOBAP1,sysmocom-sob-ap1,SYSMOSOBAP1,ttyATH0,115200,$$(carambola2_mtdlayout_16M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,SYSMOSOBAP2,sysmocom-sob-ap2,SYSMOSOBAP2,ttyATH0,115200,$$(carambola2_mtdlayout_8M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,SYSMOSOBJB02,sysmocom-sob-jb02v2-cb2,SYSMOSOBJB02,ttyATH0,115200,$$(carambola2_mtdlayout_16M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,SYSMOSOBJB02V3,sysmocom-sob-jb02v3,SYSMOSOBJB02V3,ttyATH0,115200,$$(carambola2_mtdlayout_16M),KRuImage,65536))
$(eval $(call SingleProfile,AthLzma,64k,AP121MINI,ap121-mini,AP121-MINI,ttyATH0,115200,$$(ap121_mtdlayout_4M),RKuImage))
$(eval $(call SingleProfile,AthLzma,64k,AP132,ap132,AP132,ttyS0,115200,$$(ap132_mtdlayout),KRuImage))
$(eval $(call SingleProfile,AthLzma,64k,AP135,ap135-020,AP135-020,ttyS0,115200,$$(ap135_mtdlayout),RKuImage))