From 0d271cef8071d0698246b4b50a610b5ff718af01 Mon Sep 17 00:00:00 2001 From: Ian Pozella Date: Thu, 2 Feb 2017 09:42:04 +0000 Subject: target: add pistachio The Pistachio target is a MIPS interaptiv based SoC developed by Imagination Technologies. It includes blocks for i2c, spi, audio, usb and WiFi. This also adds the base support for the 'Creator Ci40 (marduk)' device which uses the Pistachio SoC to create an IoT hub by including Bluetooth, WiFi and 6lowpan on one board. Additionally 2x Mikrobus ports are available to expand with further RF technologies or add sensors. You can find out more here http://creatordev.io. Note, this commit is just the initial board support hence the following are not expected to work yet: * WiFi * Bluetooth * 6lowpan * Audio * Mikrobus uarts, user leds (clock dependency of 6lowpan chip) The aim of this commit is to essentially have the same level of support that currently exists in the mainline kernel. Signed-off-by: Abhijit Mahajani Signed-off-by: Francois Berder Signed-off-by: Ian Pozella Signed-off-by: Mayank Sirotiya Signed-off-by: Sean Kelly --- .../pistachio/base-files/etc/board.d/02_network | 18 +++++++++++++ target/linux/pistachio/base-files/etc/diag.sh | 31 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100755 target/linux/pistachio/base-files/etc/board.d/02_network create mode 100755 target/linux/pistachio/base-files/etc/diag.sh (limited to 'target/linux/pistachio/base-files/etc') diff --git a/target/linux/pistachio/base-files/etc/board.d/02_network b/target/linux/pistachio/base-files/etc/board.d/02_network new file mode 100755 index 0000000000..e7e0a9a930 --- /dev/null +++ b/target/linux/pistachio/base-files/etc/board.d/02_network @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Copyright (C) 2017 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +. /lib/functions/uci-defaults.sh + + +board_config_update + +ucidef_set_interface_lan 'eth0' 'dhcp' + +board_config_flush + +exit 0 diff --git a/target/linux/pistachio/base-files/etc/diag.sh b/target/linux/pistachio/base-files/etc/diag.sh new file mode 100755 index 0000000000..7b556498d6 --- /dev/null +++ b/target/linux/pistachio/base-files/etc/diag.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Copyright (C) 2017 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +. /lib/functions/leds.sh +. /lib/pistachio.sh + +status_led="marduk:red:heartbeat" + +set_state() { + + case "$1" in + preinit) + status_led_blink_preinit + ;; + failsafe) + status_led_blink_failsafe + ;; + upgrade | \ + preinit_regular) + status_led_blink_preinit_regular + ;; + done) + status_led_on + ;; + esac +} -- cgit v1.2.3