2 * (C) Copyright 2004, Li-Pro.Net <www.li-pro.net>
3 * Stephan Linz <linz@li-pro.net>
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 #if defined(CONFIG_HW_WATCHDOG)
29 extern void ssv_wd_pio_init(void); /* comes from ../common/wd_pio.c
30 included by ./misc.c */
33 void _default_hdlr (void)
35 printf ("default_hdlr\n");
38 int board_early_init_f (void)
40 #if defined(CONFIG_HW_WATCHDOG)
48 puts ( "Board: SSV DilNetPC ADNP/ESC1"
49 #if defined(CONFIG_DNPEVA2)
53 #if defined(CONFIG_NIOS_BASE_32)
54 puts ("Conf.: SSV Base 32 (nios_32)\n");
60 long int initdram (int board_type)
66 * The following are used to control the SPI chip selects for the SPI command.
68 #if (CONFIG_COMMANDS & CFG_CMD_SPI) && CONFIG_NIOS_SPI
70 #define SPI_RTC_CS_MASK 0x00000001
72 void spi_rtc_chipsel(int cs)
74 nios_spi_t *spi = (nios_spi_t *)CFG_NIOS_SPIBASE;
77 spi->slaveselect = SPI_RTC_CS_MASK; /* activate (1) */
79 spi->slaveselect = 0; /* deactivate (0) */
83 * The SPI command uses this table of functions for controlling the SPI
84 * chip selects: it calls the appropriate function to control the SPI
87 spi_chipsel_type spi_chipsel[] = {
90 int spi_chipsel_cnt = sizeof(spi_chipsel) / sizeof(spi_chipsel[0]);
92 #endif /* CFG_CMD_SPI */
94 #if defined(CONFIG_POST)
96 * Returns 1 if keys pressed to start the power-on long-running tests
97 * Called from board_init_f().
99 int post_hotkeys_pressed(void)
101 return 0; /* No hotkeys supported */
103 #endif /* CONFIG_POST */