imx8mp_evk: spl: drop useless code
authorPeng Fan <peng.fan@nxp.com>
Tue, 26 May 2020 23:33:46 +0000 (20:33 -0300)
committerStefano Babic <sbabic@denx.de>
Mon, 8 Jun 2020 08:42:26 +0000 (10:42 +0200)
Drop useless getting ccm device, there is no need to explicted do this
in board code, and we not enable SPL CLK currently.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
board/freescale/imx8mp_evk/spl.c

index cd5b32c3f8c4e1fd0d4d55aa22d4bb16afc2e3ed..f2cc17775779ed6c35d9cb1e23f5046450c4e99b 100644 (file)
 #include <mmc.h>
 #include <asm/arch/ddr.h>
 
-#include <dm/uclass.h>
-#include <dm/device.h>
-#include <dm/uclass-internal.h>
-#include <dm/device-internal.h>
-
 DECLARE_GLOBAL_DATA_PTR;
 
 int spl_board_boot_device(enum boot_device boot_dev_spl)
@@ -48,16 +43,7 @@ void spl_dram_init(void)
 
 void spl_board_init(void)
 {
-       struct udevice *dev;
-       int ret;
-
        puts("Normal Boot\n");
-
-       ret = uclass_get_device_by_name(UCLASS_CLK,
-                                       "clock-controller@30380000",
-                                       &dev);
-       if (ret < 0)
-               printf("Failed to find clock node. Check device tree\n");
 }
 
 #define I2C_PAD_CTRL (PAD_CTL_DSE6 | PAD_CTL_HYS | PAD_CTL_PUE | PAD_CTL_PE)