blob: 1b00f08835cce0f8929d20847fe0b85b02776722 [file] [log] [blame]
Ilko Iliev8b954a92009-04-16 21:30:48 +02001/*
2 * (C) Copyright 2007-2008
Stelian Pop5ee0c7f2011-11-01 00:00:39 +01003 * Stelian Pop <stelian@popies.net>
Ilko Iliev8b954a92009-04-16 21:30:48 +02004 * Lead Tech Design <www.leadtechdesign.com>
5 * Copyright (C) 2008 Ronetix Ilko Iliev (www.ronetix.at)
6 * Copyright (C) 2009 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
7 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Ilko Iliev8b954a92009-04-16 21:30:48 +02009 */
10
11#include <common.h>
Alexey Brodkin267d8e22014-02-26 17:47:58 +040012#include <linux/sizes.h>
Asen Dimove1002e22011-06-08 22:01:16 +000013#include <asm/io.h>
Andreas Bießmanna4c24d32013-11-29 12:13:45 +010014#include <asm/gpio.h>
Ilko Iliev8b954a92009-04-16 21:30:48 +020015#include <asm/arch/at91sam9_smc.h>
16#include <asm/arch/at91_common.h>
17#include <asm/arch/at91_pmc.h>
18#include <asm/arch/at91_rstc.h>
Asen Dimove7480ad2010-04-19 14:18:43 +030019#include <asm/arch/at91_matrix.h>
Ilko Iliev8b954a92009-04-16 21:30:48 +020020#include <asm/arch/clk.h>
Asen Dimove1002e22011-06-08 22:01:16 +000021#include <asm/arch/gpio.h>
Ilko Iliev8b954a92009-04-16 21:30:48 +020022#include <lcd.h>
23#include <atmel_lcdc.h>
24#include <dataflash.h>
25#if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB)
26#include <net.h>
27#endif
28#include <netdev.h>
29
30DECLARE_GLOBAL_DATA_PTR;
31
32/* ------------------------------------------------------------------------- */
33/*
34 * Miscelaneous platform dependent initialisations
35 */
36
37#ifdef CONFIG_CMD_NAND
38static void pm9263_nand_hw_init(void)
39{
40 unsigned long csa;
Asen Dimove1002e22011-06-08 22:01:16 +000041 struct at91_smc *smc = (struct at91_smc *)ATMEL_BASE_SMC0;
42 struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX;
Ilko Iliev8b954a92009-04-16 21:30:48 +020043
44 /* Enable CS3 */
Asen Dimove7480ad2010-04-19 14:18:43 +030045 csa = readl(&matrix->csa[0]) | AT91_MATRIX_CSA_EBI_CS3A;
46 writel(csa, &matrix->csa[0]);
Ilko Iliev8b954a92009-04-16 21:30:48 +020047
48 /* Configure SMC CS3 for NAND/SmartMedia */
Asen Dimove7480ad2010-04-19 14:18:43 +030049 writel(AT91_SMC_SETUP_NWE(1) | AT91_SMC_SETUP_NCS_WR(1) |
50 AT91_SMC_SETUP_NRD(1) | AT91_SMC_SETUP_NCS_RD(1),
51 &smc->cs[3].setup);
52
53 writel(AT91_SMC_PULSE_NWE(3) | AT91_SMC_PULSE_NCS_WR(3) |
54 AT91_SMC_PULSE_NRD(3) | AT91_SMC_PULSE_NCS_RD(3),
55 &smc->cs[3].pulse);
56
57 writel(AT91_SMC_CYCLE_NWE(5) | AT91_SMC_CYCLE_NRD(5),
58 &smc->cs[3].cycle);
59
60 writel(AT91_SMC_MODE_RM_NRD | AT91_SMC_MODE_WM_NWE |
61 AT91_SMC_MODE_EXNW_DISABLE |
Ilko Iliev8b954a92009-04-16 21:30:48 +020062#ifdef CONFIG_SYS_NAND_DBW_16
Asen Dimove7480ad2010-04-19 14:18:43 +030063 AT91_SMC_MODE_DBW_16 |
Ilko Iliev8b954a92009-04-16 21:30:48 +020064#else /* CONFIG_SYS_NAND_DBW_8 */
Asen Dimove7480ad2010-04-19 14:18:43 +030065 AT91_SMC_MODE_DBW_8 |
Ilko Iliev8b954a92009-04-16 21:30:48 +020066#endif
Asen Dimove7480ad2010-04-19 14:18:43 +030067 AT91_SMC_MODE_TDF_CYCLE(2),
68 &smc->cs[3].mode);
Ilko Iliev8b954a92009-04-16 21:30:48 +020069
70 /* Configure RDY/BSY */
Andreas Bießmanna4c24d32013-11-29 12:13:45 +010071 gpio_direction_input(CONFIG_SYS_NAND_READY_PIN);
Ilko Iliev8b954a92009-04-16 21:30:48 +020072
73 /* Enable NandFlash */
Andreas Bießmanna4c24d32013-11-29 12:13:45 +010074 gpio_direction_output(CONFIG_SYS_NAND_ENABLE_PIN, 1);
Ilko Iliev8b954a92009-04-16 21:30:48 +020075}
76#endif
77
78#ifdef CONFIG_MACB
79static void pm9263_macb_hw_init(void)
80{
Asen Dimove1002e22011-06-08 22:01:16 +000081 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
Asen Dimove7480ad2010-04-19 14:18:43 +030082
Ilko Iliev8b954a92009-04-16 21:30:48 +020083 /*
84 * PB27 enables the 50MHz oscillator for Ethernet PHY
85 * 1 - enable
86 * 0 - disable
87 */
Asen Dimove7480ad2010-04-19 14:18:43 +030088 at91_set_pio_output(AT91_PIO_PORTB, 27, 1);
89 at91_set_pio_value(AT91_PIO_PORTB, 27, 1); /* 1- enable, 0 - disable */
Ilko Iliev8b954a92009-04-16 21:30:48 +020090
91 /* Enable clock */
Asen Dimove1002e22011-06-08 22:01:16 +000092 writel(1 << ATMEL_ID_EMAC, &pmc->pcer);
Ilko Iliev8b954a92009-04-16 21:30:48 +020093
94 /*
95 * Disable pull-up on:
96 * RXDV (PC25) => PHY normal mode (not Test mode)
97 * ERX0 (PE25) => PHY ADDR0
98 * ERX1 (PE26) => PHY ADDR1 => PHYADDR = 0x0
99 *
100 * PHY has internal pull-down
101 */
Ilko Iliev8b954a92009-04-16 21:30:48 +0200102
Asen Dimove7480ad2010-04-19 14:18:43 +0300103 at91_set_pio_pullup(AT91_PIO_PORTC, 25, 0);
104 at91_set_pio_pullup(AT91_PIO_PORTE, 25, 0);
105 at91_set_pio_pullup(AT91_PIO_PORTE, 26, 0);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200106
107 /* Re-enable pull-up */
Asen Dimove7480ad2010-04-19 14:18:43 +0300108 at91_set_pio_pullup(AT91_PIO_PORTC, 25, 1);
109 at91_set_pio_pullup(AT91_PIO_PORTE, 25, 1);
110 at91_set_pio_pullup(AT91_PIO_PORTE, 26, 1);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200111
112 at91_macb_hw_init();
113}
114#endif
115
116#ifdef CONFIG_LCD
117vidinfo_t panel_info = {
Jeroen Hofstee4ea14f42014-06-10 23:12:04 +0200118 .vl_col = 240,
119 .vl_row = 320,
120 .vl_clk = 4965000,
121 .vl_sync = ATMEL_LCDC_INVLINE_INVERTED |
122 ATMEL_LCDC_INVFRAME_INVERTED,
123 .vl_bpix = 3,
124 .vl_tft = 1,
125 .vl_hsync_len = 5,
126 .vl_left_margin = 1,
127 .vl_right_margin = 33,
128 .vl_vsync_len = 1,
129 .vl_upper_margin = 1,
130 .vl_lower_margin = 0,
131 .mmio = ATMEL_BASE_LCDC,
Ilko Iliev8b954a92009-04-16 21:30:48 +0200132};
133
134void lcd_enable(void)
135{
Asen Dimove7480ad2010-04-19 14:18:43 +0300136 at91_set_pio_value(AT91_PIO_PORTA, 22, 1); /* power up */
Ilko Iliev8b954a92009-04-16 21:30:48 +0200137}
138
139void lcd_disable(void)
140{
Asen Dimove7480ad2010-04-19 14:18:43 +0300141 at91_set_pio_value(AT91_PIO_PORTA, 22, 0); /* power down */
Ilko Iliev8b954a92009-04-16 21:30:48 +0200142}
143
144#ifdef CONFIG_LCD_IN_PSRAM
145
Asen Dimove7480ad2010-04-19 14:18:43 +0300146#define PSRAM_CRE_PIN AT91_PIO_PORTB, 29
Ilko Iliev8b954a92009-04-16 21:30:48 +0200147#define PSRAM_CTRL_REG (PHYS_PSRAM + PHYS_PSRAM_SIZE - 2)
148
149/* Initialize the PSRAM memory */
150static int pm9263_lcd_hw_psram_init(void)
151{
Jean-Christophe PLAGNIOL-VILLARDb3d4b282009-06-12 21:20:37 +0200152 unsigned long csa;
Asen Dimove1002e22011-06-08 22:01:16 +0000153 struct at91_smc *smc = (struct at91_smc *)ATMEL_BASE_SMC1;
154 struct at91_matrix *matrix = (struct at91_matrix *)ATMEL_BASE_MATRIX;
Jean-Christophe PLAGNIOL-VILLARDb3d4b282009-06-12 21:20:37 +0200155
156 /* Enable CS3 3.3v, no pull-ups */
Asen Dimove7480ad2010-04-19 14:18:43 +0300157 csa = readl(&matrix->csa[1]) | AT91_MATRIX_CSA_DBPUC |
158 AT91_MATRIX_CSA_VDDIOMSEL_3_3V;
159
160 writel(csa, &matrix->csa[1]);
Jean-Christophe PLAGNIOL-VILLARDb3d4b282009-06-12 21:20:37 +0200161
162 /* Configure SMC1 CS0 for PSRAM - 16-bit */
Asen Dimove7480ad2010-04-19 14:18:43 +0300163 writel(AT91_SMC_SETUP_NWE(0) | AT91_SMC_SETUP_NCS_WR(0) |
164 AT91_SMC_SETUP_NRD(0) | AT91_SMC_SETUP_NCS_RD(0),
165 &smc->cs[0].setup);
166
167 writel(AT91_SMC_PULSE_NWE(7) | AT91_SMC_PULSE_NCS_WR(7) |
168 AT91_SMC_PULSE_NRD(2) | AT91_SMC_PULSE_NCS_RD(7),
169 &smc->cs[0].pulse);
170
171 writel(AT91_SMC_CYCLE_NWE(8) | AT91_SMC_CYCLE_NRD(8),
172 &smc->cs[0].cycle);
173
174 writel(AT91_SMC_MODE_DBW_16 | AT91_SMC_MODE_PMEN | AT91_SMC_MODE_PS_32,
175 &smc->cs[0].mode);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200176
177 /* setup PB29 as output */
Asen Dimove7480ad2010-04-19 14:18:43 +0300178 at91_set_pio_output(PSRAM_CRE_PIN, 1);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200179
Asen Dimove7480ad2010-04-19 14:18:43 +0300180 at91_set_pio_value(PSRAM_CRE_PIN, 0); /* set PSRAM_CRE_PIN to '0' */
Ilko Iliev8b954a92009-04-16 21:30:48 +0200181
182 /* PSRAM: write BCR */
Anatolij Gustschin55522b82011-11-19 13:12:11 +0000183 readw(PSRAM_CTRL_REG);
184 readw(PSRAM_CTRL_REG);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200185 writew(1, PSRAM_CTRL_REG); /* 0 - RCR,1 - BCR */
186 writew(0x9d4f, PSRAM_CTRL_REG); /* write the BCR */
187
188 /* write RCR of the PSRAM */
Anatolij Gustschin55522b82011-11-19 13:12:11 +0000189 readw(PSRAM_CTRL_REG);
190 readw(PSRAM_CTRL_REG);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200191 writew(0, PSRAM_CTRL_REG); /* 0 - RCR,1 - BCR */
192 /* set RCR; 0x10-async mode,0x90-page mode */
193 writew(0x90, PSRAM_CTRL_REG);
194
195 /*
196 * test to see if the PSRAM is MT45W2M16A or MT45W2M16B
197 * MT45W2M16B - CRE must be 0
198 * MT45W2M16A - CRE must be 1
199 */
200 writew(0x1234, PHYS_PSRAM);
201 writew(0x5678, PHYS_PSRAM + 2);
202
203 /* test if the chip is MT45W2M16B */
204 if ((readw(PHYS_PSRAM) != 0x1234) || (readw(PHYS_PSRAM+2) != 0x5678)) {
205 /* try with CRE=1 (MT45W2M16A) */
Asen Dimove7480ad2010-04-19 14:18:43 +0300206 at91_set_pio_value(PSRAM_CRE_PIN, 1); /* set PSRAM_CRE_PIN to '1' */
Ilko Iliev8b954a92009-04-16 21:30:48 +0200207
208 /* write RCR of the PSRAM */
Anatolij Gustschin55522b82011-11-19 13:12:11 +0000209 readw(PSRAM_CTRL_REG);
210 readw(PSRAM_CTRL_REG);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200211 writew(0, PSRAM_CTRL_REG); /* 0 - RCR,1 - BCR */
212 /* set RCR;0x10-async mode,0x90-page mode */
213 writew(0x90, PSRAM_CTRL_REG);
214
215
216 writew(0x1234, PHYS_PSRAM);
217 writew(0x5678, PHYS_PSRAM+2);
218 if ((readw(PHYS_PSRAM) != 0x1234)
Asen Dimove7480ad2010-04-19 14:18:43 +0300219 || (readw(PHYS_PSRAM + 2) != 0x5678))
Ilko Iliev8b954a92009-04-16 21:30:48 +0200220 return 1;
221
222 }
223
224 /* Bus matrix */
Asen Dimove7480ad2010-04-19 14:18:43 +0300225 writel(AT91_MATRIX_PRA_M5(3), &matrix->pr[5].a);
226 writel(CONFIG_PSRAM_SCFG, &matrix->scfg[5]);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200227
228 return 0;
229}
230#endif
231
232static void pm9263_lcd_hw_init(void)
233{
Asen Dimove1002e22011-06-08 22:01:16 +0000234 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
Ilko Iliev8b954a92009-04-16 21:30:48 +0200235
Asen Dimove7480ad2010-04-19 14:18:43 +0300236 at91_set_a_periph(AT91_PIO_PORTC, 0, 0); /* LCDVSYNC */
237 at91_set_a_periph(AT91_PIO_PORTC, 1, 0); /* LCDHSYNC */
238 at91_set_a_periph(AT91_PIO_PORTC, 2, 0); /* LCDDOTCK */
239 at91_set_a_periph(AT91_PIO_PORTC, 3, 0); /* LCDDEN */
240 at91_set_b_periph(AT91_PIO_PORTB, 9, 0); /* LCDCC */
241 at91_set_a_periph(AT91_PIO_PORTC, 6, 0); /* LCDD2 */
242 at91_set_a_periph(AT91_PIO_PORTC, 7, 0); /* LCDD3 */
243 at91_set_a_periph(AT91_PIO_PORTC, 8, 0); /* LCDD4 */
244 at91_set_a_periph(AT91_PIO_PORTC, 9, 0); /* LCDD5 */
245 at91_set_a_periph(AT91_PIO_PORTC, 10, 0); /* LCDD6 */
246 at91_set_a_periph(AT91_PIO_PORTC, 11, 0); /* LCDD7 */
247 at91_set_a_periph(AT91_PIO_PORTC, 14, 0); /* LCDD10 */
248 at91_set_a_periph(AT91_PIO_PORTC, 15, 0); /* LCDD11 */
249 at91_set_a_periph(AT91_PIO_PORTC, 16, 0); /* LCDD12 */
250 at91_set_b_periph(AT91_PIO_PORTC, 12, 0); /* LCDD13 */
251 at91_set_a_periph(AT91_PIO_PORTC, 18, 0); /* LCDD14 */
252 at91_set_a_periph(AT91_PIO_PORTC, 19, 0); /* LCDD15 */
253 at91_set_a_periph(AT91_PIO_PORTC, 22, 0); /* LCDD18 */
254 at91_set_a_periph(AT91_PIO_PORTC, 23, 0); /* LCDD19 */
255 at91_set_a_periph(AT91_PIO_PORTC, 24, 0); /* LCDD20 */
256 at91_set_b_periph(AT91_PIO_PORTC, 17, 0); /* LCDD21 */
257 at91_set_a_periph(AT91_PIO_PORTC, 26, 0); /* LCDD22 */
258 at91_set_a_periph(AT91_PIO_PORTC, 27, 0); /* LCDD23 */
259
Asen Dimove1002e22011-06-08 22:01:16 +0000260 writel(1 << ATMEL_ID_LCDC, &pmc->pcer);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200261
262 /* Power Control */
Asen Dimove7480ad2010-04-19 14:18:43 +0300263 at91_set_pio_output(AT91_PIO_PORTA, 22, 1);
264 at91_set_pio_value(AT91_PIO_PORTA, 22, 0); /* power down */
Ilko Iliev8b954a92009-04-16 21:30:48 +0200265
266#ifdef CONFIG_LCD_IN_PSRAM
267 /* initialize te PSRAM */
268 int stat = pm9263_lcd_hw_psram_init();
269
Asen Dimove1002e22011-06-08 22:01:16 +0000270 gd->fb_base = (stat == 0) ? PHYS_PSRAM : ATMEL_BASE_SRAM0;
Ilko Iliev8b954a92009-04-16 21:30:48 +0200271#else
Asen Dimove1002e22011-06-08 22:01:16 +0000272 gd->fb_base = ATMEL_BASE_SRAM0;
Ilko Iliev8b954a92009-04-16 21:30:48 +0200273#endif
274
275}
276
277#ifdef CONFIG_LCD_INFO
278#include <nand.h>
279#include <version.h>
280
281extern flash_info_t flash_info[];
282
283void lcd_show_board_info(void)
284{
285 ulong dram_size, nand_size, flash_size, dataflash_size;
286 int i;
287 char temp[32];
288
289 lcd_printf ("%s\n", U_BOOT_VERSION);
290 lcd_printf ("(C) 2009 Ronetix GmbH\n");
291 lcd_printf ("support@ronetix.at\n");
292 lcd_printf ("%s CPU at %s MHz",
Achim Ehrlich443873d2010-02-24 10:29:16 +0100293 CONFIG_SYS_AT91_CPU_NAME,
Ilko Iliev8b954a92009-04-16 21:30:48 +0200294 strmhz(temp, get_cpu_clk_rate()));
295
296 dram_size = 0;
297 for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
298 dram_size += gd->bd->bi_dram[i].size;
299
300 nand_size = 0;
301 for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
302 nand_size += nand_info[i].size;
303
304 flash_size = 0;
305 for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
306 flash_size += flash_info[i].size;
307
308 dataflash_size = 0;
309 for (i = 0; i < CONFIG_SYS_MAX_DATAFLASH_BANKS; i++)
310 dataflash_size += (unsigned int) dataflash_info[i].Device.pages_number *
311 dataflash_info[i].Device.pages_size;
312
313 lcd_printf ("%ld MB SDRAM, %ld MB NAND\n%ld MB NOR Flash\n"
314 "4 MB PSRAM, %ld MB DataFlash\n",
315 dram_size >> 20,
316 nand_size >> 20,
317 flash_size >> 20,
318 dataflash_size >> 20);
319}
320#endif /* CONFIG_LCD_INFO */
321
322#endif /* CONFIG_LCD */
323
Asen Dimovbd0f0232011-12-09 10:56:55 +0000324int board_early_init_f(void)
Ilko Iliev8b954a92009-04-16 21:30:48 +0200325{
Asen Dimove1002e22011-06-08 22:01:16 +0000326 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
Asen Dimove7480ad2010-04-19 14:18:43 +0300327
Asen Dimovbd0f0232011-12-09 10:56:55 +0000328 /* Enable clocks for all PIOs */
329 writel((1 << ATMEL_ID_PIOA) | (1 << ATMEL_ID_PIOB) |
330 (1 << ATMEL_ID_PIOCDE),
Asen Dimove7480ad2010-04-19 14:18:43 +0300331 &pmc->pcer);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200332
Asen Dimovbd0f0232011-12-09 10:56:55 +0000333 at91_seriald_hw_init();
334
335 return 0;
336}
337
338int board_init(void)
339{
340 /* arch number of AT91SAM9263EK-Board */
341 gd->bd->bi_arch_number = MACH_TYPE_PM9263;
342
Ilko Iliev8b954a92009-04-16 21:30:48 +0200343 /* adress of boot parameters */
344 gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
345
Ilko Iliev8b954a92009-04-16 21:30:48 +0200346#ifdef CONFIG_CMD_NAND
347 pm9263_nand_hw_init();
348#endif
349#ifdef CONFIG_HAS_DATAFLASH
350 at91_spi0_hw_init(1 << 0);
351#endif
352#ifdef CONFIG_MACB
353 pm9263_macb_hw_init();
354#endif
355#ifdef CONFIG_USB_OHCI_NEW
356 at91_uhp_hw_init();
357#endif
358#ifdef CONFIG_LCD
359 pm9263_lcd_hw_init();
360#endif
361 return 0;
362}
363
364int dram_init(void)
365{
Asen Dimov84ea97c2010-12-12 12:41:59 +0200366 /* dram_init must store complete ramsize in gd->ram_size */
Albert ARIBAUDa9606732011-07-03 05:55:33 +0000367 gd->ram_size = get_ram_size((void *)PHYS_SDRAM,
Asen Dimov84ea97c2010-12-12 12:41:59 +0200368 PHYS_SDRAM_SIZE);
369 return 0;
370}
371
372void dram_init_banksize(void)
373{
Ilko Iliev8b954a92009-04-16 21:30:48 +0200374 gd->bd->bi_dram[0].start = PHYS_SDRAM;
375 gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE;
Ilko Iliev8b954a92009-04-16 21:30:48 +0200376}
377
378#ifdef CONFIG_RESET_PHY_R
379void reset_phy(void)
380{
Ilko Iliev8b954a92009-04-16 21:30:48 +0200381}
382#endif
383
384int board_eth_init(bd_t *bis)
385{
386 int rc = 0;
387#ifdef CONFIG_MACB
Asen Dimove1002e22011-06-08 22:01:16 +0000388 rc = macb_eth_initialize(0, (void *)ATMEL_BASE_EMAC, 0x01);
Ilko Iliev8b954a92009-04-16 21:30:48 +0200389#endif
390 return rc;
391}
392
393#ifdef CONFIG_DISPLAY_BOARDINFO
394int checkboard (void)
395{
396 char *ss;
Ilko Iliev8b954a92009-04-16 21:30:48 +0200397
398 printf ("Board : Ronetix PM9263\n");
Ilko Iliev8b954a92009-04-16 21:30:48 +0200399
400 switch (gd->fb_base) {
401 case PHYS_PSRAM:
402 ss = "(PSRAM)";
403 break;
404
Asen Dimove1002e22011-06-08 22:01:16 +0000405 case ATMEL_BASE_SRAM0:
Ilko Iliev8b954a92009-04-16 21:30:48 +0200406 ss = "(Internal SRAM)";
407 break;
408
409 default:
410 ss = "";
411 break;
412 }
413 printf("Video memory : 0x%08lX %s\n", gd->fb_base, ss );
414
415 printf ("\n");
416 return 0;
417}
418#endif