Skip to content
Snippets Groups Projects
Commit 44b9841d authored by Nikita Kiryanov's avatar Nikita Kiryanov Committed by Stefano Babic
Browse files

arm: imx: stop sata on boot


Ideally, the Linux kernel should get the hardware in its most
untouched state. For the most part, U-Boot does not reset the various
subsystems it touches before boot, and usually Linux deals with it, but
on some boards (cm_fx6) the Linux kernel fails to detect the ssd
correctly if sata is used by U-Boot.

Power off sata on OS boot so that Linux will have a clean state to work
with.

Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
Cc: Stefano Babic <sbabic@denx.de>
parent 9cad3544
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <asm/arch/crm_regs.h> #include <asm/arch/crm_regs.h>
#include <ipu_pixfmt.h> #include <ipu_pixfmt.h>
#include <thermal.h> #include <thermal.h>
#include <sata.h>
#ifdef CONFIG_FSL_ESDHC #ifdef CONFIG_FSL_ESDHC
#include <fsl_esdhc.h> #include <fsl_esdhc.h>
...@@ -201,13 +202,16 @@ u32 get_ahb_clk(void) ...@@ -201,13 +202,16 @@ u32 get_ahb_clk(void)
return get_periph_clk() / (ahb_podf + 1); return get_periph_clk() / (ahb_podf + 1);
} }
#if defined(CONFIG_VIDEO_IPUV3)
void arch_preboot_os(void) void arch_preboot_os(void)
{ {
#if defined(CONFIG_CMD_SATA)
sata_stop();
#endif
#if defined(CONFIG_VIDEO_IPUV3)
/* disable video before launching O/S */ /* disable video before launching O/S */
ipuv3_fb_shutdown(); ipuv3_fb_shutdown();
}
#endif #endif
}
void set_chipselect_size(int const cs_size) void set_chipselect_size(int const cs_size)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment