Some SoCs in the mpc83xx family, e.g. mpc8309, have a dedicated spi chip select, SPISEL_BOOT, that is used by the boot code to boot from flash. This chip select will typically be used to select a SPI boot flash. The SPISEL_BOOT signal is controlled by a single bit in the SPI_CS register. Implement a gpio driver for the spi chip select register. This allows a spi driver capable of using gpios as chip select, to bind a chip select to SPISEL_BOOT. It may be a little odd to do this as a GPIO driver, since the signal is neither GP or I, but it is quite convenient to present it to the spi driver that way. The alternative it to teach mpc8xxx_spi to handle the SPISEL_BOOT signal itself (that is how it's done in the linux kernel, see commit 69b921acae8a) Signed-off-by: Klaus H. Sorensen <khso@prevas.dk> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> |
||
|---|---|---|
| .. | ||
| SPI | ||
| SPL | ||
| android | ||
| api | ||
| arch | ||
| board | ||
| build | ||
| chromium | ||
| device-tree-bindings | ||
| driver-model | ||
| imx | ||
| media | ||
| mvebu | ||
| sphinx | ||
| sphinx-static | ||
| uImage.FIT | ||
| uefi | ||
| .gitignore | ||
| I2C_Edge_Conditions | ||
| Makefile | ||
| README.440-DDR-performance | ||
| README.AMCC-eval-boards-cleanup | ||
| README.Heterogeneous-SoCs | ||
| README.JFFS2 | ||
| README.JFFS2_NAND | ||
| README.LED | ||
| README.NetConsole | ||
| README.OFT | ||
| README.POST | ||
| README.SNTP | ||
| README.SPL | ||
| README.TPL | ||
| README.VLAN | ||
| README.VSC3316-3308 | ||
| README.arm-caches | ||
| README.arm-relocation | ||
| README.armada-secureboot | ||
| README.asn1 | ||
| README.atmel_mci | ||
| README.atmel_pmecc | ||
| README.autoboot | ||
| README.bcm7xxx | ||
| README.bedbug | ||
| README.bitbangMII | ||
| README.bloblist | ||
| README.bootmenu | ||
| README.boston | ||
| README.bus_vcxk | ||
| README.cfi | ||
| README.chromium | ||
| README.chromium-chainload | ||
| README.clang | ||
| README.coccinelle | ||
| README.commands | ||
| README.commands.itest | ||
| README.commands.spl | ||
| README.console | ||
| README.davinci | ||
| README.davinci.nand_spl | ||
| README.dfu | ||
| README.dfutftp | ||
| README.displaying-bmps | ||
| README.distro | ||
| README.dns | ||
| README.enetaddr | ||
| README.esbc_validate | ||
| README.ext4 | ||
| README.falcon | ||
| README.fdt-control | ||
| README.fdt-overlays | ||
| README.fec_mxc | ||
| README.fsl-clk | ||
| README.fsl-ddr | ||
| README.fsl-dpaa | ||
| README.fsl-esdhc | ||
| README.fsl-hwconfig | ||
| README.fsl-trustzone-components | ||
| README.fsl_iim | ||
| README.fuse | ||
| README.generic-board | ||
| README.generic_usb_ohci | ||
| README.gpt | ||
| README.hwconfig | ||
| README.i2c | ||
| README.iomux | ||
| README.kconfig | ||
| README.kwbimage | ||
| README.link-local | ||
| README.log | ||
| README.lynxkdi | ||
| README.m54418twr | ||
| README.malta | ||
| README.marvell | ||
| README.mediatek | ||
| README.memory-test | ||
| README.menu | ||
| README.mpc74xx | ||
| README.mpc83xx.ddrecc | ||
| README.mpc83xxads | ||
| README.mpc85xx | ||
| README.mpc85xx-sd-spi-boot | ||
| README.mpc85xx-spin-table | ||
| README.mpc85xxcds | ||
| README.multi-dtb-fit | ||
| README.mxc_ocotp | ||
| README.nand | ||
| README.nand-boot-ppc440 | ||
| README.ne2000 | ||
| README.nokia_rx51 | ||
| README.nvme | ||
| README.odroid | ||
| README.omap-ulpi-viewport | ||
| README.omap3 | ||
| README.pblimage | ||
| README.pcap | ||
| README.plan9 | ||
| README.power-framework | ||
| README.pxe | ||
| README.ramboot-ppc85xx | ||
| README.rmobile | ||
| README.rockchip | ||
| README.rockusb | ||
| README.s5pc1xx | ||
| README.sata | ||
| README.sched | ||
| README.scrapyard | ||
| README.semihosting | ||
| README.serial_multi | ||
| README.sha1 | ||
| README.silent | ||
| README.socfpga | ||
| README.spear | ||
| README.splashprepare | ||
| README.srio-pcie-boot-corenet | ||
| README.standalone | ||
| README.t1040-l2switch | ||
| README.tee | ||
| README.ti-secure | ||
| README.trace | ||
| README.ubi | ||
| README.ubispl | ||
| README.ublimage | ||
| README.unaligned-memory-access.txt | ||
| README.uniphier | ||
| README.update | ||
| README.usb | ||
| README.vf610 | ||
| README.video | ||
| README.virtio | ||
| README.vxworks | ||
| README.watchdog | ||
| README.zfs | ||
| bounces | ||
| conf.py | ||
| feature-removal-schedule.txt | ||
| git-mailrc | ||
| index.rst | ||
| kwboot.1 | ||
| mkimage.1 | ||
README.zfs
This patch series adds support for ZFS listing and load to u-boot. To Enable zfs ls and load commands, modify the board specific config file with #define CONFIG_CMD_ZFS Steps to test: 1. After applying the patch, zfs specific commands can be seen in the boot loader prompt using UBOOT #help zfsload- load binary file from a ZFS file system zfsls - list files in a directory (default /) 2. To list the files in zfs pool, device or partition, execute zfsls <interface> <dev[:part]> [POOL/@/dir/file] For example: UBOOT #zfsls mmc 0:5 /rpool/@/usr/bin/ 3. To read and load a file from an ZFS formatted partition to RAM, execute zfsload <interface> <dev[:part]> [addr] [filename] [bytes] For example: UBOOT #zfsload mmc 2:2 0x30007fc0 /rpool/@/boot/uImage References : -- ZFS GRUB sources from Solaris GRUB-0.97 -- GRUB Bazaar repository Jorgen Lundman <lundman at lundman.net> 2012.