Change in osmo-ccid-firmware[master]: Update from AtmelStart: Define all used GPIO pins

2019-02-26 Thread Kévin Redon
Kévin Redon has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/13032 )

Change subject: Update from AtmelStart: Define all used GPIO pins
..

Update from AtmelStart: Define all used GPIO pins

Change-Id: I2cb67fd01f6e8602af16bbdb4960427586cdd9a4
---
M sysmoOCTSIM/atmel_start_config.atstart
M sysmoOCTSIM/atmel_start_pins.h
M sysmoOCTSIM/driver_init.c
3 files changed, 366 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Kévin Redon: Looks good to me, approved



diff --git a/sysmoOCTSIM/atmel_start_config.atstart 
b/sysmoOCTSIM/atmel_start_config.atstart
index 58f05f6..a301385 100644
--- a/sysmoOCTSIM/atmel_start_config.atstart
+++ b/sysmoOCTSIM/atmel_start_config.atstart
@@ -1367,6 +1367,66 @@
 configuration:
   usb_gclk_selection: Generic clock generator 1
 pads:
+  SIM0_INT:
+name: PC00
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC00
+mode: Digital input
+user_label: SIM0_INT
+configuration: null
+  SIM1_INT:
+name: PC01
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC01
+mode: Digital input
+user_label: SIM1_INT
+configuration: null
+  SIM2_INT:
+name: PC02
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC02
+mode: Digital input
+user_label: SIM2_INT
+configuration: null
+  SIM3_INT:
+name: PC03
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC03
+mode: Digital input
+user_label: SIM3_INT
+configuration: null
+  SIM4_INT:
+name: PA02
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PA02
+mode: Digital input
+user_label: SIM4_INT
+configuration: null
+  SIM5_INT:
+name: PA03
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PA03
+mode: Digital input
+user_label: SIM5_INT
+configuration: null
+  SIM6_INT:
+name: PB04
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB04
+mode: Digital input
+user_label: SIM6_INT
+configuration: null
+  SIM7_INT:
+name: PB05
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB05
+mode: Digital input
+user_label: SIM7_INT
+configuration: null
+  SCL3:
+name: PB06
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB06
+mode: Digital output
+user_label: SCL3
+configuration: null
+  SDA3:
+name: PB07
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB07
+mode: Digital output
+user_label: SDA3
+configuration: null
   SIM4_IO:
 name: PB08
 definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB08
@@ -1395,12 +1455,30 @@
   pad_function: M
   pad_initial_level: Low
   pad_pull_config: 'Off'
+  SCL1:
+name: PB14
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB14
+mode: Digital output
+user_label: SCL1
+configuration: null
+  SDA1:
+name: PB15
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB15
+mode: Digital output
+user_label: SDA1
+configuration: null
   SWITCH:
 name: PC14
 definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC14
 mode: Digital input
 user_label: SWITCH
 configuration: null
+  MUX_SSTAT:
+name: PC15
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC15
+mode: Digital input
+user_label: MUX_SSTAT
+configuration: null
   SIM1_IO:
 name: PA16
 definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PA16
@@ -1467,6 +1545,18 @@
 mode: Digital output
 user_label: USER_LED
 configuration: null
+  SCL4:
+name: PC27
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC27
+mode: Digital output
+user_label: SCL4
+configuration: null
+  SDA4:
+name: PC28
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC28
+mode: Digital output
+user_label: SDA4
+configuration: null
   UART_TX:
 name: PB30
 definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB30
@@ -1479,4 +1569,16 @@
 mode: Peripheral IO
 user_label: UART_RX
 configuration: null
+  SCL2:
+name: PB02
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB02
+mode: Digital output
+user_label: SCL2
+configuration: null
+  SDA2:
+name: PB03
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB03
+mode: Digital output
+user_label: SDA2
+configuration: null
 toolchain_options: []
diff --git a/sysmoOCTSIM/atmel_start_pins.h b/sysmoOCTSIM/atmel_start_pins.h
index ad5f27b..60b70bb 100644
--- a/sysmoOCTSIM/atmel_start_pins.h
+++ b/sysmoOCTSIM/atmel_start_pins.h
@@ -27,6 +27,8 @@
 #define GPIO_PIN_FUNCTION_M 12
 #define GPIO_PIN_FUNCTION_N 13

+#define SIM4_INT GPIO(GPIO_PORTA, 2)
+#define SIM5_INT GPIO(GPIO_PORTA, 3)
 #define SIM0_IO GPIO(GPIO_PORTA, 4)
 #d

Change in osmo-ccid-firmware[master]: Update from AtmelStart: Define all used GPIO pins

