#
# Top-level generic files
#
-tags
-TAGS
-vmlinux
-kernel.img
-System.map
-Module.markers
-Module.symvers
+/tags
+/TAGS
+/linux
+/vmlinux
+/vmlinuz
+/System.map
+/Module.markers
+/Module.symvers
++/kernel.img
+
+#
+# git files that we don't want to ignore even it they are dot-files
+#
!.gitignore
!.mailmap
# Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
export KBUILD_BUILDHOST := $(SUBARCH)
#ARCH ?= $(SUBARCH)
-#CROSS_COMPILE ?=
+#CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
ARCH ?= arm
- ifneq ($(wildcard ../toolchain/arm-eabi-4.4.0),)
- CROSS_COMPILE ?= ../toolchain/arm-eabi-4.4.0/bin/arm-eabi-
- endif
- ifneq ($(wildcard ../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0),)
- CROSS_COMPILE ?= ../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
- endif
+ #CROSS_COMPILE :=/opt/android0320/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin/arm-eabi-
+ CROSS_COMPILE ?=../toolchain/arm-eabi-4.4.0/bin/arm-eabi-
# Architecture as present in compile.h
UTS_MACHINE := $(ARCH)
#define MT_MEMORY 9
#define MT_ROM 10
#define MT_MEMORY_NONCACHED 11
-#define MT_DEVICE_STRONGLY_ORDERED 12
+#define MT_MEMORY_DTCM 12
+#define MT_MEMORY_ITCM 13
++#define MT_DEVICE_STRONGLY_ORDERED 14
#ifdef CONFIG_MMU
extern void iotable_init(struct map_desc *, int);
#include <linux/mm.h>
#include <linux/poll.h>
#include <linux/platform_device.h>
- #include <linux/workqueue.h>
+#include <linux/slab.h>
+ #include <linux/timer.h>
#include <asm/uaccess.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/resume-trace.h>
-#include <linux/rwsem.h>
#include <linux/interrupt.h>
+#include <linux/sched.h>
+#include <linux/async.h>
#include <linux/timer.h>
+ #ifdef CONFIG_ARCH_RK29
+ #include <linux/console.h>
+ #endif
#include "../base.h"
#include "power.h"
INIT_LIST_HEAD(&list);
mutex_lock(&dpm_list_mtx);
- while (!list_empty(&dpm_list)) {
- struct device *dev = to_device(dpm_list.next);
+ pm_transition = state;
+ list_for_each_entry(dev, &dpm_list, power.entry) {
+ if (dev->power.status < DPM_OFF)
+ continue;
+
+ INIT_COMPLETION(dev->power.completion);
+ if (is_async(dev)) {
+ get_device(dev);
+ async_schedule(async_resume, dev);
+ }
+ }
+
+ while (!list_empty(&dpm_list)) {
+ dev = to_device(dpm_list.next);
get_device(dev);
- if (dev->power.status >= DPM_OFF) {
+ if (dev->power.status >= DPM_OFF && !is_async(dev)) {
int error;
- dev->power.status = DPM_RESUMING;
mutex_unlock(&dpm_list_mtx);
- error = device_resume(dev, state);
+ #ifdef CONFIG_ARCH_RK29
+ dpm_drv_wdset(dev);
+ #endif
+ error = device_resume(dev, state, false);
+ #ifdef CONFIG_ARCH_RK29
+ dpm_drv_wdclr(dev);
+ #endif
mutex_lock(&dpm_list_mtx);
if (error)
in its table of I2C devices.
If unsure, say N(but it's safe to say "Y").
+
+config TOUCHSCREEN_TPS6507X
+ tristate "TPS6507x based touchscreens"
+ depends on I2C
+ help
+ Say Y here if you have a TPS6507x based touchscreen
+ controller.
+
+ If unsure, say N.
+
+ To compile this driver as a module, choose M here: the
+ module will be called tps6507x_ts.
+
+config TOUCHSCREEN_STMPE
+ tristate "STMicroelectronics STMPE touchscreens"
+ depends on MFD_STMPE
+ help
+ Say Y here if you want support for STMicroelectronics
+ STMPE touchscreen controllers.
+
+ To compile this driver as a module, choose M here: the
+ module will be called stmpe-ts.
+
+config TOUCHSCREEN_QUANTUM_OBP
+ tristate "Quantum OBP based touchscreens"
+ depends on I2C
+ help
+ Say Y here if you have a Quantum touchscreen that uses
+ the Object Based Protocol based firmware.
+
+ If unsure, say N.
+
+ config ATMEL_MXT1386
+ tristate "ATMEL_MXT1386 touchscreen panel support"
+ depends on I2C
+ help
+ Say Y here to enable support for I2C connected ATMEL_MXT1386 touch panels.
+
+ To compile this driver as a module, choose M here: the
+ module will be called atmel_mxt1386_ts.
+
+ config ATMEL_MXT1386_MAX_X
+ int "ATMEL_MXT1386_MAX_X"
+ depends on ATMEL_MXT1386
+ default 4095
+ help
+ RK29 ATMEL_MXT1386 touch max X size
+
+ config ATMEL_MXT1386_MAX_Y
+ int "ATMEL_MXT1386_MAX_Y"
+ depends on ATMEL_MXT1386
+ default 4095
+ help
+ RK29 ATMEL_MXT1386 touch max Y size
+
+ config ATMEL_MXT1386_DEBUG
+ bool "ATMEL_MXT1386 debug"
+ depends on ATMEL_MXT1386
+ default n
+ help
+ RK29 ATMEL_MXT1386 touch debug
endif
tristate "GT2005 support"
depends on SOC_CAMERA && I2C
help
- This is a GT2005 camera driver
+ This is a GT2005 camera driver
+
+ config SOC_CAMERA_GC0307
+ tristate "GC0307 support"
+ depends on SOC_CAMERA && I2C
+ help
+ This is a GC0307 camera driver
++
config SOC_CAMERA_GC0308
tristate "GC0308 support"
depends on SOC_CAMERA && I2C
#define SENSOR_NAME RK29_CAM_SENSOR_GC2015
#define SENSOR_V4L2_IDENT V4L2_IDENT_GC2015
#define SENSOR_ID 0x2005
- #define SENSOR_MIN_WIDTH 176
- #define SENSOR_MIN_HEIGHT 144
+ #define SENSOR_MIN_WIDTH 640
+ #define SENSOR_MIN_HEIGHT 480
#define SENSOR_MAX_WIDTH 1600
#define SENSOR_MAX_HEIGHT 1200
- #define SENSOR_INIT_WIDTH 1024 /* Sensor pixel size for sensor_init_data array */
- #define SENSOR_INIT_HEIGHT 768
+ #define SENSOR_INIT_WIDTH 800//1024 /* Sensor pixel size for sensor_init_data array */
+ #define SENSOR_INIT_HEIGHT 600//768
#define SENSOR_INIT_WINSEQADR sensor_svga
-#define SENSOR_INIT_PIXFMT V4L2_PIX_FMT_UYVY
+#define SENSOR_INIT_PIXFMT V4L2_MBUS_FMT_UYVY8_2X8
#define CONFIG_SENSOR_WhiteBalance 1
#define CONFIG_SENSOR_Brightness 0
struct soc_camera_device *icd = client->dev.platform_data;
struct reginfo *winseqe_set_addr=NULL;
int ret=0, set_w,set_h;
+
+ u32 gc2015_shutter;
- SENSOR_TR("sensor_s_fmt\n");
- if (sensor->info_priv.pixfmt != pix->pixelformat) {
- switch (pix->pixelformat)
+ fmt = sensor_find_datafmt(mf->code, sensor_colour_fmts,
+ ARRAY_SIZE(sensor_colour_fmts));
+ if (!fmt) {
+ ret = -EINVAL;
+ goto sensor_s_fmt_end;
+ }
+
+ if (sensor->info_priv.fmt.code != mf->code) {
+ switch (mf->code)
{
- case V4L2_PIX_FMT_YUYV:
+ case V4L2_MBUS_FMT_YUYV8_2X8:
{
winseqe_set_addr = sensor_ClrFmt_YUYV;
break;
size_t size = dev->rx_urb_size;
if ((skb = alloc_skb (size + NET_IP_ALIGN, flags)) == NULL) {
- if (netif_msg_rx_err (dev))
- devdbg (dev, "no rx skb");
+ netif_dbg(dev, rx_err, dev->net, "no rx skb\n");
usbnet_defer_kevent (dev, EVENT_RX_MEMORY);
usb_free_urb (urb);
- return;
+ return -ENOMEM;
}
- skb_reserve (skb, NET_IP_ALIGN);
+ //skb_reserve (skb, NET_IP_ALIGN); //ylz++
entry = (struct skb_data *) skb->cb;
entry->urb = urb;
amount = min(amount, (unsigned int) PAGE_CACHE_SIZE -
partial_page);
+ /* kever@rk
+ * max size for dwc_otg ctonroller is 64(max pkt sizt) * 1023(pkt)
+ * because of the DOEPTSIZ.PKTCNT has only 10 bits
+ */
+ if((fsg->cdev->gadget->speed != USB_SPEED_HIGH)&&(amount >0x8000))
+ amount = 0x8000;
+
/* Wait for the next buffer to become available */
- bh = fsg->next_buffhd_to_fill;
+ bh = common->next_buffhd_to_fill;
while (bh->state != BUF_STATE_EMPTY) {
- rc = sleep_thread(fsg);
+ rc = sleep_thread(common);
if (rc)
return rc;
}
---help---
this function can use to rotate video .
+ config CLOSE_WIN1_DYNAMIC
+ bool "close win1 dynamically when video"
+ depends on FB_RK29
+ ---help---
+ this function can close win1 when video and it have no data in fb0
+
+config FB_NUC900
+ bool "NUC900 LCD framebuffer support"
+ depends on FB && ARCH_W90X900
+ select FB_CFB_FILLRECT
+ select FB_CFB_COPYAREA
+ select FB_CFB_IMAGEBLIT
+ ---help---
+ Frame buffer driver for the built-in LCD controller in the Nuvoton
+ NUC900 processor
+
+config GPM1040A0_320X240
+ bool "Giantplus Technology GPM1040A0 320x240 Color TFT LCD"
+ depends on FB_NUC900
+
+config FB_NUC900_DEBUG
+ bool "NUC900 lcd debug messages"
+ depends on FB_NUC900
+ help
+ Turn on debugging messages. Note that you can set/unset at run time
+ through sysfs
+
config FB_SM501
tristate "Silicon Motion SM501 framebuffer support"
depends on FB && MFD_SM501
/* module upd64083: just ident 64083 */
V4L2_IDENT_UPD64083 = 64083,
- /* module m52790: just ident 52790 */
- V4L2_IDENT_M52790 = 52790,
-
- V4L2_IDENT_GT2005 = 64100, /* ddl@rock-chips.com : GT2005 support */
+ V4L2_IDENT_GT2005 = 64099, /* ddl@rock-chips.com : GT2005 support */
+ V4L2_IDENT_GC0307 = 64100, /* ddl@rock-chips.com : GC0308 support */
V4L2_IDENT_GC0308 = 64101, /* ddl@rock-chips.com : GC0308 support */
V4L2_IDENT_GC0309 = 64102, /* ddl@rock-chips.com : GC0309 support */
V4L2_IDENT_SIV120B = 64103, /* ddl@rock-chips.com : siv120b support */