blob: 3395add25f81c5317ebb4badf6690498c86343e6 [file] [log] [blame]
Linus Nielsen Feltzing5f655c92006-07-13 07:40:30 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 Ulrich Pegelow
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.
Linus Nielsen Feltzing5f655c92006-07-13 07:40:30 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21#ifndef M5636_TARGET_H
22#define M5636_TARGET_H
23
24#define M5636_BASE 0xf0004000L /* Rockbox: 0xf0004000; OF: 0x20004000 */
25
26/* We are currently lacking a datasheet for the M5636. No mnemonics available.
27 The registers are named according to their respective hexadecimal offsets.
28*/
29
30#define M5636_4064 (*(volatile unsigned short *)(M5636_BASE + 0x64L))
31#define M5636_4068 (*(volatile unsigned short *)(M5636_BASE + 0x68L))
32#define M5636_4078 (*(volatile unsigned short *)(M5636_BASE + 0x78L))
33
34extern void m5636_device_init(void);
35
36/* for debugging purposes only */
37extern void m5636_dump_regs(void);
38
39#endif