[RFC 1/2] misc: Add MAC address mapper "driver"

Andrey Smirnov andrew.smirnov at gmail.com
Tue Feb 2 17:09:26 PST 2016


>
> I wonder if the correct way to do this wouldn't be nvmem, see
> Documentation/devicetree/bindings/nvmem/nvmem.txt in the Kernel.
> This would mandate a binding like:
>
>         ocotp {
>                 mac1: mac at 88 {
>                         reg = <0x88 0x6>;
>                 };
>         };
>
>         &fec {
>                 nvmem-cells = <&mac1>;
>                 nvmem-cell-names = "mac-address";
>         };

I completely forgot about that API! I think you are right that would
be a better way to implement what I am trying to do. I'll do some
experimentation with this approach and see what I can come up with.

Thanks,
Andrey



More information about the barebox mailing list