]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
The AllWinner H2 SoC has the same pinout as the AllWinner H3 SoC, let the Orange...
authorHans Oostendorp <hans@trialen.nl>
Fri, 6 Sep 2019 08:41:10 +0000 (10:41 +0200)
committerHans Oostendorp <hans@trialen.nl>
Fri, 6 Sep 2019 08:41:10 +0000 (10:41 +0200)
src/adafruit_blinka/board/orangepizero.py
src/adafruit_blinka/microcontroller/allwinner_h2/__init__.py [deleted file]
src/adafruit_blinka/microcontroller/allwinner_h2/pin.py [deleted file]

index 0593e06b007daa93078f7c60b2fdc947a3ceb686..bb425aa4b90a8202e691fae107a835d724ca80e0 100644 (file)
@@ -1,6 +1,8 @@
 """Pin definitions for the Orange Pi Zero."""
 
-from adafruit_blinka.microcontroller.allwinner_h2 import pin
+# The Orange Pi Zero uses the AllWinner H2 SoC, but pins 
+# are the same as the AllWinner H3 SoC, so we import those
+from adafruit_blinka.microcontroller.allwinner_h3 import pin
 
 PA12 = pin.PA12
 SDA = pin.PA12
diff --git a/src/adafruit_blinka/microcontroller/allwinner_h2/__init__.py b/src/adafruit_blinka/microcontroller/allwinner_h2/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/src/adafruit_blinka/microcontroller/allwinner_h2/pin.py b/src/adafruit_blinka/microcontroller/allwinner_h2/pin.py
deleted file mode 100644 (file)
index 229dbf7..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-from adafruit_blinka.microcontroller.generic_linux.libgpiod_pin import Pin
-
-PA0 = Pin(0)
-UART2_TX = PA0
-PA1 = Pin(1)
-UART2_RX = PA1
-PA2 = Pin(2)
-PA3 = Pin(3)
-PA6 = Pin(6)
-PA10 = Pin(10)
-PA11 = Pin(11)
-TWI0_SCL = PA11
-PA12 = Pin(12)
-TWI0_SDA = PA12
-PA13 = Pin(13)
-PA14 = Pin(14)
-SPI1_SCLK = PA14
-PA15 = Pin(15)
-SPI1_MOSI = PA15
-PA16 = Pin(16)
-SPI1_MISO = PA16
-PA18 = Pin(18)
-PA19 = Pin(19)
-
-PG6 = Pin(198)
-UART1_TX = PG6
-PG7 = Pin(199)
-UART1_RX = PG7
-
-i2cPorts = ( (0, TWI0_SCL, TWI0_SDA), )
-# ordered as spiId, sckId, mosiId, misoId
-spiPorts = ( (1, SPI1_SCLK, SPI1_MOSI, SPI1_MISO), )
-# ordered as uartId, txId, rxId
-uartPorts = ( (2, UART2_TX, UART2_RX), )