mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 08:48:08 +00:00
bmips: convert mtd-mac-address to nvmem implementation
Define nvmem-cells and convert mtd-mac-address to nvmem implementation. The conversion is done with an automated script. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
parent
821b664099
commit
32adbfc789
@ -44,7 +44,8 @@
|
|||||||
ðernet {
|
ðernet {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-mac-address = <&cferom 0x6a0>;
|
nvmem-cells = <&macaddr_cferom_6a0>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&leds {
|
&leds {
|
||||||
@ -224,3 +225,13 @@
|
|||||||
&usbh {
|
&usbh {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cferom {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_cferom_6a0: macaddr@6a0 {
|
||||||
|
reg = <0x6a0 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -42,8 +42,9 @@
|
|||||||
pci-bus = <1>;
|
pci-bus = <1>;
|
||||||
pci-dev = <0>;
|
pci-dev = <0>;
|
||||||
|
|
||||||
mtd-mac-address = <&cfe 0x6a0>;
|
nvmem-cells = <&macaddr_cfe_6a0>;
|
||||||
mtd-mac-address-increment = <1>;
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
|
||||||
brcm,sprom-fixups = <6 0x1c00>,
|
brcm,sprom-fixups = <6 0x1c00>,
|
||||||
<65 0x1255>,
|
<65 0x1255>,
|
||||||
@ -66,7 +67,8 @@
|
|||||||
ðernet {
|
ðernet {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-mac-address = <&cfe 0x6a0>;
|
nvmem-cells = <&macaddr_cfe_6a0>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&hsspi {
|
&hsspi {
|
||||||
@ -243,3 +245,13 @@
|
|||||||
&usbh {
|
&usbh {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cfe {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_cfe_6a0: macaddr@6a0 {
|
||||||
|
reg = <0x6a0 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -34,8 +34,9 @@
|
|||||||
pci-bus = <1>;
|
pci-bus = <1>;
|
||||||
pci-dev = <0>;
|
pci-dev = <0>;
|
||||||
|
|
||||||
mtd-mac-address = <&cfe 0x6a0>;
|
nvmem-cells = <&macaddr_cfe_6a0>;
|
||||||
mtd-mac-address-increment = <1>;
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
|
||||||
brcm,sprom-fixups = <2 0x05bb>,
|
brcm,sprom-fixups = <2 0x05bb>,
|
||||||
<65 0x1204>,
|
<65 0x1204>,
|
||||||
@ -71,7 +72,8 @@
|
|||||||
ðernet {
|
ðernet {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-mac-address = <&cfe 0x6a0>;
|
nvmem-cells = <&macaddr_cfe_6a0>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&hsspi {
|
&hsspi {
|
||||||
@ -200,3 +202,13 @@
|
|||||||
&usbh {
|
&usbh {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cfe {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_cfe_6a0: macaddr@6a0 {
|
||||||
|
reg = <0x6a0 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -125,8 +125,9 @@
|
|||||||
|
|
||||||
pci-dev = <1>;
|
pci-dev = <1>;
|
||||||
|
|
||||||
mtd-mac-address = <&cfe 0x6a0>;
|
nvmem-cells = <&macaddr_cfe_6a0>;
|
||||||
mtd-mac-address-increment = <1>;
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
|
||||||
ath,eeprom = <&cal_data 0x1e000>;
|
ath,eeprom = <&cal_data 0x1e000>;
|
||||||
ath,endian-check;
|
ath,endian-check;
|
||||||
@ -187,3 +188,13 @@
|
|||||||
&usbh {
|
&usbh {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cfe {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_cfe_6a0: macaddr@6a0 {
|
||||||
|
reg = <0x6a0 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -67,7 +67,8 @@
|
|||||||
ðernet {
|
ðernet {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-mac-address = <&cferom 0x6a0>;
|
nvmem-cells = <&macaddr_cferom_6a0>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&leds {
|
&leds {
|
||||||
@ -245,3 +246,13 @@
|
|||||||
&usbh {
|
&usbh {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cferom {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_cferom_6a0: macaddr@6a0 {
|
||||||
|
reg = <0x6a0 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -63,8 +63,9 @@
|
|||||||
pci-bus = <0>;
|
pci-bus = <0>;
|
||||||
pci-dev = <1>;
|
pci-dev = <1>;
|
||||||
|
|
||||||
mtd-mac-address = <&cfe 0x6a0>;
|
nvmem-cells = <&macaddr_cfe_6a0>;
|
||||||
mtd-mac-address-increment = <1>;
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
|
||||||
brcm,sprom-fixups = <97 0xfeb3>,
|
brcm,sprom-fixups = <97 0xfeb3>,
|
||||||
<98 0x1618>,
|
<98 0x1618>,
|
||||||
@ -82,7 +83,8 @@
|
|||||||
ðernet {
|
ðernet {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
mtd-mac-address = <&cfe 0x6a0>;
|
nvmem-cells = <&macaddr_cfe_6a0>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&ohci {
|
&ohci {
|
||||||
@ -165,3 +167,13 @@
|
|||||||
&usbh {
|
&usbh {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cfe {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_cfe_6a0: macaddr@6a0 {
|
||||||
|
reg = <0x6a0 0x6>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user