summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/creative-zenxfi2
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-19 18:28:07 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-20 01:35:24 +0200
commit58f8bddf88e1968542300a7ea9eb555ed5600585 (patch)
treeffa22474f8ab0f0778124440411da60a96059dee /firmware/target/arm/imx233/creative-zenxfi2
parentc2e9c93563298141058ed89b8c2f14138c3a2b88 (diff)
downloadrockbox-58f8bddf88e1968542300a7ea9eb555ed5600585.tar.gz
rockbox-58f8bddf88e1968542300a7ea9eb555ed5600585.tar.bz2
rockbox-58f8bddf88e1968542300a7ea9eb555ed5600585.zip
zenxfi2: add fmradio i2c glue
Change-Id: Ifa8781b3c416002355b17591a4fdbed8a20979a8
Diffstat (limited to 'firmware/target/arm/imx233/creative-zenxfi2')
-rw-r--r--firmware/target/arm/imx233/creative-zenxfi2/fmradio-i2c-zenxfi2.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/creative-zenxfi2/fmradio-i2c-zenxfi2.c b/firmware/target/arm/imx233/creative-zenxfi2/fmradio-i2c-zenxfi2.c
new file mode 100644
index 0000000000..58ac8e6a08
--- /dev/null
+++ b/firmware/target/arm/imx233/creative-zenxfi2/fmradio-i2c-zenxfi2.c
@@ -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);
+}