[coreboot-gerrit] Change in coreboot[master]: vendorcode/facebook: Add vendorcode

Philipp Deppenwiese (Code Review) gerrit at coreboot.org
Sun Aug 26 19:59:19 CEST 2018


Philipp Deppenwiese has uploaded this change for review. ( https://review.coreboot.org/28351


Change subject: vendorcode/facebook: Add vendorcode
......................................................................

vendorcode/facebook: Add vendorcode

* Add Open Cellular extensions for TIVA communication
  and reset.

Change-Id: I761ac3d1dcbab9dceb7a4c4f835ca8363680eb03
Signed-off-by: Philipp Deppenwiese <zaolin at das-labor.org>
---
M src/vendorcode/Makefile.inc
A src/vendorcode/facebook/Kconfig
A src/vendorcode/facebook/Makefile.inc
A src/vendorcode/facebook/opencellular/reset.c
4 files changed, 78 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/28351/1

diff --git a/src/vendorcode/Makefile.inc b/src/vendorcode/Makefile.inc
index 522d415..c4dbb67 100644
--- a/src/vendorcode/Makefile.inc
+++ b/src/vendorcode/Makefile.inc
@@ -3,3 +3,4 @@
 subdirs-y += intel
 subdirs-y += siemens
 subdirs-y += cavium
+subdirs-y += facebook
diff --git a/src/vendorcode/facebook/Kconfig b/src/vendorcode/facebook/Kconfig
new file mode 100644
index 0000000..f512145
--- /dev/null
+++ b/src/vendorcode/facebook/Kconfig
@@ -0,0 +1,33 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright 2018-present Facebook, Inc.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; version 2 of the License.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+
+config FACEBOOK_OPENCELLULAR
+	def_bool n
+	select HAVE_HARD_RESET
+	help
+	  Build Facebook OC extensions
+
+if FACEBOOK_OPENCELLULAR
+
+menu "Open Celluar"
+
+config FACEBOOK_OPENCELLULAR_TIVA_RESET
+	bool "Enables TIVA hard reset feature"
+	default n
+	depends on FACEBOOK_OPENCELLULAR
+
+endmenu
+
+endif
diff --git a/src/vendorcode/facebook/Makefile.inc b/src/vendorcode/facebook/Makefile.inc
new file mode 100644
index 0000000..ec01240
--- /dev/null
+++ b/src/vendorcode/facebook/Makefile.inc
@@ -0,0 +1,22 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright 2018-present Facebook, Inc.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; version 2 of the License.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+
+ifeq ($(CONFIG_FACEBOOK_OPENCELLULAR),y)
+
+verstage-$(CONFIG_FACEBOOK_OPENCELLULAR_TIVA_RESET) += opencellular/reset.c
+romstage-$(CONFIG_FACEBOOK_OPENCELLULAR_TIVA_RESET) += opencellular/reset.c
+ramstage-$(CONFIG_FACEBOOK_OPENCELLULAR_TIVA_RESET) += opencellular/reset.c
+
+endif
diff --git a/src/vendorcode/facebook/opencellular/reset.c b/src/vendorcode/facebook/opencellular/reset.c
new file mode 100644
index 0000000..fbba43c
--- /dev/null
+++ b/src/vendorcode/facebook/opencellular/reset.c
@@ -0,0 +1,22 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2018-present Facebook, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * Derived from Cavium's BSD-3 Clause OCTEONTX-SDK-6.2.0.
+ */
+
+#include <reset.h>
+
+void do_hard_reset(void)
+{
+}

-- 
To view, visit https://review.coreboot.org/28351
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I761ac3d1dcbab9dceb7a4c4f835ca8363680eb03
Gerrit-Change-Number: 28351
Gerrit-PatchSet: 1
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180826/58f8130b/attachment-0001.html>


More information about the coreboot-gerrit mailing list