PP502x USB: It seems r29087 introduced additional parasitic current consumption after...
[kugel-rb.git] / firmware / export / pp6100.h
blob33f00b305c2ba69dfd48d899a4109875a2dd8467
1 #ifndef __PP6100_H__
2 #define __PP6100_H__
3 /***************************************************************************
4 * __________ __ ___.
5 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
6 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
7 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
8 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
9 * \/ \/ \/ \/ \/
10 * $Id$
12 * Copyright (C) 2009 by Robert Keevil
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
24 /* We believe this is quite similar to the 5020 and for now we just use that
25 completely and redefine any minor differences */
26 #include "pp5020.h"
28 #undef DRAM_START
29 #define DRAM_START 0x10f00000
31 #define GPIOM_ENABLE (*(volatile unsigned long *)(0x6000d180))
32 #define GPIOM_OUTPUT_EN (*(volatile unsigned long *)(0x6000d190))
33 #define GPIOM_OUTPUT_VAL (*(volatile unsigned long *)(0x6000d1a0))
34 #define GPIOM_INPUT_VAL (*(volatile unsigned long *)(0x6000d1b0))
35 #define GPIOM_INT_STAT (*(volatile unsigned long *)(0x6000d1c0))
36 #define GPIOM_INT_EN (*(volatile unsigned long *)(0x6000d1d0))
37 #define GPIOM_INT_LEV (*(volatile unsigned long *)(0x6000d1e0))
38 #define GPIOM_INT_CLR (*(volatile unsigned long *)(0x6000d1f0))
40 #define GPIOM 12
42 #endif