mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
The following features are enabled , 1) AP151 target specific configs are added ( mainly ethernet ) 2) AP151 and AP152 share a common configuration file & Makefile with minimal changes between them. Support for avoiding the conflict between them is implemented. Change-Id: Ia71b20199d43cd29ff214c1258e4b15fcd55cb6b Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
29 lines
1 KiB
C
29 lines
1 KiB
C
/*
|
|
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef _ATH_PHY_H
|
|
#define _ATH_PHY_H
|
|
|
|
#define ath_gmac_unit2name(_unit) (_unit ? "eth1" : "eth0")
|
|
|
|
extern int ath_gmac_miiphy_read(char *devname, uint32_t phaddr, uint8_t reg, uint16_t *data);
|
|
extern int ath_gmac_miiphy_write(char *devname, uint32_t phaddr, uint8_t reg, uint16_t data);
|
|
|
|
#define phy_reg_read(base, addr, reg) \
|
|
ath_gmac_miiphy_read(ath_gmac_unit2name(base), addr, reg, NULL)
|
|
|
|
#define phy_reg_write(base, addr, reg, data) \
|
|
ath_gmac_miiphy_write(ath_gmac_unit2name(base), addr, reg, data)
|
|
|
|
#endif
|