Source
x
static LP55XX_DEV_ATTR_RW(engine1_mode, show_engine1_mode, store_engine1_mode);
/*
* LP5521 LED chip driver.
*
* Copyright (C) 2010 Nokia Corporation
* Copyright (C) 2012 Texas Instruments
*
* Contact: Samu Onkalo <samu.p.onkalo@nokia.com>
* Milo(Woogyom) Kim <milo.kim@ti.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
/* Registers */
/* Base register to set LED current */
/* Base register to set the brightness */
/* Bits in ENABLE register */
/* Chip master enable */
/* Logarithmic PWM adjustment */
/* CONFIG register */
/* PWM: 0 = 256Hz, 1 = 558Hz */
/* 1 = Power save mode */
/* Charge pump (CP) off */
/* CP forced to bypass mode */
/* CP forced to 1.5x mode */
/* Automatic mode selection */
/* R out: 0 = CP, 1 = Vbat */
/* Internal clock */
/* Status */
/* default R channel current register value */
/* Reset register value */
/* Program Memory Operations */