Skip to content

Commit

Permalink
mips dm820 added
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed May 14, 2024
1 parent 443b390 commit 168e73c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
9 changes: 6 additions & 3 deletions acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ AC_ARG_WITH(boxtype,
BOXTYPE="armbox"
BOXMODEL="$withval"
;;
vuduo|vuduo2|vuuno|vuultimo|dm8000)
vuduo|vuduo2|vuuno|vuultimo|dm820|dm8000)
BOXTYPE="mipsbox"
BOXMODEL="$withval"
;;
Expand All @@ -210,7 +210,7 @@ AC_ARG_WITH(boxmodel,
AS_HELP_STRING([], [valid for duckbox: ufs910, ufs912, ufs913, ufs922, atevio7500, fortis_hdbox, octagon1008, cuberevo, cuberevo_mini, cuberevo_mini2, cuberevo_250hd, cuberevo_2000hd, cuberevo_3000hd, ipbox9900, ipbox99, ipbox55, tf7700])
AS_HELP_STRING([], [valid for spark: spark, spark7162])
AS_HELP_STRING([], [valid for armbox: bre2ze4k, hd51, hd60, hd61, vusolo4k, vuduo4k, vuduo4kse, vuultimo4k, vuzero4k, vuuno4kse, vuuno4k, h7, osmio4k, osmio4kplus, e4hdultra])
AS_HELP_STRING([], [valid for mipsbox: vuduo, vuduo2, vuuno, vuultimo, dm8000]),
AS_HELP_STRING([], [valid for mipsbox: vuduo, vuduo2, vuuno, vuultimo, dm820, dm8000]),
[case "${withval}" in
ufs910|ufs912|ufs913|ufs922|atevio7500|fortis_hdbox|octagon1008|cuberevo|cuberevo_mini|cuberevo_mini2|cuberevo_250hd|cuberevo_2000hd|cuberevo_3000hd|ipbox9900|ipbox99|ipbox55|tf7700)
if test "$BOXTYPE" = "duckbox"; then
Expand All @@ -233,7 +233,7 @@ AS_HELP_STRING([], [valid for mipsbox: vuduo, vuduo2, vuuno, vuultimo, dm8000]),
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
fi
;;
vuduo|vuduo2|vuuno|vuultimo|dm8000)
vuduo|vuduo2|vuuno|vuultimo|dm820|dm8000)
if test "$BOXTYPE" = "mipsbox"; then
BOXMODEL="$withval"
else
Expand Down Expand Up @@ -298,6 +298,7 @@ AM_CONDITIONAL(BOXMODEL_VUDUO, test "$BOXMODEL" = "vuduo")
AM_CONDITIONAL(BOXMODEL_VUDUO2, test "$BOXMODEL" = "vuduo2")
AM_CONDITIONAL(BOXMODEL_VUUNO, test "$BOXMODEL" = "vuuno")
AM_CONDITIONAL(BOXMODEL_VUULTIMO, test "$BOXMODEL" = "vuultimo")
AM_CONDITIONAL(BOXMODEL_DM820, test "$BOXMODEL" = "dm820")
AM_CONDITIONAL(BOXMODEL_DM8000, test "$BOXMODEL" = "dm8000")
AM_CONDITIONAL(BOXMODEL_H7, test "$BOXMODEL" = "h7")
AM_CONDITIONAL(BOXMODEL_OSMIO4K, test "$BOXMODEL" = "osmio4k")
Expand Down Expand Up @@ -394,6 +395,8 @@ elif test "$BOXMODEL" = "vuuno"; then
AC_DEFINE(BOXMODEL_VUUNO, 1, [vuuno])
elif test "$BOXMODEL" = "vuultimo"; then
AC_DEFINE(BOXMODEL_VUULTIMO, 1, [vuultimo])
elif test "$BOXMODEL" = "dm820"; then
AC_DEFINE(BOXMODEL_DM820, 1, [dm820])
elif test "$BOXMODEL" = "dm8000"; then
AC_DEFINE(BOXMODEL_DM8000, 1, [dm8000])
elif test "$BOXMODEL" = "h7"; then
Expand Down
18 changes: 18 additions & 0 deletions libmipsbox/hardware_caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,24 @@ hw_caps_t *get_hwcaps(void)
strcpy(caps.boxvendor, "DM");
strcpy(caps.boxname, "8000HD");
strcpy(caps.boxarch, "BCM7400D2");
#elif BOXMODEL_DM820
initialized = 1;
caps.has_CI = 0;
caps.can_cec = 1;
caps.can_shutdown = 1;
caps.display_xres = 96;
caps.display_yres = 64;
caps.display_type = HW_DISPLAY_GFX;
caps.display_can_deepstandby = 1;
caps.display_can_set_brightness = 1;
caps.display_has_statusline = 1;
caps.display_has_colon = 0;
caps.has_button_timer = 1;
caps.has_HDMI = 2;
caps.has_HDMI_input = 1;
strcpy(caps.boxvendor, "DM");
strcpy(caps.boxname, "820HD");
strcpy(caps.boxarch, "BCM7434");
#else // generic mips box
initialized = 1;
caps.has_CI = 1;
Expand Down

0 comments on commit 168e73c

Please sign in to comment.