|
Add non-DT IOMUX definitions for the i.MX50 SOC by converting linux
dts/imx50-pinfunc.h by script.
perl -we 'while(<>) {
next unless /^#define MX50_PAD/;
@in=split "[[:space:]]+", uc($_);
@out=();
@out[0..4]=@in[3, 2, 5, 4, 6];
$out[2] =~ s/0X//;
$out[4] =~ s/0X//;
$out[3] = "__NA_" if $out[3] eq "0X000";
push @out, $in[1] =~ /__UART/? "MX50_UART_PAD_CTRL": "NO_PAD_CTRL";
$out=join(", ", @out);
$out =~ s/0X/0x/g;
print "#define $in[1]\t\t\tIOMUX_PAD($out)\n";
}' < dts/src/arm/imx50-pinfunc.h
Additional changes:
* typical PAD settings for UART, SPI, I2C and ESDHC
* SION bits set for all I2C MUX options
Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
|