Commit e14282c7 authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Add new GPIO device type & OMAP3 GPIO device ID

Detail:
  hdr/HALDevice - Added GPIO device type in the Comms group, and an ID for a generic OMAP3 GPIO device
  hdr/GPIODevice - Definition of GPIO device structure. Currently only used to store the type and revision of the main board, so the GPIO manager module can tailor its features appropriately.
  Makefile - Export hdr/GPIODevice
Admin:
  Tested on rev A2 BB-xM


Version 5.35, 4.79.2.98.2.42. Tagged as 'Kernel-5_35-4_79_2_98_2_42'
parent daa8607f
......@@ -66,6 +66,7 @@ EXPORTS = ${EXP_HDR}.EnvNumbers \
${EXP_HDR}.HALDevice \
${EXP_HDR}.RTCDevice \
${EXP_HDR}.VideoDevice \
${EXP_HDR}.GPIODevice \
${EXP_HDR}.OSEntries \
${C_EXP_HDR}.RISCOS \
${C_EXP_HDR}.HALEntries \
......@@ -175,6 +176,9 @@ ${EXP_HDR}.OSEntries: hdr.OSEntries
${EXP_HDR}.VideoDevice: hdr.VideoDevice
${CP} hdr.VideoDevice $@ ${CPFLAGS}
${EXP_HDR}.GPIODevice: hdr.GPIODevice
${CP} hdr.GPIODevice $@ ${CPFLAGS}
${C_EXP_HDR}.RISCOS: hdr.RISCOS
${MKDIR} ${C_EXP_HDR}
perl Build:Hdr2H hdr.RISCOS $@
......
......@@ -13,11 +13,11 @@
GBLS Module_ComponentPath
Module_MajorVersion SETS "5.35"
Module_Version SETA 535
Module_MinorVersion SETS "4.79.2.98.2.41"
Module_MinorVersion SETS "4.79.2.98.2.42"
Module_Date SETS "31 Jul 2011"
Module_ApplicationDate SETS "31-Jul-11"
Module_ComponentName SETS "Kernel"
Module_ComponentPath SETS "castle/RiscOS/Sources/Kernel"
Module_FullVersion SETS "5.35 (4.79.2.98.2.41)"
Module_HelpVersion SETS "5.35 (31 Jul 2011) 4.79.2.98.2.41"
Module_FullVersion SETS "5.35 (4.79.2.98.2.42)"
Module_HelpVersion SETS "5.35 (31 Jul 2011) 4.79.2.98.2.42"
END
......@@ -5,12 +5,12 @@
*
*/
#define Module_MajorVersion_CMHG 5.35
#define Module_MinorVersion_CMHG 4.79.2.98.2.41
#define Module_MinorVersion_CMHG 4.79.2.98.2.42
#define Module_Date_CMHG 31 Jul 2011
#define Module_MajorVersion "5.35"
#define Module_Version 535
#define Module_MinorVersion "4.79.2.98.2.41"
#define Module_MinorVersion "4.79.2.98.2.42"
#define Module_Date "31 Jul 2011"
#define Module_ApplicationDate "31-Jul-11"
......@@ -18,6 +18,6 @@
#define Module_ComponentName "Kernel"
#define Module_ComponentPath "castle/RiscOS/Sources/Kernel"
#define Module_FullVersion "5.35 (4.79.2.98.2.41)"
#define Module_HelpVersion "5.35 (31 Jul 2011) 4.79.2.98.2.41"
#define Module_FullVersion "5.35 (4.79.2.98.2.42)"
#define Module_HelpVersion "5.35 (31 Jul 2011) 4.79.2.98.2.42"
#define Module_LibraryVersionInfo "5:35"
; Copyright 2011 Castle Technology Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;
; Public interface of GPIO HAL devices
GET hdr:HALDevice
OldOpt SETA {OPT}
OPT OptNoList+OptNoP1List
[ :LNOT: :DEF: Included_Hdr_GPIODevice
GBLL Included_Hdr_GPIODevice
Included_Hdr_GPIODevice SETL {TRUE}
; Device for GPIO devices
; This device just reports the board type and revision, so that the GPIO manager
; knows how everything is set up and which bits should be off-limits.
^ 0
# HALDeviceSize
HALDevice_GPIOType # 4
HALDevice_GPIORevision # 4
HALDevice_GPIO_Size * :INDEX: @
; Type & revision values specific to HALDeviceID_GPIO_OMAP3:
^ 0
GPIOType_OMAP3_BeagleBoard # 1 ; It's a BeagleBoard or BB-xM
GPIOType_OMAP3_DevKit8000 # 1 ; It's a DevKit 8000
GPIOType_OMAP3_IGEPv2 # 1 ; It's an IGEP v2
; BeagleBoard revision values:
^ 0
; BeagleBoard:
GPIORevision_BeagleBoard_AB # 1 ; Rev A or B
GPIORevision_BeagleBoard_C123 # 1 ; Rev C1, C2 or C3
GPIORevision_BeagleBoard_C4 # 1 ; Rev C4
; BeagleBoard-xM:
GPIORevision_BeagleBoard_xMA # 1 ; Rev A
GPIORevision_BeagleBoard_xMB # 1 ; Rev B
GPIORevision_BeagleBoard_xMC # 1 ; Rev C
; DevKit revision values:
^ 0
GPIORevision_DevKit8000_Unknown # 1
; IGEP revision values:
^ 0
GPIORevision_IGEPv2_BC # 1 ; Rev B or C (B-compatible)
GPIORevision_IGEPv2_C # 1 ; Rev C (not a B-compatible one)
]
OPT OldOpt
END
......@@ -64,6 +64,7 @@ HALDeviceType_Comms * 4 :SHL: 8
^ 1
HALDeviceComms_UART # 1 ; UART
HALDeviceComms_EtherNIC # 1 ; Ethernet NIC
HALDeviceComms_GPIO # 1 ; GPIO interface
HALDeviceBus_Pro * 0 :SHL: 28
......@@ -131,6 +132,9 @@ HALDeviceID_VDU_OMAP3 # 1
HALDeviceID_EtherNIC_SMSC9221 # 1
HALDeviceID_EtherNIC_DM9000 # 1
^ 0
HALDeviceID_GPIO_OMAP3 # 1
]
OPT OldOpt
......
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