blob: a5a75ed553860cf161d99cfd8dedf5ab1af668ba [file] [log] [blame]
Michael Sevakis25413022008-03-31 04:53:03 +00001/***************************************************************************
2* __________ __ ___.
3* Open \______ \ ____ ____ | | _\_ |__ _______ ___
4* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7* \/ \/ \/ \/ \/
8* $Id$
9*
10* Copyright (C) 2007 by Greg White
11*
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012* This program is free software; you can redistribute it and/or
13* modify it under the terms of the GNU General Public License
14* as published by the Free Software Foundation; either version 2
15* of the License, or (at your option) any later version.
Michael Sevakis25413022008-03-31 04:53:03 +000016*
17* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18* KIND, either express or implied.
19*
20****************************************************************************/
Marcoen Hirschbergbce255d2006-11-05 07:54:08 +000021#include "config.h"
22#include "cpu.h"
23#include <stdbool.h>
24#include "kernel.h"
25#include "system.h"
Marcoen Hirschbergbce255d2006-11-05 07:54:08 +000026#include "logf.h"
27#include "debug.h"
28#include "string.h"
29
30#define SC606_REG_A 0
31#define SC606_REG_B 1
32#define SC606_REG_C 2
33#define SC606_REG_CONF 3
34
Steve Gotthardtc07814f2007-01-07 06:38:57 +000035#define SC606_LED_A1 (1 << 0)
36#define SC606_LED_A2 (1 << 1)
37#define SC606_LED_B1 (1 << 2)
38#define SC606_LED_B2 (1 << 3)
39#define SC606_LED_C1 (1 << 4)
40#define SC606_LED_C2 (1 << 5)
Marcoen Hirschbergbce255d2006-11-05 07:54:08 +000041
Steve Gotthardtc07814f2007-01-07 06:38:57 +000042#define SC606_LOW_FREQ (1 << 6)
Marcoen Hirschbergbce255d2006-11-05 07:54:08 +000043
44int sc606_write(unsigned char reg, unsigned char data);
45
46int sc606_read(unsigned char reg, unsigned char* data);
47
48void sc606_init(void);