From 28226b9a2ccdc8181d1887e03e9fc7501b885e40 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Thu, 7 Apr 2016 10:48:14 +0200 Subject: arm: mvebu: theadorable: Add bootcounter support This patch adds bootcount support to the MVEBU theadorable board. Since no reset-safe registers seem to be available, it uses the last 4KiB of SDRAM for the bootcounter location. Signed-off-by: Stefan Roese --- include/configs/theadorable.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/configs/theadorable.h b/include/configs/theadorable.h index a4bcf21..20a44c9 100644 --- a/include/configs/theadorable.h +++ b/include/configs/theadorable.h @@ -120,6 +120,14 @@ #define CONFIG_FPGA_STRATIX_V /* + * Bootcounter + */ +#define CONFIG_BOOTCOUNT_LIMIT +#define CONFIG_BOOTCOUNT_RAM +/* Max size of RAM minus BOOTCOUNT_ADDR is the bootcounter address */ +#define BOOTCOUNT_ADDR 0x1000 + +/* * mv-common.h should be defined after CMD configs since it used them * to enable certain macros */ -- cgit v1.1 From 8ac71da94d63368136baf352e543ba9790db2610 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Fri, 8 Apr 2016 15:58:29 +0200 Subject: arm: mvebu: theadorable: Enable 2nd I2C controller This patch enables the 2nd I2C controller on the Armada XP theadorable board. Signed-off-by: Stefan Roese --- include/configs/theadorable.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/configs/theadorable.h b/include/configs/theadorable.h index 20a44c9..05a248e 100644 --- a/include/configs/theadorable.h +++ b/include/configs/theadorable.h @@ -51,6 +51,7 @@ #define CONFIG_SYS_I2C #define CONFIG_SYS_I2C_MVTWSI #define CONFIG_I2C_MVTWSI_BASE0 MVEBU_TWSI_BASE +#define CONFIG_I2C_MVTWSI_BASE1 MVEBU_TWSI1_BASE #define CONFIG_SYS_I2C_SLAVE 0x0 #define CONFIG_SYS_I2C_SPEED 100000 -- cgit v1.1 From 169a85501715d39f8a4af810e51df1300920fae9 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Fri, 8 Apr 2016 15:58:30 +0200 Subject: arm: mvebu: theadorable: Add PEX-switch detection and reset code Sometimes the PCIe link for the PEX-switch will not come-up. In this case, the board is not in a usable state. This patch makes sure that in this case a soft-reset is issued. If this soft-reset does not result in the PEX-switch being detected after some soft-reset cycles, an I2C message is sent to the uC to issue a complete power-cycle of the board. Signed-off-by: Stefan Roese --- include/configs/theadorable.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/configs/theadorable.h b/include/configs/theadorable.h index 05a248e..5864f27 100644 --- a/include/configs/theadorable.h +++ b/include/configs/theadorable.h @@ -104,6 +104,7 @@ #define CONFIG_PCI #define CONFIG_PCI_MVEBU #define CONFIG_PCI_PNP +#define CONFIG_BOARD_LATE_INIT /* for PEX switch test */ #endif #endif -- cgit v1.1