ar71xx: build ALFA AP96 images with default profile as well
[oweals/openwrt.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-pb44.c
index 59802d4b8db3d2dfdf26906cb885cd1d99bb2264..5e013504e6e62dd9626066438b7fd94e7b913598 100644 (file)
@@ -129,12 +129,22 @@ static struct vsc7385_platform_data pb44_vsc7395_data = {
        },
 };
 
+static const char *pb44_part_probes[] = {
+       "RedBoot",
+       NULL,
+};
+
+static struct flash_platform_data pb44_flash_data = {
+       .part_probes    = pb44_part_probes,
+};
+
 static struct spi_board_info pb44_spi_info[] = {
        {
                .bus_num        = 0,
                .chip_select    = 0,
                .max_speed_hz   = 25000000,
                .modalias       = "m25p80",
+               .platform_data  = &pb44_flash_data,
        }, {
                .bus_num        = 0,
                .chip_select    = 1,
@@ -174,7 +184,7 @@ static struct platform_device pb44_spi_device = {
 
 static void __init pb44_init(void)
 {
-       ar71xx_add_device_mdio(~PB44_MDIO_PHYMASK);
+       ar71xx_add_device_mdio(0, ~PB44_MDIO_PHYMASK);
 
        ar71xx_init_mac(ar71xx_eth0_data.mac_addr, ar71xx_mac_base, 0);
        ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII;