mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
MIPS: lantiq: Add a GPHY driver which uses the RCU syscon-mfd
Compared to the old xrx200_phy_fw driver the new version has multiple enhancements. The name of the firmware files does not have to be added to all .dts files anymore - one now configures the GPHY mode (FE or GE) instead. Each GPHY can now also boot separate firmware (thus mixing of GE and FE GPHYs is now possible). The new implementation is based on the RCU syscon-mfd and uses the reeset_controller framework instead of raw RCU register reads/writes. Signed-off-by: Martin Blumenstingl <[email protected]> Signed-off-by: Hauke Mehrtens <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Acked-by: Rob Herring <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/17128/ Signed-off-by: Ralf Baechle <[email protected]>
This commit is contained in:
parent
ba73f0bcce
commit
126534141b
5 changed files with 316 additions and 2 deletions
15
include/dt-bindings/mips/lantiq_rcu_gphy.h
Normal file
15
include/dt-bindings/mips/lantiq_rcu_gphy.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 as published
|
||||
* by the Free Software Foundation.
|
||||
*
|
||||
* Copyright (C) 2016 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
||||
* Copyright (C) 2017 Hauke Mehrtens <hauke@hauke-m.de>
|
||||
*/
|
||||
#ifndef _DT_BINDINGS_MIPS_LANTIQ_RCU_GPHY_H
|
||||
#define _DT_BINDINGS_MIPS_LANTIQ_RCU_GPHY_H
|
||||
|
||||
#define GPHY_MODE_GE 1
|
||||
#define GPHY_MODE_FE 2
|
||||
|
||||
#endif /* _DT_BINDINGS_MIPS_LANTIQ_RCU_GPHY_H */
|
||||
Loading…
Reference in a new issue