[Armadeus-commitlog] armadeus branch, master, updated. armadeus-7.0-135-g6f4a89776
Brought to you by:
sszy
|
From: Sébastien S. <ss...@us...> - 2019-10-17 13:10:44
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 6f4a897766d6e5e8e036294738481440da9484e6 (commit)
from 9919e04884f59dd6db8dd05a0915972700076cd9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6f4a897766d6e5e8e036294738481440da9484e6
Author: Sébastien Szymanski <seb...@ar...>
Date: Thu Oct 17 15:09:30 2019 +0200
[U-BOOT] 2014.07: apf6: print board version
-----------------------------------------------------------------------
Summary of changes:
.../2014.07/611-armadeus-detect-apf6-version.patch | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644 patches/u-boot/2014.07/611-armadeus-detect-apf6-version.patch
diff --git a/patches/u-boot/2014.07/611-armadeus-detect-apf6-version.patch b/patches/u-boot/2014.07/611-armadeus-detect-apf6-version.patch
new file mode 100644
index 000000000..ad324c758
--- /dev/null
+++ b/patches/u-boot/2014.07/611-armadeus-detect-apf6-version.patch
@@ -0,0 +1,44 @@
+Index: uboot-2014.07/board/armadeus/apf6/apf6.c
+===================================================================
+--- uboot-2014.07.orig/board/armadeus/apf6/apf6.c
++++ uboot-2014.07/board/armadeus/apf6/apf6.c
+@@ -48,8 +48,11 @@ DECLARE_GLOBAL_DATA_PTR;
+ #define USB_PAD_CTRL (PAD_CTL_HYS | PAD_CTL_PUS_47K_UP | \
+ PAD_CTL_PUE)
+
++#define APF6_V2_PAD_CTRL (PAD_CTL_HYS)
++
+ #define USDHC2_CD_GPIO IMX_GPIO_NR(1, 2)
+ #define ETH_PHY_RESET IMX_GPIO_NR(1, 24)
++#define APF6_V2_GPIO IMX_GPIO_NR(6, 9)
+
+ static iomux_v3_cfg_t const uart4_pads[] = {
+ IOMUX_PADS(PAD_CSI0_DAT12__UART4_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL)),
+@@ -122,6 +125,10 @@ static iomux_v3_cfg_t const usb_pads[] =
+ IOMUX_PADS(PAD_GPIO_1__USB_OTG_ID | MUX_PAD_CTRL(USB_PAD_CTRL)),
+ };
+
++static iomux_v3_cfg_t const apf6_v2_pads[] = {
++ IOMUX_PADS(PAD_NANDF_WP_B__GPIO6_IO09 | MUX_PAD_CTRL(APF6_V2_PAD_CTRL)),
++};
++
+ static void setup_iomux_uart(void)
+ {
+ SETUP_IOMUX_PADS(uart4_pads);
+@@ -389,7 +396,15 @@ int board_init(void)
+
+ int checkboard(void)
+ {
+- puts("Board: APF6\n");
++ SETUP_IOMUX_PADS(apf6_v2_pads);
++ gpio_direction_input(APF6_V2_GPIO);
++
++ puts("Board: APF6");
++
++ if (gpio_get_value(APF6_V2_GPIO))
++ puts("v2");
++
++ puts("\n");
+
+ return 0;
+ }
hooks/post-receive
--
armadeus
|