sf: fix out-of-order calls for spi_claim_bus and spi_release_bus

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
sf: consistently use debug() for warning/error messages

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
sf: move malloc of spi_flash to spi_flash_probe()

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
sf: add slim probe funtions for SPL

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
sf: make calculatiom of address bytes completely configurable

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
sf: add support for 4-byte addressing

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
sf: add support for EN25QH256

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
sf: probe: add support for MX25L2006E

Add support for Macronix MX25L2006E SPI flash.

Signed-off-by: Luka Perkov <luka@openwrt.org>
sf: fix sector layout of S25FL256S_256K and S25FL512S_256K

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
cosmetic: sf: hex values are in lower case

All other hex values in sf_probe.c are in lower case so we should
fix this one too.

Signed-off-by: Luka Perkov <luka@openwrt.org>
net: switchlib: add framework for ethernet switch drivers

Add a generic framework similar to phylib for ethernet switch
drivers and devices. This is useful to share the init and
setup code for switch devices across different boards.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
net: switchlib: add driver for Lantiq PSB697X switch family

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
net: switchlib: add driver for Lantiq ADM6996I switch family

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
net: switchlib: add driver for Atheros AR8216

Signed-off-by: Luka Perkov <openwrt@lukaperkov.net>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
net: switchlib: add driver for REALTEK RTL8306

Signed-off-by: Oliver Muth <dr.o.muth@gmx.de>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
net: phy: fix redundant inclusion of errno.h

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
mtd: cfi: add support for board-specific flash address swapping

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
spl: add support for LZMA and LZO compression

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
MIPS: add generic gpio header file

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
MIPS: allow gc-sections also for ASM macros

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>