Commit 212101c3 authored by Willi Theiss's avatar Willi Theiss Committed by ROOL

Added GPIO device support

Detail:
  Boot.s: added comment for result of BMU_Init; moved DBell_InitDevices 2 lines up; activated GPIO support
  GPIO.s: added GPIODevice support
  hdr/GPIO: added GPIO_PORT_MAX definition
  hdr/StaticWS: added GPIODevice workspace
  New file hdr/GPIOPadConf describes GPIO pin functions

Version 0.12. Tagged as 'HAL_OMAP5-0_12'
parent 2cf4cd77
/* (0.11)
*
/* (0.12)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.11
#define Module_MajorVersion_CMHG 0.12
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 07 Jul 2018
#define Module_Date_CMHG 20 Jul 2019
#define Module_MajorVersion "0.11"
#define Module_Version 11
#define Module_MajorVersion "0.12"
#define Module_Version 12
#define Module_MinorVersion ""
#define Module_Date "07 Jul 2018"
#define Module_Date "20 Jul 2019"
#define Module_ApplicationDate "07-Jul-18"
#define Module_ApplicationDate "20-Jul-19"
#define Module_ComponentName "OMAP5"
#define Module_ComponentPath "mixed/RiscOS/Sources/HAL/OMAP5"
#define Module_ComponentName "HAL_OMAP5"
#define Module_FullVersion "0.11"
#define Module_HelpVersion "0.11 (07 Jul 2018)"
#define Module_LibraryVersionInfo "0:11"
#define Module_FullVersion "0.12"
#define Module_HelpVersion "0.12 (20 Jul 2019)"
#define Module_LibraryVersionInfo "0:12"
......@@ -48,7 +48,8 @@ GPIO_CLEARDATAOUT * &190
GPIO_SETDATAOUT * &194
GPIO_PIN_MAX * (8 * 32)
GPIO_PORT_MAX * 8
GPIO_PIN_MAX * (32 * GPIO_PORT_MAX)
; Flags for GPIOx_SetAndEnableIRQ
GPIO_LEVELDETECT0_FLAG * 1
......
This diff is collapsed.
......@@ -25,6 +25,7 @@
GET hdr.SATA
GET Hdr:SDHCIDevice
GET Hdr:RTCDevice
GET Hdr:GPIODevice
GET Hdr:BMUDevice
GET Hdr:DBellDevice
......@@ -124,6 +125,7 @@ VideoBoardConfig # VideoBoardConfig_Size
AudioWS # Audio_WorkspaceSize
CPUClkWS # SR54x_WorkspaceSize
GPIOWS # 8 * (HALDevice_GPIO_Size_1_0 + (2*4))
NVRAMWS # HALDeviceSize
RTCWS # RTCSize
......
......@@ -165,9 +165,7 @@ HALdescriptor DATA
IMPORT GPMC_Init
IMPORT GPIO_Init
IMPORT GPIOx_SetAsOutput
[ {FALSE}
IMPORT GPIO_InitDevices
]
IMPORT SDIO_InitDevices
IMPORT NVMemory_Init
IMPORT NVMemory_InitDevice
......@@ -726,9 +724,10 @@ HAL_InitDevices
BL SDMA_Init
BL VideoDevice_Init
BL Audio_Init
BL DBell_InitDevices
BL PowerCtrl_Init
BL BMU_Init
BL DBell_InitDevices
; Attention: following code relies on return value from BMU_Init
CMP a1, #0 ; battery present ?
BEQ %FT15 ; no battery ==> skip device init
ADRL a1, BMUWS1
......@@ -743,12 +742,10 @@ Board_InitDevices_None
Board_InitDevices_EVM
MOV a1, #BoardType_OMAP5_UEVM
MOV a2, #BoardRevision_UEVM_A
[ {FALSE}
Push "a1-a2"
BL GPIO_InitDevices
; SD needs the same parameters to configure the device correctly
Pull "a1-a2"
]
BL SDIO_InitDevices
DebugTime a1, "Done @ "
EXIT
......@@ -757,12 +754,10 @@ Board_InitDevices_EVM
Board_InitDevices_IGEPv5
MOV a1, #BoardType_OMAP5_IGEPv5
MOV a2, #BoardRevision_IGEPv5_A
[ {FALSE}
Push "a1-a2"
BL GPIO_InitDevices
; SD needs the same parameters to configure the device correctly
Pull "a1-a2"
]
BL SDIO_InitDevices
DebugTime a1, "Done @ "
EXIT
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment