zenxfi2: add fmradio i2c glue

Change-Id: Ifa8781b3c416002355b17591a4fdbed8a20979a8
This commit is contained in:
Amaury Pouly 2012-05-19 18:28:07 +02:00
parent c2e9c93563
commit 58f8bddf88
3 changed files with 43 additions and 2 deletions

View file

@ -1132,6 +1132,7 @@ target/arm/tms320dm320/creative-zvm/usb-creativezvm.c
#endif /* CREATIVE_ZVx */ #endif /* CREATIVE_ZVx */
#ifdef CREATIVE_ZENXFI2 #ifdef CREATIVE_ZENXFI2
target/arm/imx233/creative-zenxfi2/fmradio-i2c-zenxfi2.c
target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c target/arm/imx233/creative-zenxfi2/backlight-zenxfi2.c
target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c target/arm/imx233/creative-zenxfi2/lcd-zenxfi2.c
target/arm/imx233/creative-zenxfi2/button-zenxfi2.c target/arm/imx233/creative-zenxfi2/button-zenxfi2.c

View file

@ -0,0 +1,40 @@
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2012 by Amaury Pouly
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#include "config.h"
#include "system.h"
#include "fmradio_i2c.h"
#include "pinctrl-imx233.h"
#include "i2c.h"
void fmradio_i2c_init(void)
{
}
int fmradio_i2c_write(unsigned char address, const unsigned char* buf, int count)
{
return i2c_write(address, buf, count);
}
int fmradio_i2c_read(unsigned char address, unsigned char* buf, int count)
{
return i2c_read(address, buf, count);
}

View file

@ -110,8 +110,8 @@ void system_init(void)
imx233_pwm_init(); imx233_pwm_init();
imx233_lradc_init(); imx233_lradc_init();
imx233_i2c_init(); imx233_i2c_init();
#if !defined(BOOTLOADER) && \ #if !defined(BOOTLOADER) &&(defined(SANSA_FUZEPLUS) || \
(defined(SANSA_FUZEPLUS) || defined(CREATIVE_ZENXFI3)) defined(CREATIVE_ZENXFI3) || defined(CREATIVE_ZENXFI2))
fmradio_i2c_init(); fmradio_i2c_init();
#endif #endif
} }