Skip to contentSkip to conversation

ARM: rmobile: alt: Remove R8A7794_ETHERNET_B

PATCH New Marek Vasut 1 participant 4 messages Mar 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ARM: rmobile: alt: Remove R8A7794_ETHERNET_B

The R8A7794_ETHERNET_B config option is unused and based on the description, this is a setting which should be fully done on a DT level instead. Remove this config option.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 board/renesas/alt/Kconfig | 9 ---------
 1 file changed, 9 deletions(-)
board/renesas/alt/Kconfig +0 -9
index 39d53c185b..957962de20 100644
@@ -9,13 +9,4 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
 	default "alt"
 
-config R8A7794_ETHERNET_B
-	bool "Use ethernet B function"
-	depends on TARGET_ALT
-	default n
-	help
-	  ALT board can use default ethernet and etnernet B function.
-	  This config set pin function of ethenet B. You also needt to change
-	  DIP switch of board in order to use this function.
-
 endif
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/4 ARM: rmobile: alt: Remove CLK2MHZ macro

The CLK2MHZ macro is unused, remove it.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 board/renesas/alt/alt.c | 1 -
 1 file changed, 1 deletion(-)
board/renesas/alt/alt.c +0 -1
index b18ab7ce88..7a9a51e4cd 100644
@@ -28,7 +28,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#define CLK2MHZ(clk)	(clk / 1000 / 1000)
 void s_init(void)
 {
 	struct rcar_rwdt *rwdt = (struct rcar_rwdt *)RWDT_BASE;
Signature · 1 line
2.20.1
#2 lore raw

PATCH 3/4 ARM: rmobile: alt: Synchronize defconfig

In reply to Marek Vasut

Synchronize the R8A7794 Alt defconfig, enable DM SPI, DM SPI FLASH and I2C driver support.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 configs/alt_defconfig | 3 +++
 1 file changed, 3 insertions(+)
configs/alt_defconfig +3 -0
index c4ece79507..5e5467fe2f 100644
@@ -57,12 +57,14 @@ CONFIG_CLK_RENESAS=y
 CONFIG_DM_GPIO=y
 CONFIG_RCAR_GPIO=y
 CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_RCAR_I2C=y
 CONFIG_SYS_I2C_RCAR_IIC=y
 CONFIG_DM_MMC=y
 CONFIG_SH_MMCIF=y
 CONFIG_RENESAS_SDHI=y
 CONFIG_MTD=y
 CONFIG_MTD_DEVICE=y
+CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_MTD=y
@@ -80,6 +82,7 @@ CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SCIF_CONSOLE=y
 CONFIG_SPI=y
+CONFIG_DM_SPI=y
 CONFIG_SH_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
Signature · 1 line
2.20.1
#3 lore raw

PATCH 4/4 ARM: rmobile: Fix PHY LED mode register mask

In reply to Marek Vasut

The PHY LED mode register mask should be 0xc000 , not 0xc0000. Correct the mask to operate on the right bits.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 board/renesas/alt/alt.c         | 2 +-
 board/renesas/gose/gose.c       | 2 +-
 board/renesas/koelsch/koelsch.c | 2 +-
 board/renesas/lager/lager.c     | 2 +-
 board/renesas/porter/porter.c   | 2 +-
 board/renesas/silk/silk.c       | 2 +-
 board/renesas/stout/stout.c     | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
board/renesas/alt/alt.c +1 -1
index 7a9a51e4cd..7b85000203 100644
@@ -92,7 +92,7 @@ int dram_init_banksize(void)
 
 /* KSZ8041RNLI */
 #define PHY_CONTROL1		0x1E
-#define PHY_LED_MODE		0xC0000
+#define PHY_LED_MODE		0xC000
 #define PHY_LED_MODE_ACK	0x4000
 int board_phy_config(struct phy_device *phydev)
 {
board/renesas/gose/gose.c +1 -1
index 282381ede5..7c61008739 100644
@@ -98,7 +98,7 @@ int dram_init_banksize(void)
 
 /* KSZ8041RNLI */
 #define PHY_CONTROL1		0x1E
-#define PHY_LED_MODE		0xC0000
+#define PHY_LED_MODE		0xC000
 #define PHY_LED_MODE_ACK	0x4000
 int board_phy_config(struct phy_device *phydev)
 {
board/renesas/koelsch/koelsch.c +1 -1
index 52f37c970e..d07a7ca2ab 100644
@@ -100,7 +100,7 @@ int dram_init_banksize(void)
 
 /* Koelsch has KSZ8041NL/RNL */
 #define PHY_CONTROL1		0x1E
-#define PHY_LED_MODE		0xC0000
+#define PHY_LED_MODE		0xC000
 #define PHY_LED_MODE_ACK	0x4000
 int board_phy_config(struct phy_device *phydev)
 {
board/renesas/lager/lager.c +1 -1
index 062e88c198..f062bb0172 100644
@@ -109,7 +109,7 @@ int dram_init_banksize(void)
 
 /* KSZ8041NL/RNL */
 #define PHY_CONTROL1		0x1E
-#define PHY_LED_MODE		0xC0000
+#define PHY_LED_MODE		0xC000
 #define PHY_LED_MODE_ACK	0x4000
 int board_phy_config(struct phy_device *phydev)
 {
board/renesas/porter/porter.c +1 -1
index 663b8001ef..2e15a4cbbd 100644
@@ -98,7 +98,7 @@ int dram_init_banksize(void)
 
 /* porter has KSZ8041RNLI */
 #define PHY_CONTROL1		0x1E
-#define PHY_LED_MODE		0xC0000
+#define PHY_LED_MODE		0xC000
 #define PHY_LED_MODE_ACK	0x4000
 int board_phy_config(struct phy_device *phydev)
 {
board/renesas/silk/silk.c +1 -1
index 966c0717b2..59ba262ad7 100644
@@ -93,7 +93,7 @@ int dram_init_banksize(void)
 
 /* porter has KSZ8041RNLI */
 #define PHY_CONTROL1		0x1E
-#define PHY_LED_MODE		0xC0000
+#define PHY_LED_MODE		0xC000
 #define PHY_LED_MODE_ACK	0x4000
 int board_phy_config(struct phy_device *phydev)
 {
board/renesas/stout/stout.c +1 -1
index 85e30db635..7c515950d6 100644
@@ -112,7 +112,7 @@ int dram_init_banksize(void)
 
 /* Stout has KSZ8041NL/RNL */
 #define PHY_CONTROL1		0x1E
-#define PHY_LED_MODE		0xC0000
+#define PHY_LED_MODE		0xC000
 #define PHY_LED_MODE_ACK	0x4000
 int board_phy_config(struct phy_device *phydev)
 {
Signature · 1 line
2.20.1