blob: 7aeb53bfbd6af7a853974c139fa32a075065d814 [file] [log] [blame]
/*****************************************************************************
* Copyright 2011 Broadcom Corporation. All rights reserved.
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2, available at
* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
*
* Notwithstanding the above, under no circumstances may you combine this
* software in any way with any other Broadcom software provided under a
* license other than the GPL, without Broadcom's express prior written
* consent.
*****************************************************************************/
/*
* Definitions for BH1715 ambient light sensor chip.
*/
#ifndef _BH1715_H_
#define _BH1715_H_
#define BH1715_DRV_NAME "bh1715"
#define BH1715_I2C_ADDR 0x5C
#define BH1715_PWR_OFF 0x00
#define BH1715_PWR_ON 0x01
#define BH1715_RESET 0x07
#define BH1715_CONT_HRES 0x10
#define BH1715_CONT_LRES 0x13
#define BH1715_ONET_HRES 0x20
#define BH1715_ONET_LRES 0x23
#endif /* _BH1715_H_ */