Kristoffer Ericson | 80bf2bb | 2010-10-15 23:31:43 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2010 (C) |
| 3 | * Kristoffer Ericson <kristoffer.ericson@gmail.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Kristoffer Ericson | 80bf2bb | 2010-10-15 23:31:43 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __CONFIG_H |
| 9 | #define __CONFIG_H |
| 10 | |
| 11 | /* |
| 12 | * High Level Configuration Options |
| 13 | * (easy to change) |
| 14 | */ |
| 15 | #define CONFIG_SA1110 1 /* This is an SA110 CPU */ |
| 16 | #define CONFIG_JORNADA700 1 /* on an HP Jornada 700 series */ |
| 17 | #define CONFIG_SYS_FLASH_PROTECTION 1 |
Kristoffer Ericson | 80bf2bb | 2010-10-15 23:31:43 +0200 | [diff] [blame] | 18 | |
| 19 | #define CONFIG_SYS_TEXT_BASE 0xC1F00000 |
| 20 | |
| 21 | /* we will never enable dcache, because we have to setup MMU first */ |
Aneesh V | e47f2db | 2011-06-16 23:30:48 +0000 | [diff] [blame] | 22 | #define CONFIG_SYS_DCACHE_OFF |
Kristoffer Ericson | 80bf2bb | 2010-10-15 23:31:43 +0200 | [diff] [blame] | 23 | |
| 24 | /* Console setting */ |
| 25 | |
| 26 | #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */ |
| 27 | #define CONFIG_SETUP_MEMORY_TAGS 1 |
| 28 | #define CONFIG_INITRD_TAG 1 |
| 29 | |
| 30 | /* |
| 31 | * Size of malloc() pool |
| 32 | */ |
| 33 | #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) |
Kristoffer Ericson | 80bf2bb | 2010-10-15 23:31:43 +0200 | [diff] [blame] | 34 | |
| 35 | /* |
| 36 | * select serial console configuration |
| 37 | */ |
| 38 | #define CONFIG_SA1100_SERIAL 1 |
| 39 | #define CONFIG_SERIAL3 1 /* we use serial 3 */ |
| 40 | #define CONFIG_BAUDRATE 19200 |
| 41 | #define CONFIG_LOADS_ECHO 1 |
| 42 | |
| 43 | /* |
| 44 | * Command line configuration. |
| 45 | */ |
| 46 | #include <config_cmd_default.h> |
| 47 | #define CONFIG_CMD_FLASH |
| 48 | #define CONFIG_CMD_JFFS2 |
| 49 | #undef CONFIG_CMD_NET |
| 50 | #undef CONFIG_CMD_NFS |
| 51 | #undef CONFIG_CMD_FPGA |
| 52 | #undef CONFIG_CMD_MISC |
| 53 | #undef CONFIG_CMD_SETGETDCR |
| 54 | #undef CONFIG_CMD_XIMG |
| 55 | |
| 56 | #define CONFIG_BOOTDELAY 5 |
| 57 | #define CONFIG_BOOTARGS "root=/dev/hda1 console=ttySA0,19200n8 console=tty1" |
| 58 | #define CONFIG_BOOTCOMMAND "run boot_kernel" |
| 59 | #define CONFIG_SYS_AUTOLOAD "n" /* No autoload */ |
| 60 | #define CONFIG_SYS_LOAD_ADDR 0xc0000000 |
| 61 | |
| 62 | /* |
| 63 | * Miscellaneous configurable options |
| 64 | */ |
| 65 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 66 | #define CONFIG_SYS_PROMPT "HP Jornada# " |
| 67 | #define CONFIG_SYS_CBSIZE 256 /* console buffsize */ |
| 68 | #define CONFIG_SYS_PBSIZE (256+sizeof(CONFIG_SYS_PROMPT)+16) |
| 69 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 70 | #define CONFIG_SYS_BARGSIZE 256 /* Boot Argument Buffer Size */ |
| 71 | #define CONFIG_SYS_MEMTEST_START 0xc0040000 /* memtest works on */ |
| 72 | #define CONFIG_SYS_MEMTEST_END 0xc2000000 /* 4..128 MB */ |
| 73 | #define CONFIG_SYS_HZ 1000 |
| 74 | #define CONFIG_SYS_CPUSPEED 0x0a /* core clock 206MHz */ |
| 75 | #define CONFIG_SYS_BAUDRATE_TABLE { 19200, 38400, 57600, 115200 } |
| 76 | |
Kristoffer Ericson | 80bf2bb | 2010-10-15 23:31:43 +0200 | [diff] [blame] | 77 | #define CONFIG_SYS_FLASH_CFI 1 |
| 78 | #define CONFIG_FLASH_CFI_DRIVER 1 |
| 79 | #define CONFIG_FLASH_CFI_WIDTH FLASH_CFI_32BIT |
| 80 | #define CONFIG_SYS_FLASH_BASE 0x00000000 |
| 81 | #define CONFIG_SYS_FLASH_ERASE_TOUT (4096) |
| 82 | #define CONFIG_SYS_FLASH_WRITE_TOUT (4096) |
| 83 | #define CONFIG_SYS_FLASH_INCREMENT 0x02000000 |
| 84 | #define PHYS_FLASH_1 0x00000000 /* starts at 0x0 */ |
| 85 | #define PHYS_FLASH_SIZE 0x04000000 /* 64MB */ |
| 86 | #define PHYS_FLASH_SECT_SIZE 0x00040000 /* 256KB Sectors */ |
| 87 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 |
| 88 | #define CONFIG_SYS_MAX_FLASH_SECT 260 |
| 89 | #define CONFIG_SYS_FLASH_BANKS_LIST { PHYS_FLASH_1 } |
| 90 | #define CONFIG_SYS_FLASH_EMPTY_INFO 1 |
| 91 | #define CONFIG_SYS_MONITOR_LEN 0x00040000 |
| 92 | #define CONFIG_SYS_MONITOR_BASE 0x00000000 |
| 93 | #define CONFIG_FLASH_SHOW_PROGRESS 1 |
| 94 | |
| 95 | /* Environment */ |
| 96 | #define CONFIG_ENV_IS_IN_FLASH 1 |
| 97 | #define CONFIG_ENV_ADDR 0x00040000 |
| 98 | #define CONFIG_ENV_OFFSET 0x00040000 |
| 99 | #define CONFIG_ENV_SIZE 0x00040000 |
| 100 | #define CONFIG_ENV_SECT_SIZE 0x00040000 |
| 101 | #define CONFIG_ENV_OVERWRITE 1 |
| 102 | |
| 103 | /* |
| 104 | Monitor - 0x00000000 - 0x00040000 (256kb) |
| 105 | Environment - 0x00040000 - 0x00080000 (256kb) |
| 106 | Kernel - 0x00080000 - 0x00380000 (3mb) |
| 107 | Rootfs - 0x00380000 - 0x........ (rest) |
| 108 | */ |
| 109 | |
| 110 | #define CONFIG_NR_DRAM_BANKS 2 |
| 111 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 |
| 112 | #define CONFIG_SYS_INTRAM_BASE INTERNAL_SRAM_BASE |
| 113 | #define CONFIG_SYS_INTRAM_SIZE INTERNAL_SRAM_SIZE |
| 114 | #define CONFIG_SYS_INIT_SP_ADDR 0x0 |
| 115 | #define PHYS_SDRAM_1 0xc0000000 /* SDRAM Bank #1 */ |
| 116 | #define PHYS_SDRAM_2 0xc4000000 /* SDRAM Bank #2 */ |
| 117 | #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */ |
| 118 | #define PHYS_SDRAM_2_SIZE 0x04000000 /* 64 MB */ |
| 119 | |
| 120 | #define CONFIG_CMD_MTDPARTS |
| 121 | #define CONFIG_MTD_DEVICE |
| 122 | #define CONFIG_FLASH_CFI_MTD |
| 123 | #define MTDIDS_DEFAULT "nor0=jornada7xx-0" |
| 124 | #define MTDPARTS_DEFAULT "mtdparts=jornada7xx-0:256k(u-boot),256k(env),"\ |
| 125 | "3m(kernel),-(user);" |
| 126 | |
| 127 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 128 | "flash_kernel=protect off all; " \ |
| 129 | "erase 00080000 0037ffff;cp.b c0000000 00080000 00300000;\0" \ |
| 130 | "flash_uboot=protect off all; " \ |
| 131 | "erase 00000000 0003ffff;cp.b c0000000 00000000 00040000;\0" \ |
| 132 | "boot_kernel=cp.b 00080000 c0000000 00300000;bootm;\0" |
| 133 | #endif /* __CONFIG_H */ |