2019-02-26 Thread Kévin Redon
Kévin Redon has posted comments on this change. ( 
https://gerrit.osmocom.org/13032 )

Change subject: Update from AtmelStart: Define all used GPIO pins
..


Patch Set 2: Code-Review+2


--
To view, visit https://gerrit.osmocom.org/13032
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2cb67fd01f6e8602af16bbdb4960427586cdd9a4
Gerrit-Change-Number: 13032
Gerrit-PatchSet: 2
Gerrit-Owner: Harald Welte 
Gerrit-Reviewer: Jenkins Builder (102)
Gerrit-Reviewer: Kévin Redon 
Gerrit-Comment-Date: Tue, 26 Feb 2019 17:48:35 +
Gerrit-HasComments: No
Gerrit-HasLabels: Yes


Change in osmo-ccid-firmware[master]: Update from AtmelStart: Define all used GPIO pins

2019-02-24 Thread Harald Welte
Harald Welte has uploaded this change for review. ( 
https://gerrit.osmocom.org/13032


Change subject: Update from AtmelStart: Define all used GPIO pins
..

Update from AtmelStart: Define all used GPIO pins

Change-Id: I2cb67fd01f6e8602af16bbdb4960427586cdd9a4
---
M sysmoOCTSIM/atmel_start_config.atstart
M sysmoOCTSIM/atmel_start_pins.h
M sysmoOCTSIM/driver_init.c
3 files changed, 366 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware 
refs/changes/32/13032/1

diff --git a/sysmoOCTSIM/atmel_start_config.atstart 
b/sysmoOCTSIM/atmel_start_config.atstart
index 58f05f6..a301385 100644
--- a/sysmoOCTSIM/atmel_start_config.atstart
+++ b/sysmoOCTSIM/atmel_start_config.atstart
@@ -1367,6 +1367,66 @@
 configuration:
   usb_gclk_selection: Generic clock generator 1
 pads:
+  SIM0_INT:
+name: PC00
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC00
+mode: Digital input
+user_label: SIM0_INT
+configuration: null
+  SIM1_INT:
+name: PC01
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC01
+mode: Digital input
+user_label: SIM1_INT
+configuration: null
+  SIM2_INT:
+name: PC02
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC02
+mode: Digital input
+user_label: SIM2_INT
+configuration: null
+  SIM3_INT:
+name: PC03
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC03
+mode: Digital input
+user_label: SIM3_INT
+configuration: null
+  SIM4_INT:
+name: PA02
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PA02
+mode: Digital input
+user_label: SIM4_INT
+configuration: null
+  SIM5_INT:
+name: PA03
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PA03
+mode: Digital input
+user_label: SIM5_INT
+configuration: null
+  SIM6_INT:
+name: PB04
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB04
+mode: Digital input
+user_label: SIM6_INT
+configuration: null
+  SIM7_INT:
+name: PB05
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB05
+mode: Digital input
+user_label: SIM7_INT
+configuration: null
+  SCL3:
+name: PB06
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB06
+mode: Digital output
+user_label: SCL3
+configuration: null
+  SDA3:
+name: PB07
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB07
+mode: Digital output
+user_label: SDA3
+configuration: null
   SIM4_IO:
 name: PB08
 definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB08
@@ -1395,12 +1455,30 @@
   pad_function: M
   pad_initial_level: Low
   pad_pull_config: 'Off'
+  SCL1:
+name: PB14
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB14
+mode: Digital output
+user_label: SCL1
+configuration: null
+  SDA1:
+name: PB15
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB15
+mode: Digital output
+user_label: SDA1
+configuration: null
   SWITCH:
 name: PC14
 definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC14
 mode: Digital input
 user_label: SWITCH
 configuration: null
+  MUX_SSTAT:
+name: PC15
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC15
+mode: Digital input
+user_label: MUX_SSTAT
+configuration: null
   SIM1_IO:
 name: PA16
 definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PA16
@@ -1467,6 +1545,18 @@
 mode: Digital output
 user_label: USER_LED
 configuration: null
+  SCL4:
+name: PC27
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC27
+mode: Digital output
+user_label: SCL4
+configuration: null
+  SDA4:
+name: PC28
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PC28
+mode: Digital output
+user_label: SDA4
+configuration: null
   UART_TX:
 name: PB30
 definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB30
@@ -1479,4 +1569,16 @@
 mode: Peripheral IO
 user_label: UART_RX
 configuration: null
+  SCL2:
+name: PB02
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB02
+mode: Digital output
+user_label: SCL2
+configuration: null
+  SDA2:
+name: PB03
+definition: Atmel:SAME54_Drivers:0.0.1::SAME54N19A-AF::pad::PB03
+mode: Digital output
+user_label: SDA2
+configuration: null
 toolchain_options: []
diff --git a/sysmoOCTSIM/atmel_start_pins.h b/sysmoOCTSIM/atmel_start_pins.h
index ad5f27b..60b70bb 100644
--- a/sysmoOCTSIM/atmel_start_pins.h
+++ b/sysmoOCTSIM/atmel_start_pins.h
@@ -27,6 +27,8 @@
 #define GPIO_PIN_FUNCTION_M 12
 #define GPIO_PIN_FUNCTION_N 13

+#define SIM4_INT GPIO(GPIO_PORTA, 2)
+#define SIM5_INT GPIO(GPIO_PORTA, 3)
 #define SIM0_IO GPIO(GPIO_PORTA, 4)
 #defi