use new define

Origin commit data
------------------
Branch: master
Commit: 475c015b54
Author: TangoCash <eric@loxat.de>
Date: 2020-10-03 (Sat, 03 Oct 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2020-10-03 13:24:12 +02:00
committed by vanhofen
parent 66be0e1ff9
commit 218d980185
3 changed files with 24 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ libcommon_la_SOURCES = \
ca_ci.cpp ca_ci.cpp
else else
if BOXTYPE_ARMBOX if BOXTYPE_ARMBOX
if BOXMODEL_HD60 if BOXMODEL_HISILICON
libcommon_la_SOURCES = \ libcommon_la_SOURCES = \
ca.cpp ca.cpp
else else

View File

@@ -1,7 +1,7 @@
#if HAVE_DUCKBOX_HARDWARE \ #if HAVE_DUCKBOX_HARDWARE \
|| HAVE_MIPS_HARDWARE \ || HAVE_MIPS_HARDWARE \
|| (HAVE_ARM_HARDWARE \ || (HAVE_ARM_HARDWARE \
&& !BOXMODEL_HD60 \ && !BOXMODEL_HISILICON \
&& !BOXMODEL_OSMIO4K \ && !BOXMODEL_OSMIO4K \
&& !BOXMODEL_OSMIO4KPLUS \ && !BOXMODEL_OSMIO4KPLUS \
) )

View File

@@ -183,6 +183,22 @@ hw_caps_t *get_hwcaps(void)
strcpy(caps.boxname, "HD60"); strcpy(caps.boxname, "HD60");
strcpy(caps.boxarch, "HI3798M"); strcpy(caps.boxarch, "HI3798M");
#endif #endif
#if BOXMODEL_HD61
initialized = 1;
caps.has_CI = 0;
caps.can_cec = 1;
caps.can_shutdown = 1;
caps.display_xres = 4;
caps.display_type = HW_DISPLAY_LED_NUM;
caps.display_can_deepstandby = 0;
caps.display_can_set_brightness = 1;
caps.display_has_statusline = 0;
caps.has_button_timer = 1;
caps.has_HDMI = 1;
strcpy(caps.boxvendor, "AX-Technologies");
strcpy(caps.boxname, "HD61");
strcpy(caps.boxarch, "HI3798M");
#endif
#if BOXMODEL_BRE2ZE4K #if BOXMODEL_BRE2ZE4K
initialized = 1; initialized = 1;
caps.has_CI = 1; caps.has_CI = 1;
@@ -246,11 +262,12 @@ hw_caps_t *get_hwcaps(void)
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0; caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 5; caps.display_xres = 128;
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_yres = 64;
caps.display_can_deepstandby = 0; caps.display_type = HW_DISPLAY_GFX;
caps.display_can_set_brightness = 1; caps.display_can_deepstandby = 0; // 0 because we use graphlcd/lcd4linux
caps.display_has_statusline = 1; caps.display_can_set_brightness = 0; // 0 because we use graphlcd/lcd4linux
caps.display_has_statusline = 0; // 0 because we use graphlcd/lcd4linux
caps.display_has_colon = 0; caps.display_has_colon = 0;
caps.has_button_timer = 1; caps.has_button_timer = 1;
caps.has_button_vformat = 1; caps.has_button_vformat = 1;