[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/imote2 pmic.h,
NONE, 1.1
Lama Nachman
lnachman at users.sourceforge.net
Wed Jun 22 11:34:58 PDT 2005
Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1094
Added Files:
pmic.h
Log Message:
PMIC register definitions
--- NEW FILE: pmic.h ---
/* tab:4
*
*
* "Copyright (c) 2000-2002 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*
*/
/* tab:4
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By
* downloading, copying, installing or using the software you agree to
* this license. If you do not agree to this license, do not download,
* install, copy or use the software.
*
* Intel Open Source License
*
* Copyright (c) 2002 Intel Corporation
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the Intel Corporation nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INTEL OR ITS
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*
*/
/*
*
* Authors: Lama Nachman
*
* This file includes the PMIC command defintions. We are using the Dialog
* DA9030 part.
*
*/
#ifndef PMIC_H
#define PMIC_H
// I2C slave addr
#define PMIC_SLAVE_ADDR 0x49
// Register BUCK2 with DVC1
#define PMIC_BUCK2_REG1 0x15
#define PMIC_TRIM_P85_V 0x80
#define PMIC_TRIM_P875_V 0x81
#define PMIC_TRIM_P9_V 0x82
#define PMIC_TRIM_P925_V 0x83
#define PMIC_TRIM_P95_V 0x84
#define PMIC_TRIM_P975_V 0x85
#define PMIC_TRIM_1_V 0x86
#define PMIC_TRIM_1_25_V 0x90
// Register BUCK2 with DVC2
#define PMIC_BUCK2_REG2 0x16
// LDO on/off control
#define PMIC_B_REG_CONTROL_1 0x17
#define PMIC_BRC1_BUCK2_EN 0x1 // on
#define PMIC_BRC1_LDO10_EN 0x2 // off
#define PMIC_BRC1_LDO11_EN 0x4 // off
#define PMIC_BRC1_LDO13_EN 0x8 // off
#define PMIC_BRC1_LDO14_EN 0x10 // off
#define PMIC_BRC1_LDO15_EN 0x20 // on
#define PMIC_BRC1_LDO16_EN 0x40 // on
#define PMIC_BRC1_LDO17_EN 0x80 // off
#define PMIC_B_REG_CONTROL_2 0x18
#define PMIC_BRC2_LDO18_EN 0x1 // on
#define PMIC_BRC2_LDO19_EN 0x2 // on
#define PMIC_BRC2_SIMCP_EN 0x40 // off
#define PMIC_H_REG_CONTROL_1 0x97
#define PMIC_HRC1_BUCK_EN 0x1 // off
#define PMIC_HRC1_LDO1_EN 0x2 // off
#define PMIC_HRC1_LDO2_EN 0x4 // off
#define PMIC_HRC1_LDO3_EN 0x8 // BB
#define PMIC_HRC1_LDO4_EN 0x10 // off
#define PMIC_HRC1_LDO5_EN 0x20 // radio
#define PMIC_HRC1_LDO6_EN 0x40 // off
#define PMIC_HRC1_LDO7_EN 0x80 // off
#define PMIC_H_REG_CONTROL_2 0x98
#define PMIC_HRC2_LDO8_EN 0x1 // off
#define PMIC_HRC2_LDO9_EN 0x2 // off
#define PMIC_HRC2_LDO10_EN 0x4 // sensor board
#define PMIC_HRC2_LDO11_EN 0x8 // sensor board
#define PMIC_HRC2_LDO12_EN 0x10 // BB_IO
#define PMIC_HRC2_LDO14_EN 0x20 // off
#define PMIC_HRC2_SIMCP_EN 0x40 // off
#define PMIC_HRC2_SLEEP 0x80 // off
#endif //PMIC_H
More information about the Tinyos-beta-commits
mailing list