~samhsmith/unboot

c991271bba43aff8ca8c078fad4e790ad00a892a — Sam H. Smith 10 months ago 0407f91
USB init
2 files changed, 8 insertions(+), 0 deletions(-)

M common/main.c
M drivers/usb/host/usb-uclass.c
M common/main.c => common/main.c +5 -0
@@ 36,6 36,8 @@ static void run_preboot_environment_command(void)
	}
}

void usb_init();

/* We come here after U-Boot is initialised and ready to process commands */
void main_loop(void)
{


@@ 48,6 50,9 @@ void main_loop(void)
    printf("Print info:\n");
    print_mmcinfo(mmc);
    
    printf("Starting USB\n");
    usb_init();
    
    u8* addr = 0x50000000;
    u32 cnt = 2048;
    printf("Read blocks...\n");

M drivers/usb/host/usb-uclass.c => drivers/usb/host/usb-uclass.c +3 -0
@@ 300,6 300,9 @@ int usb_init(void)
		usb_started = true;
	}

    printf("PLEBIAN denial of scanning!\n");
    return;

	/*
	 * lowlevel init done, now scan the bus for devices i.e. search HUBs
	 * and configure them, first scan primary controllers.