Add phyFLEX-AM335x support
Subsystems (5)
cover Add phyFLEX-AM335x support
This patchset adds phyFLEX-AM335x support. This is based on Jan's work and was rewitten for device tree and multi image support by Stefan. I cleaned up the code and rebased it to master.
Teresa
Jan Weitzel (2):
net: cpsw: Allow gigabit connection
net: micrel: Add ksz8081 support
Stefan Müller-Klieser (2):
boards: Add phytec-phyflex-am335x
pfla03: add to am335x_defconfig
arch/arm/boards/Makefile | 1 + arch/arm/boards/phytec-phyflex-am335x/Makefile | 3 + arch/arm/boards/phytec-phyflex-am335x/board.c | 100 ++++++ .../defaultenv-phyflex-am335x/boot/mmc | 8 + .../defaultenv-phyflex-am335x/boot/nand | 8 + .../defaultenv-phyflex-am335x/boot/spi | 8 + .../defaultenv-phyflex-am335x/config-board | 17 + arch/arm/boards/phytec-phyflex-am335x/lowlevel.c | 180 +++++++++++ arch/arm/configs/am335x_defconfig | 1 + arch/arm/configs/am335x_mlo_defconfig | 1 + arch/arm/dts/Makefile | 1 + arch/arm/dts/am335x-phytec-phyflex.dts | 356 +++++++++++++++++++++ arch/arm/mach-omap/Kconfig | 5 + drivers/net/cpsw.c | 3 +- drivers/net/phy/micrel.c | 10 +- images/Makefile.am33xx | 12 + 16 files changed, 711 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boards/phytec-phyflex-am335x/Makefile create mode 100644 arch/arm/boards/phytec-phyflex-am335x/board.c create mode 100644 arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/mmc create mode 100644 arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/nand create mode 100644 arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/spi create mode 100644 arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/config-board create mode 100644 arch/arm/boards/phytec-phyflex-am335x/lowlevel.c create mode 100644 arch/arm/dts/am335x-phytec-phyflex.dts
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/4 net: cpsw: Allow gigabit connection
From: Jan Weitzel <[email protected]>
--- drivers/net/cpsw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/cpsw.c +1 -2
@@ -581,8 +581,7 @@ static void cpsw_slave_update_link(struct cpsw_slave *slave,else if (phydev->speed ==SPEED_100 ) mac_control |=BIT (15 );else if (phydev->speed ==SPEED_1000 ) - mac_control &= ~BIT (7 );/* TODO: Do not enable -* gig support now */ + mac_control |=BIT (7 );if (phydev->duplex ==DUPLEX_FULL ) mac_control |=BIT (0 );/* FULLDUPLEXEN */ }
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/4 net: micrel: Add ksz8081 support
In reply to Teresa GámezFrom: Jan Weitzel <[email protected]>
--- drivers/net/phy/micrel.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/net/phy/micrel.c +9 -1
@@ -226,13 +226,21 @@ static struct phy_driver ksphy_driver[] = { }, { .phy_id = PHY_ID_KSZ8051, .phy_id_mask = 0x00fffff0, - .drv.name = "Micrel KSZ8051", + .drv.name = "Micrel KSZ8051", .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause | SUPPORTED_Asym_Pause), .config_init = ks8051_config_init, .config_aneg = genphy_config_aneg, .read_status = genphy_read_status, }, { + .phy_id = PHY_ID_KSZ8081, + .phy_id_mask = MICREL_PHY_ID_MASK, + .drv.name = "Micrel KSZ8081/91", + .features = (PHY_BASIC_FEATURES | SUPPORTED_Pause), + .config_init = kszphy_config_init, + .config_aneg = genphy_config_aneg, + .read_status = genphy_read_status, +}, { .phy_id = PHY_ID_KSZ8001, .drv.name = "Micrel KSZ8001 or KS8721", .phy_id_mask = 0x00ffffff,
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/4 boards: Add phytec-phyflex-am335x
In reply to Teresa GámezFrom: Stefan Müller-Klieser <[email protected]>
Add support for PHYTEC's phyFLEX-AM335x.
--- arch/arm/boards/Makefile | 1 + arch/arm/boards/phytec-phyflex-am335x/Makefile | 3 + arch/arm/boards/phytec-phyflex-am335x/board.c | 100 ++++++ .../defaultenv-phyflex-am335x/boot/mmc | 8 + .../defaultenv-phyflex-am335x/boot/nand | 8 + .../defaultenv-phyflex-am335x/boot/spi | 8 + .../defaultenv-phyflex-am335x/config-board | 17 + arch/arm/boards/phytec-phyflex-am335x/lowlevel.c | 180 +++++++++++ arch/arm/dts/Makefile | 1 + arch/arm/dts/am335x-phytec-phyflex.dts | 356 +++++++++++++++++++++ arch/arm/mach-omap/Kconfig | 5 + images/Makefile.am33xx | 12 + 12 files changed, 699 insertions(+) create mode 100644 arch/arm/boards/phytec-phyflex-am335x/Makefile create mode 100644 arch/arm/boards/phytec-phyflex-am335x/board.c create mode 100644 arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/mmc create mode 100644 arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/nand create mode 100644 arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/spi create mode 100644 arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/config-board create mode 100644 arch/arm/boards/phytec-phyflex-am335x/lowlevel.c create mode 100644 arch/arm/dts/am335x-phytec-phyflex.dts
arch/arm/boards/Makefile +1 -0
@@ -79,6 +79,7 @@ obj-$(CONFIG_MACH_PCM038) += phytec-phycore-imx27/ obj-$(CONFIG_MACH_PCM043) += phytec-phycore-imx35/ obj-$(CONFIG_MACH_PCM049) += phytec-phycore-omap4460/ obj-$(CONFIG_MACH_PCM051) += phytec-phycore-am335x/ +obj-$(CONFIG_MACH_PFLA03) += phytec-phyflex-am335x/ obj-$(CONFIG_MACH_PHYTEC_PFLA02) += phytec-phyflex-imx6/ obj-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += plathome-openblocks-ax3/ obj-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += plathome-openblocks-a6/
arch/arm/boards/phytec-phyflex-am335x/Makefile new file +3 -0
@@ -0,0 +1,3 @@ +lwl-y += lowlevel.o +obj-y += board.o +bbenv-y += defaultenv-phyflex-am335x
arch/arm/boards/phytec-phyflex-am335x/board.c new file +100 -0
100 lines not on this page · raw message
arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/mmc new file +8 -0
@@ -0,0 +1,8 @@ +#!/bin/sh + +global.bootm.image=/boot/linuximage +#global.bootm.oftree=/boot/oftree + +bootargs-ip + +global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2 rootfstype=ext3 rw rootwait"
arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/nand new file +8 -0
@@ -0,0 +1,8 @@ +#!/bin/sh + +global.bootm.image="/dev/nand0.kernel.bb" +#global.bootm.oftree="/env/oftree" + +bootargs-ip + +global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root,2048 rw rootfstype=ubifs"
arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/boot/spi new file +8 -0
@@ -0,0 +1,8 @@ +#!/bin/sh + +global.bootm.image="/dev/m25p0.kernel" + +bootargs-ip + +# Use rootfs form NAND for now as rootfs partition < 4MB +global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root,2048 rw rootfstype=ubifs"
arch/arm/boards/phytec-phyflex-am335x/defaultenv-phyflex-am335x/config-board new file +17 -0
@@ -0,0 +1,17 @@ +#!/bin/sh + +# board defaults, do not change in running system. Change /env/config +# instead + +global.hostname=pfla03 +global.linux.bootargs.base="console=ttyO0,115200" + +if [ $bootsource = mmc ]; then + global.boot.default="mmc nand spi net" +elif [ $boosource = nand ]; then + global.boot.default="nand spi mmc net" +elif [ $boosource = spi ]; then + global.boot.default="spi nand mmc net" +elif [ $boosource = net ]; then + global.boot.default="net nand spi mmc" +fi
arch/arm/boards/phytec-phyflex-am335x/lowlevel.c new file +180 -0
180 lines not on this page · raw message
arch/arm/dts/Makefile +1 -0
@@ -27,6 +27,7 @@ pbl-dtb-$(CONFIG_MACH_PCA100) += imx27-phytec-phycard-s-rdk-bb.dtb.o pbl-dtb-$(CONFIG_MACH_PCAAXL3) += imx6q-phytec-pbaa03.dtb.o pbl-dtb-$(CONFIG_MACH_PCM038) += imx27-phytec-phycore-rdk.dtb.o pbl-dtb-$(CONFIG_MACH_PCM051) += am335x-phytec-phycore-som.dtb.o am335x-phytec-phycore-som-no-spi.dtb.o +pbl-dtb-$(CONFIG_MACH_PFLA03) += am335x-phytec-phyflex.dtb.o pbl-dtb-$(CONFIG_MACH_PHYTEC_PFLA02) += imx6s-phytec-pbab01.dtb.o imx6dl-phytec-pbab01.dtb.o imx6q-phytec-pbab01.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3) += armada-xp-openblocks-ax3-4-bb.dtb.o pbl-dtb-$(CONFIG_MACH_PLATHOME_OPENBLOCKS_A6) += kirkwood-openblocks_a6-bb.dtb.o
arch/arm/dts/am335x-phytec-phyflex.dts new file +356 -0
356 lines not on this page · raw message
arch/arm/mach-omap/Kconfig +5 -0
@@ -143,6 +143,11 @@ config MACH_PCM051 help Say Y here if you are using Phytecs phyCORE pcm051 board +config MACH_PFLA03 + bool "Phytec phyFLEX am335x pfla03" + select ARCH_AM33XX + help + Say Y here if you are using Phytecs phyFLEX pfla03 board endif choice
images/Makefile.am33xx +12 -0
@@ -39,6 +39,18 @@ pblx-$(CONFIG_MACH_PCM051) += start_am33xx_phytec_phycore_sram_2x512mb FILE_barebox-am33xx-phytec-phycore-mlo-2x512mb.img = start_am33xx_phytec_phycore_sram_2x512mb.pblx.mlo am33xx-mlo-$(CONFIG_MACH_PCM051) += barebox-am33xx-phytec-phycore-mlo-2x512mb.img +pblx-$(CONFIG_MACH_PFLA03) += start_am33xx_phytec_phyflex_sdram +FILE_barebox-am33xx-phytec-phyflex.img = start_am33xx_phytec_phyflex_sdram.pblx +am33xx-barebox-$(CONFIG_MACH_PFLA03) += barebox-am33xx-phytec-phyflex.img + +pblx-$(CONFIG_MACH_PFLA03) += start_am33xx_phytec_phyflex_sram_256mb +FILE_barebox-am33xx-phytec-phyflex-mlo-256mb.img = start_am33xx_phytec_phyflex_sram_256mb.pblx.mlo +am33xx-mlo-$(CONFIG_MACH_PFLA03) += barebox-am33xx-phytec-phyflex-mlo-256mb.img + +pblx-$(CONFIG_MACH_PFLA03) += start_am33xx_phytec_phyflex_sram_512mb +FILE_barebox-am33xx-phytec-phyflex-mlo-512mb.img = start_am33xx_phytec_phyflex_sram_512mb.pblx.mlo +am33xx-mlo-$(CONFIG_MACH_PFLA03) += barebox-am33xx-phytec-phyflex-mlo-512mb.img + pblx-$(CONFIG_MACH_BEAGLEBONE) += start_am33xx_beaglebone_sdram FILE_barebox-am33xx-beaglebone.img = start_am33xx_beaglebone_sdram.pblx am33xx-barebox-$(CONFIG_MACH_BEAGLEBONE) += barebox-am33xx-beaglebone.img
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/4 pfla03: add to am335x_defconfig
In reply to Teresa GámezFrom: Stefan Müller-Klieser <[email protected]>
--- arch/arm/configs/am335x_defconfig | 1 + arch/arm/configs/am335x_mlo_defconfig | 1 + 2 files changed, 2 insertions(+)
arch/arm/configs/am335x_defconfig +1 -0
@@ -5,6 +5,7 @@ CONFIG_OMAP_MULTI_BOARDS=y CONFIG_MACH_AFI_GF=y CONFIG_MACH_BEAGLEBONE=y CONFIG_MACH_PCM051=y +CONFIG_MACH_PFLA03=y CONFIG_THUMB2_BAREBOX=y CONFIG_ARM_BOARD_APPEND_ATAG=y CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
arch/arm/configs/am335x_mlo_defconfig +1 -0
@@ -4,6 +4,7 @@ CONFIG_OMAP_MULTI_BOARDS=y CONFIG_MACH_AFI_GF=y CONFIG_MACH_BEAGLEBONE=y CONFIG_MACH_PCM051=y +CONFIG_MACH_PFLA03=y CONFIG_THUMB2_BAREBOX=y # CONFIG_CMD_ARM_CPUINFO is not set # CONFIG_MEMINFO is not set
Signature · 7 lines
1.9.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 7 lines · Teresa Gámez
This patchset adds phyFLEX-AM335x support. This is based on Jan's work and was rewitten for device tree and multi image support by Stefan. I cleaned up the code and rebased it to master.
Teresa
Quoted 7 lines
Jan Weitzel (2):
net: cpsw: Allow gigabit connection
net: micrel: Add ksz8081 supportStefan Müller-Klieser (2):
boards: Add phytec-phyflex-am335x
pfla03: add toam335x_defconfig
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox