@@ -4295,6 +4295,20 @@ static void __init am33xx_cpuidle_init(void)
}
+static void gpmc_test(void)
+{
+ unsigned long base = 0x12345678;
+
+ struct gpmc_devices_info gpmc_device[2] = {
+ { NULL, GPMC_DEVICE_NOR },
+ };
+
+ setup_pin_mux(gpmc_pin_mux);
+ omap_init_gpmc(gpmc_device, sizeof(gpmc_device));
+ gpmc_cs_request(0, SZ_16M, &base);
+ printk(KERN_INFO "gpmc base @ 0x%08lx\n", base);
+}
+
static void __init am335x_evm_init(void)
{
am33xx_cpuidle_init();
@@ -4313,6 +4327,8 @@ static void __init am335x_evm_init(void)
/* Create an alias for gfx/sgx clock */
if (clk_add_alias("sgx_ck", NULL, "gfx_fclk", NULL))
pr_warn("failed to create an alias: gfx_fclk --> sgx_ck\n");
+
+ gpmc_test();
}
static void __init am335x_evm_map_io(void)