blob: 746495ab94bca6b2976b282a5760f9e63ab03ca2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
* * Copyright (C) 2012 Spreadtrum Communications Inc.
* *
* * This software is licensed under the terms of the GNU General Public
* * License version 2, as published by the Free Software Foundation, and
* * may be copied, distributed, and modified under those terms.
* *
* * This program is distributed in the hope that it will be useful,
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* * GNU General Public License for more details.
* */
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <soc/sprd/hardware.h>
#include <soc/sprd/board.h>
#include <soc/sprd/adi.h>
#include <linux/leds.h>
#include <linux/mfd/sprd_sm5701_core.h>
int sprd_flash_on(void)
{
sm5701_led_ready(MOVIE_MODE);
sm5701_set_fleden(SM5701_FLEDEN_ON_MOVIE);
return 0;
}
int sprd_flash_high_light(void)
{
sm5701_led_ready(FLASH_MODE);
sm5701_set_fleden(SM5701_FLEDEN_ON_FLASH);
return 0;
}
int sprd_flash_close(void)
{
sm5701_set_fleden(SM5701_FLEDEN_DISABLED);
sm5701_led_ready(LED_DISABLE);
return 0;
}
|