ARM: mxs: move spl data
[oweals/u-boot.git] / arch / arm / cpu / arm926ejs / mxs / spl_boot.c
index d9d1d73d1af4fe25d78442f9be62b96aecf43401..0c3925640dc944966457332480b9b3ac0e6364a6 100644 (file)
@@ -120,8 +120,7 @@ void mxs_common_spl_init(const uint32_t arg, const uint32_t *resptr,
                         const iomux_cfg_t *iomux_setup,
                         const unsigned int iomux_size)
 {
-       struct mxs_spl_data *data = (struct mxs_spl_data *)
-               ((CONFIG_SYS_TEXT_BASE - sizeof(struct mxs_spl_data)) & ~0xf);
+       struct mxs_spl_data *data = MXS_SPL_DATA;
        uint8_t bootmode = mxs_get_bootmode_index();
        gd = &gdata;