Skip to content

Commit

Permalink
add hd530c model
Browse files Browse the repository at this point in the history
  • Loading branch information
HD-Digital committed Sep 2, 2016
1 parent ea4df54 commit e468849
Show file tree
Hide file tree
Showing 6 changed files with 3,281 additions and 1 deletion.
15 changes: 15 additions & 0 deletions conf/machine/hd530c.conf
@@ -0,0 +1,15 @@
#@TYPE: Machine
#@NAME: hd530c
#@DESCRIPTION: Machine configuration for the hd530c

MKUBIFS_ARGS = "-m 2048 -e 126976 -c 8192"
UBINIZE_ARGS = "-m 2048 -p 128KiB"

MACHINE_FEATURES += "textlcd dvb-c"

CHIPSET = "bcm7584"
RCTYPE = "16"

require conf/machine/include/hd-mipsel.inc

MACHINE_EXTRA_RDEPENDS += "enigma2-plugin-extensions-vfdcontrol"
9 changes: 9 additions & 0 deletions recipes-bsp/drivers/hd-dvb-modules-hd530c.bb
@@ -0,0 +1,9 @@
KV = "4.0.1"
SRCDATE = "20160902"

require hd-dvb-modules.inc

SRC_URI[md5sum] = "64cbd41c08cca32e42bddc3ead7f3434"
SRC_URI[sha256sum] = "2a90774fc3419941f3d70295dee87de454ceaf637d7ebbabe16b8a454f239dbc"

COMPATIBLE_MACHINE = "hd530c"
35 changes: 35 additions & 0 deletions recipes-bsp/enigma2/enigma2-plugin-extensions-vfdcontrol_hd530c.bb
@@ -0,0 +1,35 @@
DESCRIPTION = "VFD Control"
LICENSE = "GPLv2"

require conf/license/openpli-gplv2.inc

SRC_URI = "file://__init__.py \
file://plugin.py \
file://Makefile.am \
file://configure.ac \
"

S = "${WORKDIR}"
DEST = "${D}/usr/lib/enigma2/python/Plugins/Extensions/VfdControl"

PR = "r1"

FILES_${PN} = "/usr/lib/enigma2/python/Plugins/Extensions/VfdControl"

inherit autotools pkgconfig

do_compile () {
oe_runmake
}

do_post_install() {
install -d ${DEST}
find ${DEST} -name '*.py' -exec rm {} \;
}

addtask post_install after do_install before do_package

# Fixup for missing "foreign" and "subdir-objects" in automake
do_configure_prepend() {
sed -i 's/AM_INIT_AUTOMAKE.*$/AM_INIT_AUTOMAKE([foreign subdir-objects])/' ${S}/configure.ac ${S}/configure.ac
}
@@ -0,0 +1,34 @@
From 86937dc071f3634ba1f9a655684f1320e6514aa1 Mon Sep 17 00:00:00 2001
From: dev@builder
Date: Thu, 16 Jun 2016 16:31:34 +0200
Subject: [PATCH] fix: cpu-probe: disable RIXIEX check on BCM7584

on BCM7584 (and maybe others?) setting the PG_IEC bit causes the second
CPU to stall during init
---
arch/mips/kernel/cpu-probe.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 48dfb9d..f1a64e0 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -548,6 +548,7 @@ static void decode_configs(struct cpuinfo_mips *c)

mips_probe_watch_registers(c);

+#ifndef CONFIG_BCM7584
if (cpu_has_rixi) {
/* Enable the RIXI exceptions */
set_c0_pagegrain(PG_IEC);
@@ -556,6 +557,7 @@ static void decode_configs(struct cpuinfo_mips *c)
if (read_c0_pagegrain() & PG_IEC)
c->options |= MIPS_CPU_RIXIEX;
}
+#endif

#ifndef CONFIG_MIPS_CPS
if (cpu_has_mips_r2_r6) {
--
1.9.1

0 comments on commit e468849

Please sign in to comment.