Added stub functions for performing LCD brightness level setting.
frsh_SOURCES = frsh_contract.c frsh_vres.c frsh_synchobj.c frsh_distributed.c frsh_core.c \
frsh_spare_capacity.c frsh_error.c frsh_thread.c frsh_sharedobj.c frsh_power.c frsh_feedback.c
include_HEADERS = frsh_opaque_types.h frsh_forb.h
-frsh_LIBS = fna fcb_client forb contract synchobj sharedobj acpi_cpu fra ulut fosa $(allocator-libs-y)
+frsh_LIBS = fna fcb_client forb contract synchobj sharedobj acpi_cpu acpi_lcd fra ulut fosa $(allocator-libs-y)
config_include_HEADERS = frsh_resources.h
frsh_resources_DEFINES = CONFIG_RESOURCE_DUMMY \
--- /dev/null
+# Generic directory or leaf node makefile for OCERA make framework
+
+ifndef MAKERULES_DIR
+MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) )
+endif
+
+ifeq ($(MAKERULES_DIR),)
+all : default
+.DEFAULT::
+ @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n"
+else
+include $(MAKERULES_DIR)/Makefile.rules
+endif
+
--- /dev/null
+shared_LIBRARIES = acpi_lcd
+
+acpi_lcd_SOURCES = fra_acpi_lcd.c
+acpi_lcd_LIBS += fosa rt m acpi
+
+include_HEADERS = fra_acpi_lcd.h
+
--- /dev/null
+/**
+ * @file fres_acpi_cpu.c
+ * @author Dario Faggioli <faggioli@gandalf.sssup.it>
+ * Michael Trimarchi <trimarchimichael@yahoo.it>
+ *
+ * @brief Implementation of LCD related ACPI functions.
+ *
+ */
+
+#include "fra_acpi_lcd.h"
+
+int fra_LCD_brightness_init(int lcd)
+{
+ return 0;
+}
+
+int fra_LCD_get_brightness(int lcd, int level, unsigned long *bright)
+{
+ return 0;
+
+ /*if (!frequency_initialized)
+ return EINVAL;
+
+ if (level >= 3)
+ return EINVAL;
+
+ *freq = freqs[level];
+
+ return 0;*/
+}
+
+int fra_LCD_set_brightness(int lcd, int level)
+{
+ return 0;
+
+ /*if (!frequency_initialized)
+ return EINVAL;
+
+ if (level >= 3)
+ return EINVAL;
+
+ return cpufreq_set_frequency(cpu, freqs[level]);*/
+}
+
+int fra_LCD_get_level(int lcd, int *level)
+{
+ return 0;
+
+ /*unsigned long freq;
+ int i;
+
+ if (!frequency_initialized)
+ return EINVAL;
+
+ freq = cpufreq_get(cpu);
+ for (i = 0; i < 3; i++)
+ if (freqs[i] == freq) {
+ *level = i;
+ return 0;
+ }
+
+ return EINVAL;*/
+}
+
--- /dev/null
+#ifndef ACPI_CPU
+#define ACPI_CPU
+
+#include <string.h>
+#include <math.h>
+#include <libacpi.h>
+
+#include <fosa_clocks_and_timers.h>
+#include <fosa.h>
+
+int fra_LCD_brightness_init(int lcd);
+
+int fra_LCD_get_brightness(int lcd, int level, unsigned long *bight);
+
+int fra_LCD_set_brightness(int lcd, int level);
+
+int fra_LCD_get_level(int lcd, int *level);
+
+#endif