From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mo1.mail-out.ovh.net ([178.32.228.1]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VNGwO-0003Aa-U9 for barebox@lists.infradead.org; Sat, 21 Sep 2013 06:45:18 +0000 Received: from mail440.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo1.mail-out.ovh.net (Postfix) with SMTP id 952B7101005E for ; Sat, 21 Sep 2013 08:44:53 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 21 Sep 2013 08:46:07 +0200 Message-Id: <1379745967-4575-4-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1379745967-4575-1-git-send-email-plagnioj@jcrosoft.com> References: <20130921064503.GI1137@ns203013.ovh.net> <1379745967-4575-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/4] animeo_ip: add bootcount support To: barebox@lists.infradead.org As we use a backup register with a backup battery, the boot count is since ever. when updating to defaultenv-2 we will use it to decide what to boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 2 ++ arch/arm/configs/animeo_ip_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c index 56b8df2..08fef58 100644 --- a/arch/arm/boards/animeo_ip/init.c +++ b/arch/arm/boards/animeo_ip/init.c @@ -219,6 +219,8 @@ static int animeo_ip_devices_init(void) animeo_ip_add_device_mci(); animeo_ip_add_device_buttons(); animeo_ip_add_device_led(); + add_generic_device("somfy_bootcount", DEVICE_ID_SINGLE, NULL, AT91SAM9260_BASE_GPBR + 2 * 4, + 4, IORESOURCE_MEM, NULL); armlinux_set_bootparams((void *)(AT91_CHIPSELECT_1 + 0x100)); /* diff --git a/arch/arm/configs/animeo_ip_defconfig b/arch/arm/configs/animeo_ip_defconfig index 23e7278..f4463b7 100644 --- a/arch/arm/configs/animeo_ip_defconfig +++ b/arch/arm/configs/animeo_ip_defconfig @@ -68,6 +68,8 @@ CONFIG_UBI=y CONFIG_MCI=y CONFIG_MCI_STARTUP=y CONFIG_MCI_ATMEL=y +CONFIG_MISC_DEVICES=y +CONFIG_SOMFY_BOOTCOUNT=y CONFIG_LED=y CONFIG_LED_GPIO=y CONFIG_LED_GPIO_BICOLOR=y -- 1.8.4.rc1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox