summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2022-01-24 18:11:38 -0600
committerSerhii Voloshynov <serhii.voloshynov@globallogic.com>2022-01-31 15:46:38 +0200
commitaf1246da8786daa85f4460780975ee4514aeca34 (patch)
tree467fa4d01edbc361fa710f2e66f7bb4d3452a507
parent3d30464041ef78b92751f6f89cfb8299dea6f62d (diff)
downloadmeta-multitech-atmel-af1246da8786daa85f4460780975ee4514aeca34.tar.gz
meta-multitech-atmel-af1246da8786daa85f4460780975ee4514aeca34.tar.bz2
meta-multitech-atmel-af1246da8786daa85f4460780975ee4514aeca34.zip
Change pioA7 from SPI0_NPCS1 to a GPIO input
-rw-r--r--recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/0005-at91bootstrap-3.8-mtcdt.patch8
-rw-r--r--recipes-bsp/at91bootstrap/at91bootstrap_3.8.12.bb2
2 files changed, 8 insertions, 2 deletions
diff --git a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/0005-at91bootstrap-3.8-mtcdt.patch b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/0005-at91bootstrap-3.8-mtcdt.patch
index eb8d60d..49278a2 100644
--- a/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/0005-at91bootstrap-3.8-mtcdt.patch
+++ b/recipes-bsp/at91bootstrap/at91bootstrap-3.8.12/0005-at91bootstrap-3.8-mtcdt.patch
@@ -1,7 +1,12 @@
+ Pin PIOa 7 is resetting to Periph B, SPI0_NPCS1
+ This might be part of the CPU design for booting
+ from SPI NAND. This conflicts with our usage as
+ an input from the USB Host port.
+========================================================================================
diff -Naru orig/board/at91sam9x5ek/at91sam9x5ek.c new/board/at91sam9x5ek/at91sam9x5ek.c
--- orig/board/at91sam9x5ek/at91sam9x5ek.c 2020-09-10 16:30:43.653327254 -0500
+++ new/board/at91sam9x5ek/at91sam9x5ek.c 2020-09-10 16:16:38.597352272 -0500
-@@ -56,6 +56,48 @@
+@@ -56,6 +56,49 @@
writel(0xFF, RTC_SCCR + AT91C_BASE_RTC);
}
@@ -36,6 +41,7 @@ diff -Naru orig/board/at91sam9x5ek/at91sam9x5ek.c new/board/at91sam9x5ek/at91sam
+ {"GNSS-RESET",AT91C_PIN_PD(15), 0, PIO_PULLUP, PIO_OUTPUT},
+ {"MTQ-RESET",AT91C_PIN_PD(17), 1, PIO_PULLUP, PIO_OUTPUT},
+ {"USBHUB-RESET",AT91C_PIN_PD(18), 0, PIO_PULLUP, PIO_OUTPUT},
++ {"N_USB_HOST_OC",AT91C_PIN_PA(7), 0, PIO_DEFAULT, PIO_INPUT},
+ {"GNSS-INT",AT91C_PIN_PD(19), 1, PIO_PULLUP, PIO_OUTPUT},
+ {"WIFI-BT-LPMODE",AT91C_PIN_PD(20), 0, PIO_PULLUP, PIO_INPUT},
+ {"N_GPIO_EXP1_RESET",AT91C_PIN_PD(16), 1, PIO_DEFAULT, PIO_OUTPUT},
diff --git a/recipes-bsp/at91bootstrap/at91bootstrap_3.8.12.bb b/recipes-bsp/at91bootstrap/at91bootstrap_3.8.12.bb
index a92f928..d1bbb38 100644
--- a/recipes-bsp/at91bootstrap/at91bootstrap_3.8.12.bb
+++ b/recipes-bsp/at91bootstrap/at91bootstrap_3.8.12.bb
@@ -1,5 +1,5 @@
require at91bootstrap.inc
-PR = "m7"
+PR = "m8"
LIC_FILES_CHKSUM = "file://main.c;endline=27;md5=a2a70db58191379e2550cbed95449fbd"