Łukasz Dałek | 56110a3 | 2012-10-15 07:46:54 +0000 | [diff] [blame] | 1 | /* |
| 2 | * iPAQ h2200 board configuration |
| 3 | * |
| 4 | * Copyright (C) 2012 Lukasz Dalek <luk0104@gmail.com> |
| 5 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | * SPDX-License-Identifier: GPL-2.0+ |
Łukasz Dałek | 56110a3 | 2012-10-15 07:46:54 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __CONFIG_H |
| 10 | #define __CONFIG_H |
| 11 | |
| 12 | #define MACH_TYPE_H2200 341 |
| 13 | #define CONFIG_MACH_TYPE MACH_TYPE_H2200 |
| 14 | |
| 15 | #define CONFIG_CPU_PXA25X 1 |
| 16 | #define CONFIG_BOARD_H2200 |
| 17 | |
| 18 | #define CONFIG_SYS_NO_FLASH |
| 19 | |
| 20 | #define CONFIG_SYS_HZ 1000 |
| 21 | |
| 22 | #define CONFIG_NR_DRAM_BANKS 1 |
| 23 | #define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */ |
| 24 | #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */ |
| 25 | |
| 26 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
| 27 | #define CONFIG_SYS_SDRAM_SIZE PHYS_SDRAM_1_SIZE |
| 28 | |
| 29 | #define CONFIG_SYS_INIT_SP_ADDR 0xfffff800 |
| 30 | |
| 31 | #define CONFIG_ENV_SIZE 0x00040000 |
| 32 | #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) |
| 33 | |
| 34 | #define CONFIG_ENV_IS_NOWHERE |
| 35 | #define CONFIG_SYS_MAXARGS 16 |
| 36 | #define CONFIG_SYS_LOAD_ADDR 0xa3000000 /* default load address */ |
| 37 | |
| 38 | /* |
| 39 | * iPAQ 1st stage bootloader loads 2nd stage bootloader |
| 40 | * at address 0xa0040000 but bootloader requires header |
| 41 | * which is 0x1000 long. |
| 42 | * |
| 43 | * --- Header begin --- |
| 44 | * .word 0xea0003fe ; b 0x1000 |
| 45 | * |
| 46 | * .org 0x40 |
| 47 | * .ascii "ECEC" |
| 48 | * |
| 49 | * .org 0x1000 |
| 50 | * --- Header end --- |
| 51 | */ |
| 52 | |
| 53 | #define CONFIG_SYS_TEXT_BASE 0xa0041000 |
| 54 | |
| 55 | /* |
| 56 | * Static chips |
| 57 | */ |
| 58 | |
| 59 | #define CONFIG_SYS_MSC0_VAL 0x246c7ffc |
| 60 | #define CONFIG_SYS_MSC1_VAL 0x7ff07ff0 |
| 61 | #define CONFIG_SYS_MSC2_VAL 0x7ff07ff0 |
| 62 | |
| 63 | /* |
| 64 | * PCMCIA and CF Interfaces |
| 65 | */ |
| 66 | |
| 67 | #define CONFIG_SYS_MECR_VAL 0x00000000 |
| 68 | #define CONFIG_SYS_MCMEM0_VAL 0x00000000 |
| 69 | #define CONFIG_SYS_MCMEM1_VAL 0x00000000 |
| 70 | #define CONFIG_SYS_MCATT0_VAL 0x00000000 |
| 71 | #define CONFIG_SYS_MCATT1_VAL 0x00000000 |
| 72 | #define CONFIG_SYS_MCIO0_VAL 0x00000000 |
| 73 | #define CONFIG_SYS_MCIO1_VAL 0x00000000 |
| 74 | |
| 75 | #define CONFIG_SYS_FLYCNFG_VAL 0x00000000 |
| 76 | #define CONFIG_SYS_SXCNFG_VAL 0x00040004 |
| 77 | |
| 78 | #define CONFIG_SYS_MDREFR_VAL 0x0099E018 |
| 79 | #define CONFIG_SYS_MDCNFG_VAL 0x01C801CB |
| 80 | #define CONFIG_SYS_MDMRS_VAL 0x00220022 |
| 81 | |
| 82 | #define CONFIG_SYS_PSSR_VAL 0x00000000 |
| 83 | #define CONFIG_SYS_CKEN 0x00004840 |
| 84 | #define CONFIG_SYS_CCCR 0x00000161 |
| 85 | |
| 86 | /* |
| 87 | * GPIOs |
| 88 | */ |
| 89 | |
| 90 | #define CONFIG_SYS_GPSR0_VAL 0x01000000 |
| 91 | #define CONFIG_SYS_GPSR1_VAL 0x00000000 |
| 92 | #define CONFIG_SYS_GPSR2_VAL 0x00010000 |
| 93 | |
| 94 | #define CONFIG_SYS_GPCR0_VAL 0x00000000 |
| 95 | #define CONFIG_SYS_GPCR1_VAL 0x00000000 |
| 96 | #define CONFIG_SYS_GPCR2_VAL 0x00000000 |
| 97 | |
| 98 | #define CONFIG_SYS_GPDR0_VAL 0xF7E38C00 |
| 99 | #define CONFIG_SYS_GPDR1_VAL 0xBCFFBF83 |
| 100 | #define CONFIG_SYS_GPDR2_VAL 0x000157FF |
| 101 | |
| 102 | #define CONFIG_SYS_GAFR0_L_VAL 0x80401000 |
| 103 | #define CONFIG_SYS_GAFR0_U_VAL 0x00000112 |
| 104 | #define CONFIG_SYS_GAFR1_L_VAL 0x600A9550 |
| 105 | #define CONFIG_SYS_GAFR1_U_VAL 0x0005AAAA |
| 106 | #define CONFIG_SYS_GAFR2_L_VAL 0x20000000 |
| 107 | #define CONFIG_SYS_GAFR2_U_VAL 0x00000000 |
| 108 | |
| 109 | /* |
| 110 | * Serial port |
| 111 | */ |
| 112 | |
| 113 | #define CONFIG_PXA_SERIAL |
| 114 | #define CONFIG_FFUART |
| 115 | #define CONFIG_CONS_INDEX 3 |
| 116 | |
| 117 | #define CONFIG_BAUDRATE 115200 |
| 118 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 38400, 115200 } |
| 119 | |
| 120 | #define CONFIG_CMD_IMPORTENV 1 |
| 121 | #define CONFIG_CMD_LOADB |
| 122 | #define CONFIG_CMD_SOURCE |
| 123 | #define CONFIG_CMD_RUN |
| 124 | #define CONFIG_CMD_IMI |
| 125 | |
| 126 | #define CONFIG_FIT |
| 127 | #define CONFIG_SETUP_MEMORY_TAGS |
| 128 | #define CONFIG_CMDLINE_TAG |
| 129 | #define CONFIG_INITRD_TAG |
| 130 | |
| 131 | /* Monitor Command Prompt */ |
| 132 | #define CONFIG_SYS_PROMPT "> " |
| 133 | #define CONFIG_SYS_HUSH_PARSER |
| 134 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "$ " |
| 135 | |
| 136 | /* Console I/O Buffer Size */ |
| 137 | #define CONFIG_SYS_CBSIZE 256 |
| 138 | |
| 139 | /* Print Buffer Size */ |
| 140 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ |
| 141 | sizeof(CONFIG_SYS_PROMPT) + 16) |
| 142 | |
| 143 | #define CONFIG_BOOTARGS "root=/dev/ram0 ro console=ttyS0,115200n8" |
| 144 | |
Lukasz Dalek | d81c72e | 2012-11-29 15:55:16 +0100 | [diff] [blame] | 145 | #define CONFIG_SYS_CONSOLE_IS_IN_ENV |
| 146 | #define CONFIG_USB_DEV_PULLUP_GPIO 33 |
| 147 | /* USB VBUS GPIO 3 */ |
| 148 | |
| 149 | #define CONFIG_CMD_NET |
| 150 | #define CONFIG_CMD_PING |
| 151 | |
| 152 | #define CONFIG_BOOTDELAY 2 |
| 153 | #define CONFIG_BOOTCOMMAND \ |
| 154 | "setenv downloaded 0 ; while test $downloaded -eq 0 ; do " \ |
| 155 | "if bootp ; then setenv downloaded 1 ; fi ; done ; " \ |
| 156 | "source :script ; " \ |
| 157 | "bootm ; " |
| 158 | |
| 159 | #define CONFIG_USB_GADGET_PXA2XX |
| 160 | #define CONFIG_USB_ETHER |
| 161 | #define CONFIG_USB_ETH_SUBSET |
| 162 | |
| 163 | #define CONFIG_USBNET_DEV_ADDR "de:ad:be:ef:00:01" |
| 164 | #define CONFIG_USBNET_HOST_ADDR "de:ad:be:ef:00:02" |
| 165 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 166 | "stdin=serial\0" \ |
| 167 | "stdout=serial\0" \ |
| 168 | "stderr=serial\0" |
| 169 | |
Łukasz Dałek | 56110a3 | 2012-10-15 07:46:54 +0000 | [diff] [blame] | 170 | #endif /* __CONFIG_H */ |