• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修訂622b2ad9e548727f6aa0bfb36c8348e252980af3 (tree)
時間2020-07-26 17:47:27
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

rx600 update

Change Summary

差異

--- a/arch/rx/cpu/rx600/config.mk
+++ b/arch/rx/cpu/rx600/config.mk
@@ -21,4 +21,4 @@
2121 #
2222 #
2323 USE_PRIVATE_LIBGCC = $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`)
24-PLATFORM_RELFLAGS += -ffixed-r15
24+PLATFORM_RELFLAGS += -ffixed-r12
--- a/arch/rx/cpu/rx600/cpu.c
+++ b/arch/rx/cpu/rx600/cpu.c
@@ -22,8 +22,11 @@
2222
2323 #include <common.h>
2424 #include <command.h>
25+#include <irq_func.h>
26+#include <cpu_func.h>
2527 #include <asm/processor.h>
2628 #include <asm/io.h>
29+#include <netdev.h>
2730
2831 DECLARE_GLOBAL_DATA_PTR;
2932
@@ -47,7 +50,7 @@ int cleanup_before_linux(void)
4750 return 0;
4851 }
4952
50-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
53+int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[])
5154 {
5255 disable_interrupts();
5356 reset_cpu(0);
@@ -84,3 +87,17 @@ int dcache_status(void)
8487 {
8588 return 0;
8689 }
90+
91+int cpu_eth_init(bd_t *bis)
92+{
93+#if defined(CONFIG_SH_ETHER)
94+#if CONFIG_SH_ETHER_PHY_MODE == PHY_INTERFACE_MODE_RMII
95+ outb(0x82, 0x8c10e);
96+ outb(inb(0x8c065) | 0x10, 0x8c065);
97+ outb(inb(0x8c067) | 0xf2, 0x8c067);
98+ outb(inb(0x8c068) | 0x08, 0x8c068);
99+#endif
100+ sh_eth_initialize(bis);
101+#endif
102+ return 0;
103+}
--- a/arch/rx/include/asm/global_data.h
+++ b/arch/rx/include/asm/global_data.h
@@ -33,6 +33,6 @@ struct arch_global_data {
3333
3434 #include <asm-generic/global_data.h>
3535
36-#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm("r15")
36+#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm("r12")
3737
3838 #endif /* __ASM_RX_GLOBALDATA_H_ */
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -509,13 +509,6 @@ config GMAC_ROCKCHIP
509509 This driver provides Rockchip SoCs network support based on the
510510 Synopsys Designware driver.
511511
512-config SH_ETHER
513- bool "Reneesas On-chip ethernet controller"
514- select PHYLIB
515- select MII
516- help
517- This driver supports Renesas On-chip ethernet controller
518-
519512 config RENESAS_RAVB
520513 bool "Renesas Ethernet AVB MAC"
521514 depends on DM_ETH && RCAR_GEN3