mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
Revert "separation libarmbox, libmipsbox, dissolve sym link"
This reverts commit 1e85999833ac7da872648e3b6c9fa2ece1ce27db. Conflicts: libmipsbox/hdmi_cec.cpp Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1,54 +0,0 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "init.h"
|
||||
#include "pwrmngr.h"
|
||||
#include <proc_tools.h>
|
||||
|
||||
#include "hal_debug.h"
|
||||
#define hal_debug(args...) _hal_debug(HAL_DEBUG_INIT, NULL, args)
|
||||
#define hal_info(args...) _hal_info(HAL_DEBUG_INIT, NULL, args)
|
||||
|
||||
static bool initialized = false;
|
||||
|
||||
void hal_api_init()
|
||||
{
|
||||
if (!initialized)
|
||||
hal_debug_init();
|
||||
hal_info("%s begin, initialized=%d, debug=0x%02x\n", __FUNCTION__, (int)initialized, debuglevel);
|
||||
if (!initialized)
|
||||
{
|
||||
cCpuFreqManager f;
|
||||
f.SetCpuFreq(0); /* CPUFREQ == 0 is the trigger for leaving standby */
|
||||
char buffer[64];
|
||||
sprintf(buffer, "%x", 0);
|
||||
proc_put("/proc/stb/fb/dst_top", buffer, strlen(buffer));
|
||||
proc_put("/proc/stb/fb/dst_left", buffer, strlen(buffer));
|
||||
sprintf(buffer, "%x", 576);
|
||||
proc_put("/proc/stb/fb/dst_height", buffer, strlen(buffer));
|
||||
sprintf(buffer, "%x", 720);
|
||||
proc_put("/proc/stb/fb/dst_width", buffer, strlen(buffer));
|
||||
sprintf(buffer, "%x", 1);
|
||||
proc_put("/proc/stb/fb/dst_apply", buffer, strlen(buffer));
|
||||
#if BOXMODEL_VUSOLO4K || BOXMODEL_VUDUO4K || BOXMODEL_VUDUO4KSE || BOXMODEL_VUULTIMO4K || BOXMODEL_VUUNO4KSE || BOXMODEL_VUUNO4K
|
||||
sprintf(buffer, "%s", "enable");
|
||||
proc_put("/proc/stb/frontend/fbc/fcc", buffer, strlen(buffer));
|
||||
#endif
|
||||
}
|
||||
initialized = true;
|
||||
hal_info("%s end\n", __FUNCTION__);
|
||||
}
|
||||
|
||||
void hal_api_exit()
|
||||
{
|
||||
hal_info("%s, initialized = %d\n", __FUNCTION__, (int)initialized);
|
||||
initialized = false;
|
||||
}
|
1
libmipsbox/init.cpp
Symbolic link
1
libmipsbox/init.cpp
Symbolic link
@@ -0,0 +1 @@
|
||||
../libarmbox/init.cpp
|
Reference in New Issue
Block a user