• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiónf01c5d4b1f87f14690dd9a557f62eacef3abdedd (tree)
Tiempo2016-05-22 15:07:44
AutorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

sh: Remove arch specific board.c

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Cambiar Resumen

Diferencia incremental

--- a/arch/sh/lib/Makefile
+++ b/arch/sh/lib/Makefile
@@ -6,7 +6,6 @@
66 #
77
88
9-obj-y += board.o
109 obj-$(CONFIG_CMD_BOOTM) += bootm.o
1110 ifneq ($(CONFIG_TIMER)$(CONFIG_SPL_BUILD),y)
1211 ifeq ($(CONFIG_CPU_SH2),y)
--- a/arch/sh/lib/board.c
+++ /dev/null
@@ -1,222 +0,0 @@
1-/*
2- * Copyright (C) 2007, 2008, 2010
3- * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4- *
5- * SPDX-License-Identifier: GPL-2.0+
6- */
7-
8-#include <common.h>
9-#include <command.h>
10-#include <console.h>
11-#include <malloc.h>
12-#include <stdio_dev.h>
13-#include <version.h>
14-#include <watchdog.h>
15-#include <net.h>
16-#include <mmc.h>
17-#include <environment.h>
18-#include <spl.h>
19-#include <asm/io.h>
20-#include <initcall.h>
21-
22-#ifdef CONFIG_BITBANGMII
23-#include <miiphy.h>
24-#endif
25-
26-DECLARE_GLOBAL_DATA_PTR;
27-
28-extern int cpu_init(void);
29-extern int board_init(void);
30-extern int dram_init(void);
31-extern int timer_init(void);
32-
33-unsigned long monitor_flash_len = CONFIG_SYS_MONITOR_LEN;
34-
35-#ifndef CONFIG_SYS_NO_FLASH
36-static int sh_flash_init(void)
37-{
38- gd->bd->bi_flashsize = flash_init();
39-
40- if (gd->bd->bi_flashsize >= (1024 * 1024))
41- printf("Flash: %ldMB\n", gd->bd->bi_flashsize / (1024*1024));
42- else
43- printf("Flash: %ldKB\n", gd->bd->bi_flashsize / 1024);
44-
45- return 0;
46-}
47-#endif /* CONFIG_SYS_NO_FLASH */
48-
49-#if defined(CONFIG_CMD_NAND)
50-# include <nand.h>
51-# define INIT_FUNC_NAND_INIT nand_init,
52-#else
53-# define INIT_FUNC_NAND_INIT
54-#endif /* CONFIG_CMD_NAND */
55-
56-#if defined(CONFIG_WATCHDOG)
57-extern int watchdog_init(void);
58-extern int watchdog_disable(void);
59-# undef INIT_FUNC_WATCHDOG_INIT
60-# define INIT_FUNC_WATCHDOG_INIT watchdog_init,
61-# define WATCHDOG_DISABLE watchdog_disable
62-#else
63-# define INIT_FUNC_WATCHDOG_INIT
64-# define WATCHDOG_DISABLE
65-#endif /* CONFIG_WATCHDOG */
66-
67-#ifndef CONFIG_SYS_GENERIC_BOARD
68-#if defined(CONFIG_PCI)
69-#include <pci.h>
70-static int sh_pci_init(void)
71-{
72-#ifndef CONFIG_SPL_BUILD
73- pci_init();
74-#endif
75- return 0;
76-}
77-# define INIT_FUNC_PCI_INIT sh_pci_init,
78-#else
79-# define INIT_FUNC_PCI_INIT
80-#endif /* CONFIG_PCI */
81-
82-static int sh_mem_env_init(void)
83-{
84- mem_malloc_init(CONFIG_SYS_TEXT_BASE - GENERATED_GBL_DATA_SIZE -
85- CONFIG_SYS_MALLOC_LEN, CONFIG_SYS_MALLOC_LEN - 16);
86- env_relocate();
87- jumptable_init();
88- return 0;
89-}
90-
91-#if defined(CONFIG_CMD_MMC)
92-static int sh_mmc_init(void)
93-{
94- puts("MMC: ");
95- mmc_initialize(gd->bd);
96- return 0;
97-}
98-#endif
99-
100-static const init_fnc_t init_sequence[] =
101-{
102- cpu_init, /* basic cpu dependent setup */
103- board_init, /* basic board dependent setup */
104- interrupt_init, /* set up exceptions */
105- env_init, /* event init */
106- serial_init, /* SCIF init */
107- INIT_FUNC_WATCHDOG_INIT /* watchdog init */
108- console_init_f,
109- display_options,
110- checkcpu,
111- checkboard, /* Check support board */
112- dram_init, /* SDRAM init */
113- timer_init, /* SuperH Timer (TCNT0 only) init */
114- sh_mem_env_init,
115-#ifndef CONFIG_SYS_NO_FLASH
116- sh_flash_init, /* Flash memory init*/
117-#endif
118- INIT_FUNC_NAND_INIT/* Flash memory (NAND) init */
119- INIT_FUNC_PCI_INIT /* PCI init */
120- stdio_init,
121- console_init_r,
122- interrupt_init,
123-#ifdef CONFIG_BOARD_LATE_INIT
124- board_late_init,
125-#endif
126-#if defined(CONFIG_CMD_MMC)
127- sh_mmc_init,
128-#endif
129- NULL /* Terminate this list */
130-};
131-
132-void sh_generic_init(void)
133-{
134- bd_t *bd;
135-
136- memset(gd, 0, GENERATED_GBL_DATA_SIZE);
137-
138- gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */
139-
140- gd->bd = (bd_t *)(gd + 1); /* At end of global data */
141- gd->baudrate = CONFIG_BAUDRATE;
142-
143- gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
144-
145- bd = gd->bd;
146- bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
147- bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
148-#ifndef CONFIG_SYS_NO_FLASH
149- bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
150-#endif
151-#if defined(CONFIG_SYS_SRAM_BASE) && defined(CONFIG_SYS_SRAM_SIZE)
152- bd->bi_sramstart = CONFIG_SYS_SRAM_BASE;
153- bd->bi_sramsize = CONFIG_SYS_SRAM_SIZE;
154-#endif
155-
156- if (initcall_run_list(init_sequence))
157- hang();
158-
159-#ifdef CONFIG_WATCHDOG
160- /* disable watchdog if environment is set */
161- {
162- char *s = getenv("watchdog");
163- if (s != NULL)
164- if (strncmp(s, "off", 3) == 0)
165- WATCHDOG_DISABLE();
166- }
167-#endif /* CONFIG_WATCHDOG*/
168-
169-#ifdef CONFIG_BITBANGMII
170- bb_miiphy_init();
171-#endif
172-#if defined(CONFIG_CMD_NET)
173- puts("Net: ");
174- eth_initialize();
175-#endif /* CONFIG_CMD_NET */
176-
177- while (1) {
178- WATCHDOG_RESET();
179- main_loop();
180- }
181-}
182-#endif
183-
184-int arch_cpu_init(void)
185-{
186-#ifndef CONFIG_SYS_GENERIC_BOARD
187- memset((void *)gd, '\0', sizeof(gd_t));
188-#endif
189- gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
190- gd->cpu_clk = CONFIG_SYS_CLK_FREQ;
191- gd->flags |= GD_FLG_SKIP_RELOC;
192- return 0;
193-}
194-
195-void relocate_code(ulong sp, gd_t *new_gd, ulong reloc)
196-{
197- for(;;);
198-}
199-
200-#ifdef CONFIG_SPL_BUILD
201-static init_fnc_t spl_init_sequence[] =
202-{
203- cpu_init, /* basic cpu dependent setup */
204- board_init, /* basic board dependent setup */
205- interrupt_init, /* set up exceptions */
206- dram_init, /* SDRAM init */
207- timer_init,
208- NULL /* Terminate this list */
209-};
210-
211-void board_init_f(ulong dummy)
212-{
213- if (initcall_run_list(spl_init_sequence))
214- hang();
215-#ifdef CONFIG_SPL_SERIAL_SUPPORT
216- preloader_console_init();
217-#endif
218-#ifdef CONFIG_SPL_IDE_SUPPORT
219- ide_init();
220-#endif
221-}
222-#endif