#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/videodev2.h>
+#include <linux/i2c/menelaus.h>
#include <media/v4l2-int-device.h>
#include <asm/mach-types.h>
-#include <asm/arch/menelaus.h>
-#include <asm/arch/gpio.h>
-#include <asm/arch/board.h>
+#include <mach/gpio.h>
+#include <mach/board.h>
#include <../drivers/cbus/retu.h>
#include <../drivers/media/video/tcm825x.h>
+#include "board-n800.h"
+
#if defined (CONFIG_VIDEO_TCM825X) || defined (CONFIG_VIDEO_TCM825X_MODULE)
#define OMAP24XX_CAMERA_JAM_HACK
static int saturated_count;
#endif
-#ifdef CONFIG_MACH_NOKIA_N800
const static struct tcm825x_reg tcm825x_regs_n800[] = {
/* initial settings for 2.5 V */
{0x00, 0x03}, {0x03, 0x29}, {0xaa, 0x2a}, {0xc0, 0x2b},
{0x08, 0x5c}, {0x08, 0x5d}, {0x08, 0x5e}, {0x08, 0x5f},
{TCM825X_VAL_TERM, TCM825X_REG_TERM}
};
-#endif
-#ifdef CONFIG_MACH_NOKIA_N810
const static struct tcm825x_reg tcm825x_regs_n810[] = {
/* initial settings for 2.5 V */
{0x00, 0x03}, {0x03, 0x29}, {0xaa, 0x2a}, {0xc0, 0x2b},
{0x08, 0x5c}, {0x08, 0x5d}, {0x08, 0x5e}, {0x08, 0x5f},
{TCM825X_VAL_TERM, TCM825X_REG_TERM}
};
-#endif
static int tcm825x_is_okay(void)
{
r = omap_request_gpio(N800_CAM_SENSOR_RESET_GPIO);
if (r < 0) {
printk(KERN_WARNING "%s: failed to request gpio\n",
- __FUNCTION__);
+ __func__);
return;
}