diff options
| author | Manali Kumar <mkkumar@us.ibm.com> | 2015-09-24 18:52:00 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-12-08 10:24:35 -0600 |
| commit | 1fbe5e7bf5042ee9e7353a169d13eec54c270f04 (patch) | |
| tree | 3cb9fc58e569fa0d22f7f16a6d8b32900e9de2da /src/include/usr/sio | |
| parent | dee70f6f25fb4ed099942b1b3b0a340bd643ff06 (diff) | |
| download | talos-hostboot-1fbe5e7bf5042ee9e7353a169d13eec54c270f04.tar.gz talos-hostboot-1fbe5e7bf5042ee9e7353a169d13eec54c270f04.zip | |
superio driver to control accesss to SIO registers
The SuperIO driver makes accesses to the SIO chip from the console and
pnor module thread safe.
Change-Id: Ib07dea2867d14684806c56cd965b26c95810f7f3
RTC:115576
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20928
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Tested-by: Jenkins OP HW
Tested-by: FSP CI Jenkins
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com>
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/sio')
| -rw-r--r-- | src/include/usr/sio/sio.H | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/include/usr/sio/sio.H b/src/include/usr/sio/sio.H new file mode 100644 index 000000000..52f752da7 --- /dev/null +++ b/src/include/usr/sio/sio.H @@ -0,0 +1,51 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/usr/sio/sio.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ +#ifndef __SIO_SIO_H +#define __SIO_SIO_H + +namespace SIO +{ + /** + * SIO constants + */ + enum{ + SIO_DEVICE_SELECT_REG = 0x07, /**< Regsiter to select SIO device */ + SIO_ADDR_REG_2E = 0x2E, /**< SuperIO address register */ + SIO_DATA_REG_2F = 0x2F, /**< SuperIO data register */ + SIO_PASSWORD_REG = 0xA5, /**< SuperIO password register (to be unlocked to access SIO) */ + SUART1 = 0x02, /**< SIO device */ + iLPC2AHB = 0x0D, /**< SIO device */ + KBC = 0x05, /**< SIO device: Keyboard Controller */ + MB = 0x0E, /**< SIO device: Mailbox */ + DONT_CARE = 0x02, /**< SIO device: Don't care for boot flags version */ + ENABLE_DEVICE = 0x01, /**< Enable SIO device by writing 1 to reg 30 of device */ + DISABLE_DEVICE = 0x00, /**< Disable SIO device by writing 0 to reg 30 of device */ + SIO_iLPC2AHB_LENGTH = 0x02, /**< SIO to iLPC2AHB length */ + SIO_ILPC2AHB_TRIGGER = 0xCF, /**< Read/Write 0xCF to reg FE of iLPC2AHB to trigger read/write for SIO/iLPC2AHB */ + SIO_SCRATCH_REG1 = 0x21, /**< Scratch Reg */ + SIO_SCRATCH_REG2 = 0x22, /**< Scratch Reg */ + }; +} +#endif |

