mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 07:01:44 +02:00
generic: ar8216: rename cpuport_cfg to port0_cfg in ar8327_platform_data
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34846 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e39812dd92
commit
e1ab1fcace
@ -106,7 +106,7 @@ static struct ar8327_pad_cfg rb2011_ar8327_pad0_cfg = {
|
||||
|
||||
static struct ar8327_platform_data rb2011_ar8327_data = {
|
||||
.pad0_cfg = &rb2011_ar8327_pad0_cfg,
|
||||
.cpuport_cfg = {
|
||||
.port0_cfg = {
|
||||
.force_link = 1,
|
||||
.speed = AR8327_PORT_SPEED_1000,
|
||||
.duplex = 1,
|
||||
|
@ -184,7 +184,7 @@ static struct ar8327_pad_cfg rb750gr3_ar8327_pad0_cfg = {
|
||||
|
||||
static struct ar8327_platform_data rb750gr3_ar8327_data = {
|
||||
.pad0_cfg = &rb750gr3_ar8327_pad0_cfg,
|
||||
.cpuport_cfg = {
|
||||
.port0_cfg = {
|
||||
.force_link = 1,
|
||||
.speed = AR8327_PORT_SPEED_1000,
|
||||
.duplex = 1,
|
||||
|
@ -121,7 +121,7 @@ static struct ar8327_led_cfg wdr4300_ar8327_led_cfg = {
|
||||
|
||||
static struct ar8327_platform_data wdr4300_ar8327_data = {
|
||||
.pad0_cfg = &wdr4300_ar8327_pad0_cfg,
|
||||
.cpuport_cfg = {
|
||||
.port0_cfg = {
|
||||
.force_link = 1,
|
||||
.speed = AR8327_PORT_SPEED_1000,
|
||||
.duplex = 1,
|
||||
|
@ -84,7 +84,7 @@ static struct ar8327_pad_cfg db120_ar8327_pad0_cfg = {
|
||||
|
||||
static struct ar8327_platform_data db120_ar8327_data = {
|
||||
.pad0_cfg = &db120_ar8327_pad0_cfg,
|
||||
.cpuport_cfg = {
|
||||
.port0_cfg = {
|
||||
.force_link = 1,
|
||||
.speed = AR8327_PORT_SPEED_1000,
|
||||
.duplex = 1,
|
||||
|
@ -131,7 +131,7 @@ static struct ar8327_led_cfg wndr4300_ar8327_led_cfg = {
|
||||
|
||||
static struct ar8327_platform_data wndr4300_ar8327_data = {
|
||||
.pad0_cfg = &wndr4300_ar8327_pad0_cfg,
|
||||
.cpuport_cfg = {
|
||||
.port0_cfg = {
|
||||
.force_link = 1,
|
||||
.speed = AR8327_PORT_SPEED_1000,
|
||||
.duplex = 1,
|
||||
|
@ -99,7 +99,7 @@
|
||||
- .num_chipselect = 1,
|
||||
+static struct ar8327_platform_data db120_ar8327_data = {
|
||||
+ .pad0_cfg = &db120_ar8327_pad0_cfg,
|
||||
+ .cpuport_cfg = {
|
||||
+ .port0_cfg = {
|
||||
+ .force_link = 1,
|
||||
+ .speed = AR8327_PORT_SPEED_1000,
|
||||
+ .duplex = 1,
|
||||
|
@ -249,7 +249,7 @@
|
||||
+
|
||||
+static struct ar8327_platform_data uap_pro_ar8327_data = {
|
||||
+ .pad0_cfg = &uap_pro_ar8327_pad0_cfg,
|
||||
+ .cpuport_cfg = {
|
||||
+ .port0_cfg = {
|
||||
+ .force_link = 1,
|
||||
+ .speed = AR8327_PORT_SPEED_1000,
|
||||
+ .duplex = 1,
|
||||
|
@ -93,7 +93,7 @@
|
||||
+static struct ar8327_platform_data ap136_ar8327_data = {
|
||||
+ .pad0_cfg = &ap136_ar8327_pad0_cfg,
|
||||
+ .pad6_cfg = &ap136_ar8327_pad6_cfg,
|
||||
+ .cpuport_cfg = {
|
||||
+ .port0_cfg = {
|
||||
+ .force_link = 1,
|
||||
+ .speed = AR8327_PORT_SPEED_1000,
|
||||
+ .duplex = 1,
|
||||
|
@ -1084,7 +1084,7 @@ ar8327_init_cpuport(struct ar8216_priv *priv)
|
||||
if (!pdata)
|
||||
return;
|
||||
|
||||
cfg = &pdata->cpuport_cfg;
|
||||
cfg = &pdata->port0_cfg;
|
||||
if (!cfg->force_link) {
|
||||
priv->write(priv, AR8327_REG_PORT_STATUS(AR8216_PORT_CPU),
|
||||
AR8216_PORT_STATUS_LINK_AUTO);
|
||||
|
@ -74,7 +74,7 @@ struct ar8327_platform_data {
|
||||
struct ar8327_pad_cfg *pad0_cfg;
|
||||
struct ar8327_pad_cfg *pad5_cfg;
|
||||
struct ar8327_pad_cfg *pad6_cfg;
|
||||
struct ar8327_port_cfg cpuport_cfg;
|
||||
struct ar8327_port_cfg port0_cfg;
|
||||
struct ar8327_led_cfg *led_cfg;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user