u-boot-brain/drivers
Philipp Tomsich 1f08aa1c9f net: gmac_rockchip: Add support for the RK3399 GMAC
The GMAC in the RK3399 is very similar to the RK3288 variant (i.e. it
is a Designware GMAC core and requires similar configuration as the
RK3288 to switch it to RGMII and set up the TX/RX delays for Gigabit).
The key difference is that the register offsets (within the GRF block)
and bit-offsets (within those registers) used to hold the configuration
differ between the various RK32/33 CPUs.

This change refactors the gmac_rockchip.c driver to use a function
table (selected via driver_data) to factor out these differences. Each
function's implementation then matches the underlying processor.

Some collateral changes are needed in the definitions describing the
bits and offsets in the GRF are needed to prefix each set of symbolic
constants with the SoC name to avoid name clashes... and in doing so,
the shifts for masks and constants have been moved into the header
files for readability (and to make it easier to stay below 80 chars).

X-AffectedPlatforms: RK3399-Q7
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
Fixed commit message typo s/factor our/factor out/:
Signed-off-by: Simon Glass <sjg@chromium.org>
2017-04-04 20:01:57 -06:00
..
adc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
bios_emulator bios_emulator: Fix cast for 64-bit compilation 2016-10-11 11:55:33 +08:00
block block: Move ceva driver to DM 2016-12-20 09:15:27 +01:00
bootcount bootcounter_ram: Fix misaligned cache warning 2016-11-28 15:10:34 -05:00
clk rockchip: clk: rk3399: add clocking support for Ethernet 2017-04-04 20:01:57 -06:00
core regmap: use fdt address translation 2017-03-29 07:38:07 +02:00
cpu cpu: Add get_vendor callback 2016-10-19 09:01:51 +02:00
crypto crypto: Move CONFIG_SYS_FSL_SEC_LE and _BE to Kconfig 2017-01-04 19:40:19 -05:00
ddr ddr: fsl: Merge macro CONFIG_NUM_DDR_CONTROLLERS and CONFIG_SYS_NUM_DDR_CTRLS 2017-01-04 19:40:52 -05:00
demo dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
dfu dfu: align array in dfu_get_dev_type with enum dfu_device_type 2016-11-03 11:55:25 +01:00
dma treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
fpga fpga: zynqmp: Remove empty functions 2017-01-10 10:18:11 +01:00
gpio gpio: Add Rapid GPIO2P driver for i.MX7ULP 2017-03-17 09:27:08 +01:00
hwmon mailaddr: Update mail address 2016-01-27 15:32:05 +01:00
i2c rockchip: i2c: Add compatibles for Rockchip Cortex-A9 socs 2017-04-04 20:01:57 -06:00
input dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
led dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
mailbox dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
memory memory: Move TI_AEMIF config to KCONFIG 2016-04-18 17:11:43 -04:00
misc mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP 2017-03-17 09:27:08 +01:00
mmc Merge git://git.denx.de/u-boot-tegra 2017-04-04 16:01:02 -04:00
mtd mtd: nand: remove nand size print from nand_init function 2017-03-28 10:39:33 -07:00
net net: gmac_rockchip: Add support for the RK3399 GMAC 2017-04-04 20:01:57 -06:00
pch dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
pci Merge git://git.denx.de/u-boot-dm 2017-04-04 09:18:57 -04:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
phy/marvell dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pinctrl rockchip: pinctrl: rk3399: add GMAC (RGMII only) support 2017-04-04 20:01:57 -06:00
power sunxi: power: axp809.c: Fix aldo1-2 being disabled for mvolt != 0 2017-03-09 11:26:02 +09:00
pwm pwm: remove unneeded ifdef CONFIG_DM_PWM ... endif 2017-02-08 16:24:26 -05:00
qe powerpc: P1025: Remove macro CONFIG_P1025 2016-11-23 23:42:10 -08:00
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
remoteproc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
reset reset: Add STi reset support 2017-03-26 13:22:58 -06:00
rtc rtc: pcf2127: Update Kconfig and code style 2017-01-14 16:47:59 -05:00
serial Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2017-03-19 15:13:38 -04:00
soc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi drivers: ti_qspi: use syscon to get the address ctrl_mod_mmap register 2017-03-29 07:38:07 +02:00
spmi dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
sysreset rockchip: rk3328: add sysreset driver 2017-03-16 16:03:46 -06:00
thermal imx: thermal: Kconfig: add MX7 2017-01-02 17:08:25 +01:00
timer drivers: timer: Introduce ARC timer driver 2017-03-29 07:38:11 +02:00
tpm lib: tpm: Add command to list resources 2017-03-26 13:22:58 -06:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb mvebu: usb: xhci: Add VBUS regulator supply to the host driver 2017-03-29 07:38:08 +02:00
video rockchip: video: Split out HDMI controller code 2017-04-04 20:01:57 -06:00
watchdog wdog: Add the watchdog driver for MX7ULP. 2017-03-17 09:27:08 +01:00
Kconfig fsl_ddr: Move DDR config options to driver Kconfig 2017-01-04 19:40:41 -05:00
Makefile spl: Allow PCH drivers to be used in SPL 2017-02-06 11:38:46 +08:00