Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
710 theseven 1
//
2
//
3
//    Copyright 2010 TheSeven
4
//
5
//
6
//    This file is part of emCORE.
7
//
8
//    emCORE is free software: you can redistribute it and/or
9
//    modify it under the terms of the GNU General Public License as
10
//    published by the Free Software Foundation, either version 2 of the
11
//    License, or (at your option) any later version.
12
//
13
//    emCORE is distributed in the hope that it will be useful,
14
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
//    See the GNU General Public License for more details.
17
//
18
//    You should have received a copy of the GNU General Public License along
19
//    with emCORE.  If not, see <http://www.gnu.org/licenses/>.
20
//
21
//
22
 
23
 
24
#ifndef __TARGET_H__
25
#define __TARGET_H__
26
 
27
 
28
#define PLATFORM_ID 0x47325449
29
 
30
 
31
#define ARM_ARCH 6
32
#define LITTLE_ENDIAN
735 theseven 33
#define CACHEALIGN_BITS 5
710 theseven 34
#define CPU_FREQ 532000000
35
 
36
 
37
#define CONSOLE_BOOT 3
38
#define CONSOLE_PANIC 3
39
#define CONSOLE_PANICDUMP 0
40
 
41
 
892 theseven 42
#include "../ipodnano4g/s5l8720.h"
710 theseven 43
#define HAVE_USB
892 theseven 44
#define USB_DRIVER_HEADER "usb/synopsysotg.h"
45
#define USB_DRIVER synopsysotg_driver
46
#define USB_DRIVER_CONFIG_TYPE const struct synopsysotg_config
47
#define USB_DRIVER_CONFIG \
48
{ \
49
    .core = (struct synopsysotg_core_regs*)OTGBASE, \
50
    .phy_16bit = true, \
51
    .phy_ulpi = false, \
52
    .use_dma = true, \
53
    .shared_txfifo = true, \
54
    .disable_double_buffering = false, \
55
    .fifosize = 1024, \
56
    .txfifosize = { 0x200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, \
57
}
58
#define USB_DRIVER_STATE_TYPE struct synopsysotg_state
59
#define USB_DRIVER_STATE \
60
{ \
61
    .endpoints = { {}, {}, {}, {}, {} }, \
62
}
63
#define USB_ENDPOINTS 0b0000000000010110000000000010101
64
#define USB_MAXCURRENT 500
934 theseven 65
//#define USB_HAVE_TARGET_SPECIFIC_REQUESTS
710 theseven 66
 
892 theseven 67
 
710 theseven 68
#define HAVE_LCD
69
#define LCD_WIDTH 320
70
#define LCD_HEIGHT 480
71
#define LCD_FORMAT 0x00721d07  // rgb888
72
#define LCD_BYTESPERPIXEL 4
73
#define LCDCONSOLE_FGCOLOR 0
74
#define LCDCONSOLE_BGCOLOR -1
75
 
76
#define HAVE_BACKLIGHT
77
 
78
#define HAVE_I2C
79
 
80
//#define HAVE_STORAGE
81
//#define HAVE_FLASH_STORAGE
82
//#define HAVE_STORAGE_FLUSH
83
//#define CONFIG_STORAGE STORAGE_NAND
84
//#define SECTOR_SIZE 4096
85
 
763 user890104 86
#define HAVE_ACCELEROMETER
710 theseven 87
 
763 user890104 88
 
710 theseven 89
#endif