aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/board/firefly/firefly-rk3288
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/board/firefly/firefly-rk3288')
-rw-r--r--roms/u-boot/board/firefly/firefly-rk3288/Kconfig15
-rw-r--r--roms/u-boot/board/firefly/firefly-rk3288/MAINTAINERS6
-rw-r--r--roms/u-boot/board/firefly/firefly-rk3288/Makefile7
-rw-r--r--roms/u-boot/board/firefly/firefly-rk3288/firefly-rk3288.c47
4 files changed, 75 insertions, 0 deletions
diff --git a/roms/u-boot/board/firefly/firefly-rk3288/Kconfig b/roms/u-boot/board/firefly/firefly-rk3288/Kconfig
new file mode 100644
index 000000000..1c2bca868
--- /dev/null
+++ b/roms/u-boot/board/firefly/firefly-rk3288/Kconfig
@@ -0,0 +1,15 @@
+if TARGET_FIREFLY_RK3288
+
+config SYS_BOARD
+ default "firefly-rk3288"
+
+config SYS_VENDOR
+ default "firefly"
+
+config SYS_CONFIG_NAME
+ default "firefly-rk3288"
+
+config BOARD_SPECIFIC_OPTIONS # dummy
+ def_bool y
+
+endif
diff --git a/roms/u-boot/board/firefly/firefly-rk3288/MAINTAINERS b/roms/u-boot/board/firefly/firefly-rk3288/MAINTAINERS
new file mode 100644
index 000000000..42db0bd5e
--- /dev/null
+++ b/roms/u-boot/board/firefly/firefly-rk3288/MAINTAINERS
@@ -0,0 +1,6 @@
+FIREFLY
+M: Simon Glass <sjg@chromium.org>
+S: Maintained
+F: board/firefly/firefly-rk3288
+F: include/configs/firefly-rk3288.h
+F: configs/firefly-rk3288_defconfig
diff --git a/roms/u-boot/board/firefly/firefly-rk3288/Makefile b/roms/u-boot/board/firefly/firefly-rk3288/Makefile
new file mode 100644
index 000000000..671684597
--- /dev/null
+++ b/roms/u-boot/board/firefly/firefly-rk3288/Makefile
@@ -0,0 +1,7 @@
+#
+# (C) Copyright 2015 Google, Inc
+#
+# SPDX-License-Identifier: GPL-2.0+
+#
+
+obj-y += firefly-rk3288.o
diff --git a/roms/u-boot/board/firefly/firefly-rk3288/firefly-rk3288.c b/roms/u-boot/board/firefly/firefly-rk3288/firefly-rk3288.c
new file mode 100644
index 000000000..41c49e5da
--- /dev/null
+++ b/roms/u-boot/board/firefly/firefly-rk3288/firefly-rk3288.c
@@ -0,0 +1,47 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * (C) Copyright 2015 Google, Inc
+ */
+
+#include <common.h>
+#include <hang.h>
+#include <led.h>
+#include <log.h>
+#include <asm/global_data.h>
+
+#ifdef CONFIG_SPL_BUILD
+DECLARE_GLOBAL_DATA_PTR;
+static int setup_led(void)
+{
+#ifdef CONFIG_SPL_LED
+ struct udevice *dev;
+ char *led_name;
+ int ret;
+
+ led_name = fdtdec_get_config_string(gd->fdt_blob, "u-boot,boot-led");
+ if (!led_name)
+ return 0;
+ ret = led_get_by_label(led_name, &dev);
+ if (ret) {
+ debug("%s: get=%d\n", __func__, ret);
+ return ret;
+ }
+ ret = led_set_state(dev, LEDST_ON);
+ if (ret)
+ return ret;
+#endif
+
+ return 0;
+}
+
+void spl_board_init(void)
+{
+ int ret;
+
+ ret = setup_led();
+ if (ret) {
+ debug("LED ret=%d\n", ret);
+ hang();
+ }
+}
+#endif