summaryrefslogtreecommitdiffstats
path: root/src/include/usr/lpc
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2015-08-26 13:50:30 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2016-03-03 16:17:52 -0500
commitc73c1d03450fb1dfa0ef9c98485999aeaa0257d7 (patch)
tree70056c4a6b064db49d7419d2d5040f6569ea51fc /src/include/usr/lpc
parent8f30c7db00a3ce2940900ec2ba67838bcf432b98 (diff)
downloadtalos-hostboot-c73c1d03450fb1dfa0ef9c98485999aeaa0257d7.tar.gz
talos-hostboot-c73c1d03450fb1dfa0ef9c98485999aeaa0257d7.zip
FFS Support for Bootloader
This commit moves functionality out of pnor_common.C and puts it in a new file pnor_utils.C this file will be shared with bootloader and hostboot code. Quite a few files were pulled apart in order to make includes easier across modules. These are lpc_const.H and pnor_const.H. bl_pnorAccess leverages the new pnor_utils.C file that will help the bootloader parse pnor TOC Change-Id: I740f6f8a707760756a261535e62e2d0a849324f8 RTC:134064 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/696 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr/lpc')
-rw-r--r--src/include/usr/lpc/lpc_const.H48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/include/usr/lpc/lpc_const.H b/src/include/usr/lpc/lpc_const.H
new file mode 100644
index 000000000..a7857e707
--- /dev/null
+++ b/src/include/usr/lpc/lpc_const.H
@@ -0,0 +1,48 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/lpc/lpc_const.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* [+] 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 LPC_CONST_H
+#define LPC_CONST_H
+
+#include <stdint.h>
+#include <builtins.h>
+
+namespace LPC
+{
+ /**
+ * @brief Some general constants
+ *
+ */
+ enum {
+ LPCHC_FW_SPACE = 0xF0000000, /**< LPC Host Controller FW Space */
+ LPCHC_MEM_SPACE = 0xE0000000, /**< LPC Host Controller Mem Space */
+ LPCHC_IO_SPACE = 0xD0010000, /**< LPC Host Controller I/O Space */
+ LPCHC_REG_SPACE = 0xC0012000, /**< LPC Host Ctlr Register Space */
+
+ /** Physical addr of the start of LPC address space*/
+ LPC_PHYS_BASE = 0x6030000000000,
+ };
+}
+
+#endif \ No newline at end of file
OpenPOWER on IntegriCloud