]> git.ipfire.org Git - people/ms/u-boot.git/commit - board/sunxi/board.c
sunxi: Turn satapwr on from board_init
authorHans de Goede <hdegoede@redhat.com>
Tue, 22 Mar 2016 19:10:30 +0000 (20:10 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 23 Mar 2016 21:04:13 +0000 (22:04 +0100)
commit9fbb0c3aa49f4604b0342cb527a6bd099f92eaeb
treeff77a340d90712e8a9696a5b8a752556a9f3d7c3
parentfc8991c61c393ce6a9d3dfc97cb56dbbd9e8cbba
sunxi: Turn satapwr on from board_init

There are 2 reasons for doing this:

1) The main reason for doing this is to move it outside of
   board/sunxi/ahci.c, so that it can be used on boards which use
   a usb<->sata chip too;
2) While doing this I realized that doing it from board_init also meant
   doing it much earlier. Some printf get_timer(0) calls show that the
   time between board_init() and scsi_init() is more then 600 ms,
   so we can drop the mdelay(500)

While at it also drop the printf("SUNXI SCSI INIT\n") AHCI init is
noisy enough by itself.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
board/sunxi/ahci.c
board/sunxi/board.c