Skip to content

Commit

Permalink
Merge branch 'master' of git://git.denx.de/u-boot-sh
Browse files Browse the repository at this point in the history
Minor fixes for the Alt board and PHY use on Gen2.
  • Loading branch information
trini committed Apr 2, 2019
2 parents bcd40c3 + 0c78ec6 commit da06f9a
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 19 deletions.
5 changes: 5 additions & 0 deletions arch/arm/dts/r8a7794-alt-u-boot.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#include "r8a7794-alt.dts"
#include "r8a7794-u-boot.dtsi"

&i2c7 {
status = "okay";
clock-frequency = <100000>;
};

&scif2 {
u-boot,dm-pre-reloc;
};
Expand Down
9 changes: 0 additions & 9 deletions board/renesas/alt/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 2 additions & 3 deletions board/renesas/alt/alt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -93,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)
{
Expand All @@ -108,7 +107,7 @@ int board_phy_config(struct phy_device *phydev)
void reset_cpu(ulong addr)
{
struct udevice *dev;
const u8 pmic_bus = 1;
const u8 pmic_bus = 7;
const u8 pmic_addr = 0x58;
u8 data;
int ret;
Expand Down
2 changes: 1 addition & 1 deletion board/renesas/gose/gose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion board/renesas/koelsch/koelsch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion board/renesas/lager/lager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion board/renesas/porter/porter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion board/renesas/silk/silk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion board/renesas/stout/stout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
3 changes: 3 additions & 0 deletions configs/alt_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion include/configs/rcar-gen2-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#define CONFIG_SYS_MONITOR_BASE 0x00000000
#define CONFIG_SYS_MONITOR_LEN (256 * 1024)
#define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
#define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)

/* ENV setting */
#define CONFIG_ENV_ADDR 0xC0000
Expand Down

0 comments on commit da06f9a

Please sign in to comment.