100-netusg20.patch 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. Add support for the NetusG20 board by Acmesystems srl.
  2. This board is based on AT91SAM9G20 SoC.
  3. Signed-off-by: Claudio Mignanti <c.mignanti@gmail.com>
  4. ---
  5. MAKEALL | 1 +
  6. Makefile | 3 +
  7. arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c | 5 +
  8. board/acmesystems/netusg20/Makefile | 56 +++++++
  9. board/acmesystems/netusg20/config.mk | 1 +
  10. board/acmesystems/netusg20/led.c | 40 +++++
  11. board/acmesystems/netusg20/netusg20.c | 152 +++++++++++++++++
  12. board/acmesystems/netusg20/partition.c | 39 +++++
  13. include/configs/netusg20.h | 181 +++++++++++++++++++++
  14. 9 files changed, 478 insertions(+), 0 deletions(-)
  15. create mode 100644 board/acmesystems/netusg20/Makefile
  16. create mode 100644 board/acmesystems/netusg20/config.mk
  17. create mode 100644 board/acmesystems/netusg20/led.c
  18. create mode 100644 board/acmesystems/netusg20/netusg20.c
  19. create mode 100644 board/acmesystems/netusg20/partition.c
  20. create mode 100644 include/configs/netusg20.h
  21. diff --git a/MAKEALL b/MAKEALL
  22. index d6d5f5b..60e36e1 100755
  23. --- a/MAKEALL
  24. +++ b/MAKEALL
  25. @@ -684,6 +684,7 @@ LIST_at91=" \
  26. meesc \
  27. mp2usb \
  28. m501sk \
  29. + netusg20 \
  30. otc570 \
  31. pm9261 \
  32. pm9263 \
  33. diff --git a/Makefile b/Makefile
  34. index 87d5214..b73659f 100644
  35. --- a/Makefile
  36. +++ b/Makefile
  37. @@ -2867,6 +2867,9 @@ at91sam9g45ekes_config : unconfig
  38. fi;
  39. @$(MKCONFIG) -a at91sam9m10g45ek arm arm926ejs at91sam9m10g45ek atmel at91
  40. +netusg20_config: unconfig
  41. + @$(MKCONFIG) $(@:_config=) arm arm926ejs netusg20 acmesystems at91
  42. +
  43. otc570_config : unconfig
  44. @$(MKCONFIG) $(@:_config=) arm arm926ejs otc570 esd at91
  45. diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
  46. index 77d49ab..87ec531 100644
  47. --- a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
  48. +++ b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
  49. @@ -59,7 +59,12 @@ void at91_serial3_hw_init(void)
  50. {
  51. at91_pmc_t *pmc = (at91_pmc_t *) AT91_PMC_BASE;
  52. +#ifdef CONFIG_NETUSG20
  53. + /* pull-up active on DRXD*/
  54. + at91_set_a_periph(AT91_PIO_PORTB, 14, 1);
  55. +#else
  56. at91_set_a_periph(AT91_PIO_PORTB, 14, 0); /* DRXD */
  57. +#endif
  58. at91_set_a_periph(AT91_PIO_PORTB, 15, 1); /* DTXD */
  59. writel(1 << AT91_ID_SYS, &pmc->pcer);
  60. }
  61. diff --git a/board/acmesystems/netusg20/Makefile b/board/acmesystems/netusg20/Makefile
  62. new file mode 100644
  63. index 0000000..31589fd
  64. --- /dev/null
  65. +++ b/board/acmesystems/netusg20/Makefile
  66. @@ -0,0 +1,56 @@
  67. +#
  68. +# (C) Copyright 2003-2008
  69. +# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  70. +#
  71. +# (C) Copyright 2008
  72. +# Stelian Pop <stelian.pop@leadtechdesign.com>
  73. +# Lead Tech Design <www.leadtechdesign.com>
  74. +#
  75. +# See file CREDITS for list of people who contributed to this
  76. +# project.
  77. +#
  78. +# This program is free software; you can redistribute it and/or
  79. +# modify it under the terms of the GNU General Public License as
  80. +# published by the Free Software Foundation; either version 2 of
  81. +# the License, or (at your option) any later version.
  82. +#
  83. +# This program is distributed in the hope that it will be useful,
  84. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  85. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  86. +# GNU General Public License for more details.
  87. +#
  88. +# You should have received a copy of the GNU General Public License
  89. +# along with this program; if not, write to the Free Software
  90. +# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  91. +# MA 02111-1307 USA
  92. +#
  93. +
  94. +include $(TOPDIR)/config.mk
  95. +
  96. +LIB = $(obj)lib$(BOARD).a
  97. +
  98. +COBJS-y += netusg20.o
  99. +COBJS-y += led.o
  100. +COBJS-y += partition.o
  101. +
  102. +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
  103. +OBJS := $(addprefix $(obj),$(COBJS-y))
  104. +SOBJS := $(addprefix $(obj),$(SOBJS))
  105. +
  106. +$(LIB): $(obj).depend $(OBJS) $(SOBJS)
  107. + $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
  108. +
  109. +clean:
  110. + rm -f $(SOBJS) $(OBJS)
  111. +
  112. +distclean: clean
  113. + rm -f $(LIB) core *.bak $(obj).depend
  114. +
  115. +#########################################################################
  116. +
  117. +# defines $(obj).depend target
  118. +include $(SRCTREE)/rules.mk
  119. +
  120. +sinclude $(obj).depend
  121. +
  122. +#########################################################################
  123. diff --git a/board/acmesystems/netusg20/config.mk b/board/acmesystems/netusg20/config.mk
  124. new file mode 100644
  125. index 0000000..ff2cfd1
  126. --- /dev/null
  127. +++ b/board/acmesystems/netusg20/config.mk
  128. @@ -0,0 +1 @@
  129. +TEXT_BASE = 0x23f00000
  130. diff --git a/board/acmesystems/netusg20/led.c b/board/acmesystems/netusg20/led.c
  131. new file mode 100644
  132. index 0000000..1016b98
  133. --- /dev/null
  134. +++ b/board/acmesystems/netusg20/led.c
  135. @@ -0,0 +1,40 @@
  136. +/*
  137. + * (C) Copyright 2007-2008
  138. + * Stelian Pop <stelian.pop@leadtechdesign.com>
  139. + * Lead Tech Design <www.leadtechdesign.com>
  140. + *
  141. + * See file CREDITS for list of people who contributed to this
  142. + * project.
  143. + *
  144. + * This program is free software; you can redistribute it and/or
  145. + * modify it under the terms of the GNU General Public License as
  146. + * published by the Free Software Foundation; either version 2 of
  147. + * the License, or (at your option) any later version.
  148. + *
  149. + * This program is distributed in the hope that it will be useful,
  150. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  151. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  152. + * GNU General Public License for more details.
  153. + *
  154. + * You should have received a copy of the GNU General Public License
  155. + * along with this program; if not, write to the Free Software
  156. + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  157. + * MA 02111-1307 USA
  158. + */
  159. +
  160. +#include <common.h>
  161. +#include <asm/arch/at91sam9260.h>
  162. +#include <asm/arch/at91_pmc.h>
  163. +#include <asm/arch/gpio.h>
  164. +#include <asm/arch/io.h>
  165. +
  166. +
  167. +void coloured_LED_init(void)
  168. +{
  169. + /* Enable clock */
  170. + at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_PIOA);
  171. +
  172. + at91_set_gpio_output(CONFIG_RED_LED, 1);
  173. +
  174. + at91_set_gpio_value(CONFIG_RED_LED, 1);
  175. +}
  176. diff --git a/board/acmesystems/netusg20/netusg20.c b/board/acmesystems/netusg20/netusg20.c
  177. new file mode 100644
  178. index 0000000..94b4d4c
  179. --- /dev/null
  180. +++ b/board/acmesystems/netusg20/netusg20.c
  181. @@ -0,0 +1,152 @@
  182. +/*
  183. + * (C) Copyright 2007-2008
  184. + * Stelian Pop <stelian.pop@leadtechdesign.com>
  185. + * Lead Tech Design <www.leadtechdesign.com>
  186. + *
  187. + * (C) Copyright 2010
  188. + * Claudio Mignanti <c.mignanti@gmail.com>
  189. + *
  190. + * See file CREDITS for list of people who contributed to this
  191. + * project.
  192. + *
  193. + * This program is free software; you can redistribute it and/or
  194. + * modify it under the terms of the GNU General Public License as
  195. + * published by the Free Software Foundation; either version 2 of
  196. + * the License, or (at your option) any later version.
  197. + *
  198. + * This program is distributed in the hope that it will be useful,
  199. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  200. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  201. + * GNU General Public License for more details.
  202. + *
  203. + * You should have received a copy of the GNU General Public License
  204. + * along with this program; if not, write to the Free Software
  205. + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  206. + * MA 02111-1307 USA
  207. + */
  208. +
  209. +#include <common.h>
  210. +#include <asm/arch/at91sam9260.h>
  211. +#include <asm/arch/at91sam9260_matrix.h>
  212. +#include <asm/arch/at91sam9_smc.h>
  213. +#include <asm/arch/at91_common.h>
  214. +#include <asm/arch/at91_pmc.h>
  215. +#include <asm/arch/at91_rstc.h>
  216. +#include <asm/arch/gpio.h>
  217. +#include <asm/arch/io.h>
  218. +#include <asm/arch/hardware.h>
  219. +#if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB)
  220. +#include <net.h>
  221. +#endif
  222. +#include <netdev.h>
  223. +
  224. +DECLARE_GLOBAL_DATA_PTR;
  225. +
  226. +/* ------------------------------------------------------------------------- */
  227. +/*
  228. + * Miscelaneous platform dependent initialisations
  229. + */
  230. +
  231. +#ifdef CONFIG_MACB
  232. +static void at91sam9260ek_macb_hw_init(void)
  233. +{
  234. + unsigned long rstc;
  235. +
  236. + /* Enable clock */
  237. + at91_sys_write(AT91_PMC_PCER, 1 << AT91SAM9260_ID_EMAC);
  238. +
  239. + /*
  240. + * Disable pull-up on:
  241. + * RXDV (PA17) => PHY normal mode (not Test mode)
  242. + * ERX0 (PA14) => PHY ADDR0
  243. + * ERX1 (PA15) => PHY ADDR1
  244. + * ERX2 (PA25) => PHY ADDR2
  245. + * ERX3 (PA26) => PHY ADDR3
  246. + * ECRS (PA28) => PHY ADDR4 => PHYADDR = 0x0
  247. + *
  248. + * PHY has internal pull-down
  249. + */
  250. + writel(pin_to_mask(AT91_PIN_PA14) |
  251. + pin_to_mask(AT91_PIN_PA15) |
  252. + pin_to_mask(AT91_PIN_PA17) |
  253. + pin_to_mask(AT91_PIN_PA25) |
  254. + pin_to_mask(AT91_PIN_PA26) |
  255. + pin_to_mask(AT91_PIN_PA28),
  256. + pin_to_controller(AT91_PIN_PA0) + PIO_PUDR);
  257. +
  258. + rstc = at91_sys_read(AT91_RSTC_MR) & AT91_RSTC_ERSTL;
  259. +
  260. + at91_sys_write(AT91_RSTC_CR, AT91_RSTC_KEY | AT91_RSTC_EXTRST);
  261. +
  262. + /* Wait for end hardware reset */
  263. + while (!(at91_sys_read(AT91_RSTC_SR) & AT91_RSTC_NRSTL));
  264. +
  265. + /* Restore NRST value */
  266. + at91_sys_write(AT91_RSTC_MR, AT91_RSTC_KEY |
  267. + (rstc) |
  268. + AT91_RSTC_URSTEN);
  269. +
  270. + /* Re-enable pull-up */
  271. + writel(pin_to_mask(AT91_PIN_PA14) |
  272. + pin_to_mask(AT91_PIN_PA15) |
  273. + pin_to_mask(AT91_PIN_PA17) |
  274. + pin_to_mask(AT91_PIN_PA25) |
  275. + pin_to_mask(AT91_PIN_PA26) |
  276. + pin_to_mask(AT91_PIN_PA28),
  277. + pin_to_controller(AT91_PIN_PA0) + PIO_PUER);
  278. +
  279. + at91_macb_hw_init();
  280. +}
  281. +#endif
  282. +
  283. +int board_init(void)
  284. +{
  285. + /* Enable Ctrlc */
  286. + console_init_f();
  287. +
  288. + gd->bd->bi_arch_number = MACH_TYPE_AT91SAM9G20EK;
  289. +
  290. + /* adress of boot parameters */
  291. + gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
  292. +
  293. + at91_serial_hw_init();
  294. +#ifdef CONFIG_HAS_DATAFLASH
  295. + at91_spi0_hw_init((1 << 0) | (1 << 1));
  296. +#endif
  297. +#ifdef CONFIG_MACB
  298. + at91sam9260ek_macb_hw_init();
  299. +#endif
  300. +
  301. + return 0;
  302. +}
  303. +
  304. +int dram_init(void)
  305. +{
  306. + gd->bd->bi_dram[0].start = PHYS_SDRAM;
  307. + gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
  308. + return 0;
  309. +}
  310. +
  311. +#ifdef CONFIG_RESET_PHY_R
  312. +void reset_phy(void)
  313. +{
  314. +#ifdef CONFIG_MACB
  315. + /*
  316. + * Initialize ethernet HW addr prior to starting Linux,
  317. + * needed for nfsroot
  318. + */
  319. + eth_init(gd->bd);
  320. +#endif
  321. +}
  322. +#endif
  323. +
  324. +int board_eth_init(bd_t *bis)
  325. +{
  326. + int rc = 0;
  327. +#ifdef CONFIG_MACB
  328. + rc = macb_eth_initialize(0, (void *)AT91SAM9260_BASE_EMAC, 0x00);
  329. +#endif
  330. + return rc;
  331. +}
  332. +
  333. +void show_boot_progress (int val){}
  334. diff --git a/board/acmesystems/netusg20/partition.c b/board/acmesystems/netusg20/partition.c
  335. new file mode 100644
  336. index 0000000..7d79e53
  337. --- /dev/null
  338. +++ b/board/acmesystems/netusg20/partition.c
  339. @@ -0,0 +1,39 @@
  340. +/*
  341. + * (C) Copyright 2008
  342. + * Ulf Samuelsson <ulf@atmel.com>
  343. + *
  344. + * This program is free software; you can redistribute it and/or
  345. + * modify it under the terms of the GNU General Public License as
  346. + * published by the Free Software Foundation; either version 2 of
  347. + * the License, or (at your option) any later version.
  348. + *
  349. + * This program is distributed in the hope that it will be useful,
  350. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  351. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  352. + * GNU General Public License for more details.
  353. + *
  354. + * You should have received a copy of the GNU General Public License
  355. + * along with this program; if not, write to the Free Software
  356. + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  357. + * MA 02111-1307 USA
  358. + *
  359. + */
  360. +#include <common.h>
  361. +#include <config.h>
  362. +#include <asm/hardware.h>
  363. +#include <dataflash.h>
  364. +
  365. +AT91S_DATAFLASH_INFO dataflash_info[CONFIG_SYS_MAX_DATAFLASH_BANKS];
  366. +
  367. +struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS] = {
  368. + {CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1, 1}
  369. +};
  370. +
  371. +/*define the area offsets*/
  372. +dataflash_protect_t area_list[NB_DATAFLASH_AREA] = {
  373. + {0x00000000, 0x000041FF, FLAG_PROTECT_SET, 0, "Bootstrap"},
  374. + {0x00004200, 0x000083FF, FLAG_PROTECT_CLEAR, 0, "Environment"},
  375. + {0x00008400, 0x00041FFF, FLAG_PROTECT_SET, 0, "U-Boot"},
  376. + {0x00042000, 0x00251FFF, FLAG_PROTECT_CLEAR, 0, "Kernel"},
  377. + {0x00252000, 0xFFFFFFFF, FLAG_PROTECT_CLEAR, 0, "FS"},
  378. +};
  379. diff --git a/include/configs/netusg20.h b/include/configs/netusg20.h
  380. new file mode 100644
  381. index 0000000..99b4f12
  382. --- /dev/null
  383. +++ b/include/configs/netusg20.h
  384. @@ -0,0 +1,181 @@
  385. +/*
  386. + * (C) Copyright 2007-2008
  387. + * Stelian Pop <stelian.pop@leadtechdesign.com>
  388. + * Lead Tech Design <www.leadtechdesign.com>
  389. + *
  390. + * Configuation settings for the NetusG20 boards.
  391. + *
  392. + * See file CREDITS for list of people who contributed to this
  393. + * project.
  394. + *
  395. + * This program is free software; you can redistribute it and/or
  396. + * modify it under the terms of the GNU General Public License as
  397. + * published by the Free Software Foundation; either version 2 of
  398. + * the License, or (at your option) any later version.
  399. + *
  400. + * This program is distributed in the hope that it will be useful,
  401. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  402. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  403. + * GNU General Public License for more details.
  404. + *
  405. + * You should have received a copy of the GNU General Public License
  406. + * along with this program; if not, write to the Free Software
  407. + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  408. + * MA 02111-1307 USA
  409. + */
  410. +
  411. +#ifndef __CONFIG_H
  412. +#define __CONFIG_H
  413. +
  414. +#define CONFIG_AT91_LEGACY
  415. +
  416. +/* ARM asynchronous clock */
  417. +#define CONFIG_SYS_AT91_MAIN_CLOCK 18432000 /* 18.432 MHz crystal */
  418. +#define CONFIG_SYS_HZ 1000
  419. +
  420. +#define CONFIG_DISPLAY_CPUINFO
  421. +
  422. +#define CONFIG_ARM926EJS 1 /* This is an ARM926EJS Core */
  423. +#define CONFIG_AT91SAM9G20 1 /* It's an Atmel AT91SAM9G20 SoC*/
  424. +#define CONFIG_NETUSG20 1
  425. +
  426. +#define CONFIG_ARCH_CPU_INIT
  427. +#undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */
  428. +
  429. +#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
  430. +#define CONFIG_SETUP_MEMORY_TAGS 1
  431. +#define CONFIG_INITRD_TAG 1
  432. +
  433. +#define CONFIG_SKIP_LOWLEVEL_INIT
  434. +#define CONFIG_SKIP_RELOCATE_UBOOT
  435. +
  436. +/*
  437. + * Hardware drivers
  438. + */
  439. +#define CONFIG_AT91_GPIO 1
  440. +#define CONFIG_ATMEL_USART 1
  441. +#undef CONFIG_USART0
  442. +#undef CONFIG_USART1
  443. +#undef CONFIG_USART2
  444. +#define CONFIG_USART3 1 /* USART 3 is DBGU */
  445. +
  446. +/* LED */
  447. +#define CONFIG_AT91_LED
  448. +#define CONFIG_RED_LED AT91_PIN_PA9 /* this is the power led */
  449. +#define CONFIG_GREEN_LED AT91_PIN_PA6 /* this is the user led */
  450. +
  451. +#define CONFIG_BOOTDELAY 3
  452. +
  453. +/*
  454. + * BOOTP options
  455. + */
  456. +#define CONFIG_BOOTP_BOOTFILESIZE 1
  457. +#define CONFIG_BOOTP_BOOTPATH 1
  458. +#define CONFIG_BOOTP_GATEWAY 1
  459. +#define CONFIG_BOOTP_HOSTNAME 1
  460. +
  461. +/*
  462. + * Command line configuration.
  463. + */
  464. +#include <config_cmd_default.h>
  465. +#undef CONFIG_CMD_BDI
  466. +#undef CONFIG_CMD_FPGA
  467. +#undef CONFIG_CMD_IMI
  468. +#undef CONFIG_CMD_IMLS
  469. +#undef CONFIG_CMD_LOADS
  470. +#undef CONFIG_CMD_SOURCE
  471. +
  472. +#define CONFIG_CMD_PING 1
  473. +#define CONFIG_CMD_DHCP 1
  474. +#define CONFIG_CMD_USB 1
  475. +
  476. +/* SDRAM */
  477. +#define CONFIG_NR_DRAM_BANKS 1
  478. +#define PHYS_SDRAM 0x20000000
  479. +#define PHYS_SDRAM_SIZE 0x04000000 /* 64 megs */
  480. +
  481. +/* DataFlash */
  482. +#define CONFIG_ATMEL_DATAFLASH_SPI
  483. +#define CONFIG_HAS_DATAFLASH 1
  484. +#define CONFIG_SYS_SPI_WRITE_TOUT (5*CONFIG_SYS_HZ)
  485. +#define CONFIG_SYS_MAX_DATAFLASH_BANKS 1
  486. +#define CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1 0xD0000000 /* CS1 */
  487. +#define AT91_SPI_CLK 15000000
  488. +
  489. +#define DATAFLASH_TCSS (0x22 << 16)
  490. +#define DATAFLASH_TCHS (0x1 << 24)
  491. +
  492. +/* no NAND flash on this board*/
  493. +#define CONFIG_SYS_NO_FLASH
  494. +
  495. +/* Ethernet */
  496. +#define CONFIG_MACB 1
  497. +#define CONFIG_RMII 1
  498. +#define CONFIG_NET_MULTI 1
  499. +#define CONFIG_NET_RETRY_COUNT 20
  500. +#define CONFIG_RESET_PHY_R 1
  501. +
  502. +/* MMC */
  503. +#define CONFIG_MMC
  504. +#define CONFIG_CMD_MMC
  505. +#define CONFIG_ATMEL_MCI
  506. +#define CONFIG_CMD_AUTOSCRIPT
  507. +#define CONFIG_CMD_IMI
  508. +#define CONFIG_CMD_SOURCE
  509. +
  510. +#define MMCI_BASE 0xFFFA8000
  511. +
  512. +/* USB */
  513. +#define CONFIG_USB_ATMEL
  514. +#define CONFIG_USB_OHCI_NEW 1
  515. +#define CONFIG_DOS_PARTITION 1
  516. +#define CONFIG_SYS_USB_OHCI_CPU_INIT 1
  517. +#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x00500000 /* AT91SAM9260_UHP_BASE */
  518. +#define CONFIG_SYS_USB_OHCI_SLOT_NAME "at91sam9260"
  519. +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2
  520. +#define CONFIG_USB_STORAGE 1
  521. +
  522. +#define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */
  523. +
  524. +#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM
  525. +#define CONFIG_SYS_MEMTEST_END 0x23e00000
  526. +
  527. +/* Filesystem */
  528. +#define CONFIG_CMD_FAT 1
  529. +#define CONFIG_CMD_EXT2 1
  530. +
  531. +/* bootstrap + u-boot + env + linux in dataflash on CS1 */
  532. +#define CONFIG_ENV_IS_IN_DATAFLASH 1
  533. +#define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1 + 0x8400)
  534. +#define CONFIG_ENV_OFFSET 0x4200
  535. +#define CONFIG_ENV_ADDR (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS1 + CONFIG_ENV_OFFSET)
  536. +#define CONFIG_ENV_SIZE 0x4200
  537. +#define CONFIG_BOOTCOMMAND "mmc init; sleep 1; " \
  538. + "ext2load mmc 0 0x20000000 uImage; " \
  539. + "source 0x20000000"
  540. +#define CONFIG_BOOTARGS "mem=64M console=ttyS0,115200 " \
  541. + "root=/dev/mmcblk0p1 rootwait"
  542. +
  543. +#define CONFIG_BAUDRATE 115200
  544. +#define CONFIG_SYS_BAUDRATE_TABLE {115200 , 19200, 38400, 57600, 9600 }
  545. +
  546. +#define CONFIG_SYS_PROMPT "U-Boot> "
  547. +#define CONFIG_SYS_CBSIZE 256
  548. +#define CONFIG_SYS_MAXARGS 16
  549. +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  550. +#define CONFIG_SYS_LONGHELP 1
  551. +#define CONFIG_CMDLINE_EDITING 1
  552. +
  553. +/*
  554. + * Size of malloc() pool
  555. + */
  556. +#define CONFIG_SYS_MALLOC_LEN ROUND(3 * CONFIG_ENV_SIZE + 128*1024, 0x1000)
  557. +#define CONFIG_SYS_GBL_DATA_SIZE 128 /* 128 bytes for initial data */
  558. +
  559. +#define CONFIG_STACKSIZE (32*1024) /* regular stack */
  560. +
  561. +#ifdef CONFIG_USE_IRQ
  562. +#error CONFIG_USE_IRQ not supported
  563. +#endif
  564. +
  565. +#endif
  566. --
  567. 1.7.0.4