]>
Commit | Line | Data |
---|---|---|
0ec005fe MV |
1 | /* |
2 | * Copyright (C) 2012 Marek Vasut <marex@denx.de> | |
3 | * on behalf of DENX Software Engineering GmbH | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
0ec005fe MV |
6 | */ |
7 | ||
8 | #ifndef __CONFIG_TK71_H__ | |
9 | #define __CONFIG_TK71_H__ | |
10 | ||
11 | /* | |
12 | * Version number information | |
13 | */ | |
14 | #define CONFIG_IDENT_STRING "\nKa-Ro TK71" | |
15 | ||
16 | /* | |
17 | * High Level Configuration Options (easy to change) | |
18 | */ | |
19 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ | |
0ec005fe MV |
20 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
21 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ | |
22 | #define CONFIG_NR_DRAM_BANKS 1 | |
23 | ||
24 | #define MACH_TYPE_TK71 2399 | |
25 | #define CONFIG_MACH_TYPE MACH_TYPE_TK71 | |
26 | ||
27 | /* | |
28 | * Commands configuration | |
29 | */ | |
30 | #define CONFIG_SYS_HUSH_PARSER | |
31 | ||
32 | #define CONFIG_SYS_NO_FLASH | |
33 | #define CONFIG_DOS_PARTITION | |
34 | #define CONFIG_SUPPORT_VFAT | |
35 | ||
36 | #include <config_cmd_default.h> | |
37 | #define CONFIG_CMD_DHCP | |
38 | #define CONFIG_CMD_ENV | |
39 | #define CONFIG_CMD_EXT2 | |
40 | #define CONFIG_CMD_FAT | |
41 | #define CONFIG_CMD_MTDPARTS | |
42 | #define CONFIG_CMD_NAND | |
43 | #define CONFIG_CMD_PING | |
44 | #define CONFIG_CMD_USB | |
45 | ||
46 | /* | |
47 | * mv-common.h should be defined after CMD configs since it used them | |
48 | * to enable certain macros | |
49 | */ | |
50 | #include "mv-common.h" | |
51 | ||
52 | /* | |
53 | * NAND flash | |
54 | */ | |
55 | #ifdef CONFIG_CMD_NAND | |
56 | #define CONFIG_MTD_DEVICE | |
57 | #define CONFIG_MTD_PARTITIONS | |
58 | #define CONFIG_JFFS2_NAND | |
59 | #define CONFIG_JFFS2_DEV "nand0,3" | |
60 | #endif | |
61 | ||
62 | /* | |
63 | * Ethernet Driver configuration | |
64 | */ | |
65 | #ifdef CONFIG_CMD_NET | |
66 | #define CONFIG_MVGBE_PORTS {1, 0} | |
67 | #define CONFIG_PHY_BASE_ADR 0x08 | |
68 | #endif | |
69 | ||
70 | /* | |
71 | * USB/EHCI | |
72 | */ | |
73 | #ifdef CONFIG_CMD_USB | |
74 | #define CONFIG_USB_EHCI | |
75 | #define CONFIG_USB_EHCI_KIRKWOOD | |
76 | #define CONFIG_EHCI_IS_TDI | |
77 | #define CONFIG_USB_STORAGE | |
78 | #endif | |
79 | ||
80 | /* | |
81 | * Environment variables configurations | |
82 | */ | |
83 | #ifdef CONFIG_CMD_NAND | |
84 | #define CONFIG_ENV_IS_IN_NAND | |
85 | #define CONFIG_ENV_SECT_SIZE 0x20000 | |
86 | #else | |
87 | #define CONFIG_ENV_IS_NOWHERE | |
88 | #endif | |
89 | ||
90 | #define CONFIG_ENV_SIZE 0x20000 | |
91 | #define CONFIG_ENV_ADDR 0x80000 | |
92 | #define CONFIG_ENV_OFFSET 0x80000 | |
93 | ||
94 | /* | |
95 | * Default environment variables | |
96 | */ | |
97 | #define CONFIG_BOOTCOMMAND "nand read 0x800000 kernel 0x300000; bootm;" | |
98 | #define CONFIG_MTDPARTS "512K(u-boot),512K(u-boot-env),3M(kernel),-(root)" | |
99 | #define CONFIG_EXTRA_ENV_SETTINGS \ | |
100 | "update_uboot=dhcp u-boot.kwb; nand erase.part u-boot; nand write ${fileaddr} u-boot ${filesize}\0" \ | |
101 | "update_kernel=dhcp uImage-tk71; nand erase.part kernel; nand write ${fileaddr} kernel ${filesize} \0" \ | |
102 | "update_rootfs=dhcp rootfs-tk71; nand erase.part root; nand write ${fileaddr} root ${filesize}\0" \ | |
103 | "update_all=run update_uboot; run update_kernel; run update_rootfs; reset\0" \ | |
104 | "mtdids=nand0=orion_nand\0" \ | |
105 | "mtdparts=mtdparts=orion_nand:"CONFIG_MTDPARTS"\0" \ | |
106 | "bootargs=console=ttyS0,115200 mtdparts=orion_nand:"CONFIG_MTDPARTS" rootfstype=jffs2 root=/dev/mtdblock3 rw\0" | |
107 | #define MTDIDS_DEFAULT "nand0=orion_nand" | |
108 | #define MTDPARTS_DEFAULT "mtdparts=orion_nand:"CONFIG_MTDPARTS | |
109 | ||
110 | #define PHYS_SDRAM_1 0x00000000 /* Base address */ | |
111 | #define PHYS_SDRAM_1_SIZE 0x20000000 /* Max 512 MB RAM */ | |
112 | ||
113 | #endif /* __CONFIG_TK71_H__ */ |