Subversion Repositories freemyipod

Rev

Rev 881 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
881 theseven 1
#ifndef __TARGET_UMSBOOT_IPODNANO4G_TARGET_H__
2
#define __TARGET_UMSBOOT_IPODNANO4G_TARGET_H__
3
 
4
#include "board/ipodnano4g/target.h"
5
#include "soc/s5l87xx/regs.h"
6
 
7
#define SDRAM_SIZE 0
8
#define ENABLE_MMU
9
 
10
#define CODE_REGION SRAM
11
#define BSS_REGION SRAM
12
 
13
#define S5L87XX_SYNOPSYSOTG_ENABLE
14
 
15
#define UMSBOOT_HAVE_CONSOLE
16
 
17
#define UMSBOOT_USB_DRIVER_HEADER "core/synopsysotg/synopsysotg.h"
18
#define UMSBOOT_USB_DRIVER synopsysotg_driver
19
#define UMSBOOT_USB_DRIVER_CONFIG_TYPE const struct synopsysotg_config
20
#define UMSBOOT_USB_DRIVER_CONFIG \
21
{ \
22
    .core = (struct synopsysotg_core_regs*)OTGBASE, \
23
    .phy_16bit = true, \
24
    .phy_ulpi = false, \
25
    .use_dma = true, \
964 theseven 26
    .shared_txfifo = false, \
881 theseven 27
    .disable_double_buffering = false, \
28
    .fifosize = 1024, \
964 theseven 29
    .txfifosize = { 0x80, 0x180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, \
881 theseven 30
}
31
#define UMSBOOT_USB_DRIVER_STATE_TYPE struct synopsysotg_state
32
#define UMSBOOT_USB_DRIVER_STATE \
33
{ \
34
    .endpoints = { {}, {}, {} }, \
35
}
36
#define UMSBOOT_USB_VENDORID 0xffff
37
#define UMSBOOT_USB_VENDORSTRING { 'f', 'r', 'e', 'e', 'm', 'y', 'i', 'p', 'o', 'd', '.', 'o', 'r', 'g' }
38
#define UMSBOOT_USB_VENDORSTRING_LEN 16
39
#define UMSBOOT_USB_PRODUCTID 0x5562
40
#define UMSBOOT_USB_PRODUCTSTRING { 'U', 'M', 'S', 'b', 'o', 'o', 't' }
41
#define UMSBOOT_USB_PRODUCTSTRING_LEN 7
42
#define UMSBOOT_USB_DEVICEREVISION 2
43
#define UMSBOOT_USB_MAXCURRENT 100
44
#define UMSBOOT_ENDPOINT_OUT 2
45
#define UMSBOOT_ENDPOINT_IN 1
46
 
47
#define RAMDISK_BASEADDR 0x08000000
48
#define RAMDISK_SECTORSIZE 4096
49
#define RAMDISK_SECTORS 8192
50
#define RAMDISK_PTR_ADDR 0x2202fffc
51
 
52
#endif