[coreboot-gerrit] Patch set updated for coreboot: rockchip: rk3399: pass board specific message to BL31

Martin Roth (martinroth@google.com) gerrit at coreboot.org
Fri Jun 10 00:26:38 CEST 2016


Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15116

-gerrit

commit f3e37b69d41fe7cc56557dd884bd25c1abf60522
Author: Lin Huang <hl at rock-chips.com>
Date:   Tue May 17 15:45:05 2016 +0800

    rockchip: rk3399: pass board specific message to BL31
    
    Sometimes we need to pass board specific messages to BL31,
    so that BL31 can do board specific operation based on
    common code.
    
    BRANCH=None
    BUG=chrome-os-partner:51924
    TEST=Build gru
    
    Change-Id: I096878699c6e6933debdf2fb3423734f538691ae
    Signed-off-by: Martin Roth <martinroth at chromium.org>
    Original-Commit-Id: af83e1b
    Original-Change-Id: Ib7585ce7d3bf01d3ce53b388bf9bd60f3b65f5f1
    Original-Signed-off-by: Lin Huang <hl at rock-chips.com>
    Original-Signed-off-by: Douglas Anderson <dianders at chromium.org>
    Original-Reviewed-on: https://chromium-review.googlesource.com/349700
    Original-Reviewed-by: Vadim Bendebury <vbendeb at chromium.org>
---
 src/soc/rockchip/rk3399/Makefile.inc               |  1 +
 src/soc/rockchip/rk3399/bl31_plat_params.c         | 32 ++++++++++++++++++++++
 .../rockchip/rk3399/include/soc/bl31_plat_params.h | 24 ++++++++++++++++
 3 files changed, 57 insertions(+)

diff --git a/src/soc/rockchip/rk3399/Makefile.inc b/src/soc/rockchip/rk3399/Makefile.inc
index 77958d5..9a4817f 100644
--- a/src/soc/rockchip/rk3399/Makefile.inc
+++ b/src/soc/rockchip/rk3399/Makefile.inc
@@ -68,6 +68,7 @@ ramstage-y += soc.c
 ramstage-y += timer.c
 ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += ../common/vop.c
 
+ramstage-y += bl31_plat_params.c
 BL31_MAKEARGS += PLAT=rk3399
 ################################################################################
 
diff --git a/src/soc/rockchip/rk3399/bl31_plat_params.c b/src/soc/rockchip/rk3399/bl31_plat_params.c
new file mode 100644
index 0000000..583eac8
--- /dev/null
+++ b/src/soc/rockchip/rk3399/bl31_plat_params.c
@@ -0,0 +1,32 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2016 Rockchip 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.
+ *
+ */
+
+#include <arm_tf.h>
+#include <assert.h>
+#include <soc/bl31_plat_params.h>
+
+static struct bl31_plat_param *plat_params;
+
+void register_bl31_param(struct bl31_plat_param *param)
+{
+	param->next = plat_params;
+	plat_params = param;
+}
+
+void *soc_get_bl31_plat_params(bl31_params_t *bl31_params)
+{
+	return plat_params;
+}
diff --git a/src/soc/rockchip/rk3399/include/soc/bl31_plat_params.h b/src/soc/rockchip/rk3399/include/soc/bl31_plat_params.h
new file mode 100644
index 0000000..c73d687
--- /dev/null
+++ b/src/soc/rockchip/rk3399/include/soc/bl31_plat_params.h
@@ -0,0 +1,24 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2016 Rockchip 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.
+ *
+ */
+
+#ifndef __BL31_PLAT_PARAMS_H__
+#define __BL31_PLAT_PARAMS_H__
+
+#include <arm-trusted-firmware/plat/rockchip/common/include/plat_params.h>
+
+void register_bl31_param(struct bl31_plat_param *param);
+
+#endif/* __BL31_PLAT_PARAMS_H__ */



More information about the coreboot-gerrit mailing list