]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
Merge tag 'renesas-cleanup2-for-v3.13' of git://git.kernel.org/pub/scm/linux/kernel...
authorKevin Hilman <khilman@linaro.org>
Thu, 10 Oct 2013 22:42:03 +0000 (15:42 -0700)
committerKevin Hilman <khilman@linaro.org>
Thu, 10 Oct 2013 22:42:15 +0000 (15:42 -0700)
From Simon Horman:
Second round of Renesas ARM based SoC cleanups for v3.13

* Constify platform data and resources in lager board code
* Clean up registration of VIN and sh_eth in r8a7778 SoC and
   bockw board code
* Make r8a7778_register_hspi() static in r8a7778 SoC code

* tag 'renesas-cleanup2-for-v3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
  ARM: shmobile: lager: Constify platform data and resources
  ARM: shmobile: r8a7778: r8a7778_register_hspi() become static
  ARM: shmobile: r8a7778: cleanup registration of sh_eth
  ARM: shmobile: r8a7778: cleanup registration of vin

Signed-off-by: Kevin Hilman <khilman@linaro.org>
Conflicts:
arch/arm/mach-shmobile/board-lager.c

1  2 
arch/arm/mach-shmobile/board-lager.c

index 6569491839cf2e099905b5bfe9c1467deb2034b5,afd51375075fac8cdf55f85ef4a148400b6c4661..66edb7e10089875ba494c7ebc47dc9dc1b5c75ed
@@@ -156,31 -155,7 +156,31 @@@ static void __init lager_add_standard_d
                                          &ether_pdata, sizeof(ether_pdata));
  }
  
- static const char *lager_boards_compat_dt[] __initdata = {
 +/*
 + * Ether LEDs on the Lager board are named LINK and ACTIVE which corresponds
 + * to non-default 01 setting of the Micrel KSZ8041 PHY control register 1 bits
 + * 14-15. We have to set them back to 01 from the default 00 value each time
 + * the PHY is reset. It's also important because the PHY's LED0 signal is
 + * connected to SoC's ETH_LINK signal and in the PHY's default mode it will
 + * bounce on and off after each packet, which we apparently want to avoid.
 + */
 +static int lager_ksz8041_fixup(struct phy_device *phydev)
 +{
 +      u16 phyctrl1 = phy_read(phydev, 0x1e);
 +
 +      phyctrl1 &= ~0xc000;
 +      phyctrl1 |= 0x4000;
 +      return phy_write(phydev, 0x1e, phyctrl1);
 +}
 +
 +static void __init lager_init(void)
 +{
 +      lager_add_standard_devices();
 +
 +      phy_register_fixup_for_id("r8a7790-ether-ff:01", lager_ksz8041_fixup);
 +}
 +
+ static const char * const lager_boards_compat_dt[] __initconst = {
        "renesas,lager",
        NULL,
  };