• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

コミットメタ情報

リビジョンef8f94832bbe5792d2f1e4f14edefd29ccbbe8d2 (tree)
日時2016-03-23 02:49:56
作者Yoshinori Sato <ysato@user...>
コミッターYoshinori Sato

ログメッセージ

sh: landisk support update.

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

変更サマリ

差分

--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -115,6 +115,11 @@ config TARGET_SH7785LCR
115115 bool "SH7785LCR"
116116 select CPU_SH4A
117117
118+config TARGET_LANDISK
119+ bool "I/O DATA LANDISK"
120+ select CPU_SH4
121+ select SPL
122+
118123 endchoice
119124
120125 config SYS_ARCH
@@ -146,5 +151,6 @@ source "board/renesas/sh7757lcr/Kconfig"
146151 source "board/renesas/sh7763rdp/Kconfig"
147152 source "board/renesas/sh7785lcr/Kconfig"
148153 source "board/shmin/Kconfig"
154+source "board/landisk/Kconfig"
149155
150156 endmenu
--- a/arch/sh/config.mk
+++ b/arch/sh/config.mk
@@ -18,6 +18,8 @@ CONFIG_STANDALONE_LOAD_ADDR += -m2a-nofpu
1818 endif
1919
2020 PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
21+ifdef CONFIG_SYS_TEXT_BASE
2122 PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
23+endif
2224 LDFLAGS_FINAL = --gc-sections
2325 PLATFORM_RELFLAGS += -ffixed-r13
--- a/arch/sh/include/asm/spl.h
+++ b/arch/sh/include/asm/spl.h
@@ -7,6 +7,6 @@
77 #ifndef _ASM_SPL_H_
88 #define _ASM_SPL_H_
99
10-#define BOOT_DEVICE_IDE 0
10+#define BOOT_DEVICE_IDE 0x0001
1111
1212 #endif
--- a/arch/sh/lib/board.c
+++ b/arch/sh/lib/board.c
@@ -82,6 +82,7 @@ static int sh_mem_env_init(void)
8282 #ifndef CONFIG_SPL_BUILD
8383 mem_malloc_init(CONFIG_SYS_TEXT_BASE - GENERATED_GBL_DATA_SIZE -
8484 CONFIG_SYS_MALLOC_LEN, CONFIG_SYS_MALLOC_LEN - 16);
85+ gd->flags |= GD_FLG_FULL_MALLOC_INIT;
8586 env_relocate();
8687 jumptable_init();
8788 #endif
@@ -190,7 +191,11 @@ void sh_generic_init(void)
190191 main_loop();
191192 }
192193 #else
193-#ifdef COFIG_SPL_IDE_SUPPORT
194+ gd->malloc_base = CONFIG_SYS_SPL_MALLOC_START;
195+#ifdef CONFIG_SPL_SERIAL_SUPPORT
196+ preloader_console_init();
197+#endif
198+#ifdef CONFIG_SPL_IDE_SUPPORT
194199 ide_init();
195200 #endif
196201 board_init_r(gd, 0);
--- a/board/landisk/landisk.c
+++ b/board/landisk/landisk.c
@@ -39,6 +39,7 @@ static struct pci_controller hose;
3939 void pci_init_board(void)
4040 {
4141 pci_sh7751_init(&hose);
42+ __raw_writel(0xfe240000, 0xfe2001c8);
4243 }
4344
4445 int board_late_init(void)
@@ -55,9 +56,10 @@ int board_eth_init(bd_t *bis)
5556 }
5657
5758 #ifdef CONFIG_SPL_BUILD
59+#include <spl.h>
5860 u32 spl_boot_device(void)
5961 {
60- return 0;
62+ return BOOT_DEVICE_IDE;
6163 }
6264
6365 const char version_string[] = U_BOOT_VERSION_STRING;
@@ -85,4 +87,14 @@ void __raw_writesw(unsigned int addr, const void *data, int wordlen)
8587 void ide_set_reset(int idereset)
8688 {
8789 }
90+static int do_power_off(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
91+{
92+ __raw_writeb(0x01, 0xb0000003);
93+ return 0;
94+}
8895
96+U_BOOT_CMD(
97+ poff, 1, 1, do_power_off,
98+ "power off",
99+ ""
100+);
--- a/board/landisk/start_landisk.S
+++ b/board/landisk/start_landisk.S
@@ -20,7 +20,7 @@ _sh_start:
2020
2121 mov.l ._load,r15
2222 mov #2,r0
23- mov #63,r7
23+ mov #96,r7
2424 mov.l ._load,r6
2525 mov #1,r5
2626 mov #0x80,r4
--- a/include/configs/landisk.h
+++ b/include/configs/landisk.h
@@ -19,12 +19,7 @@
1919 /*
2020 * Command line configuration.
2121 */
22-#include <config_cmd_default.h>
23-#undef CONFIG_CMD_IMLS
24-#define CONFIG_CMD_NET
2522 #define CONFIG_CMD_IDE
26-#define CONFIG_FS_FAT
27-#define CONFIG_CMD_PCI
2823
2924 #define CONFIG_SCIF_CONSOLE 1
3025 #define CONFIG_BAUDRATE 115200
@@ -32,7 +27,7 @@
3227 #define CONFIG_BOARD_LATE_INIT
3328
3429 #define CONFIG_BOOTDELAY -1
35-#define CONFIG_BOOTARGS "console=ttySC0,38400"
30+#define CONFIG_BOOTARGS "console=ttySC1,115200"
3631 #define CONFIG_ENV_OVERWRITE 1
3732
3833 /* SDRAM */
@@ -52,7 +47,7 @@
5247 #define CONFIG_PCI_MEM_BUS 0xFD000000 /* Memory space base addr */
5348 #define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS
5449 #define CONFIG_PCI_MEM_SIZE 0x01000000 /* Size of Memory window */
55-#define CONFIG_PCI_IO_BUS 0x00001000 /* IO space base address */
50+#define CONFIG_PCI_IO_BUS 0xfe240000 /* IO space base address */
5651 #define CONFIG_PCI_IO_PHYS 0xfe240000
5752 #define CONFIG_PCI_IO_SIZE 0x00040000 /* Size of IO window */
5853 #define CONFIG_PCI_SYS_BUS (CONFIG_SYS_SDRAM_BASE & 0x1fffffff)
@@ -74,12 +69,13 @@
7469 #define CONFIG_SYS_MONITOR_LEN (128 * 1024)
7570 #define CONFIG_SYS_MALLOC_LEN (256 * 1024) /* Size of DRAM reserved for malloc() use */
7671
72+#define CONFIG_FS_FAT
73+
7774 #ifndef CONFIG_SPL_BUILD
7875 #define CONFIG_ENV_IS_IN_FAT
7976 #define CONFIG_FAT_WRITE
8077 #define FAT_ENV_INTERFACE "ide"
81-#define FAT_ENV_DEVICE 0
82-#define FAT_ENV_PART 1
78+#define FAT_ENV_DEVICE_AND_PART "0:1"
8379 #define FAT_ENV_FILE "u-boot.env"
8480 #define CONFIG_ENV_SIZE 4096
8581 #else
@@ -106,15 +102,15 @@
106102 #define CONFIG_SYS_ATA_DATA_OFFSET 0x4400 /* data reg offset */
107103 #define CONFIG_SYS_ATA_REG_OFFSET 0x4400 /* reg offset */
108104 #else
109-#define CONFIG_SYS_ATA_DATA_OFFSET 0x1100 /* data reg offset */
110-#define CONFIG_SYS_ATA_REG_OFFSET 0x1100 /* reg offset */
105+#define CONFIG_SYS_ATA_DATA_OFFSET 0x00000100 /* data reg offset */
106+#define CONFIG_SYS_ATA_REG_OFFSET 0x00000100 /* reg offset */
111107 #endif
112108 #define CONFIG_SYS_ATA_ALT_OFFSET 0x0a /* alternate register offset */
113109
114110 #define CONFIG_NET_MULTI
115111 #define CONFIG_RTL8139
116112
117-#define CONFIG_SPL
113+#define CONFIG_SPL_ENV_SUPPORT
118114 #define CONFIG_SPL_LDSCRIPT "board/landisk/u-boot-spl.lds"
119115 #define CONFIG_SPL_FRAMEWORK
120116 #define CONFIG_SPL_LIBGENERIC_SUPPORT