/*
- * Copyright (c) 2013-2014 NVIDIA Corporation. All rights reserved.
+ * Copyright (c) 2013-2015 NVIDIA Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include <asm/page.h>
#include <linux/dma-mapping.h>
#include <linux/string.h>
+#include <linux/of.h>
#include "ote_protocol.h"
return ret;
} else if (ret == -ENOTSUPP) {
/* Node is present, but logger is disabled */
+ if (of_machine_is_compatible("nvidia,foster-e"))
+ smc_args[0] = TE_SMC_INIT_LOGGER_LEGACY;
+ else
smc_args[0] = TE_SMC_INIT_LOGGER;
smc_args[1] = 0;
send_smc(smc_args[0], smc_args[1], 0);
if (circ_buf_init(&cb) != 0)
return -1;
- smc_args[0] = TE_SMC_INIT_LOGGER;
+ if (of_machine_is_compatible("nvidia,foster-e"))
+ smc_args[0] = TE_SMC_INIT_LOGGER_LEGACY;
+ else
+ smc_args[0] = TE_SMC_INIT_LOGGER;
smc_args[1] = (uintptr_t)cb;
/* enable logging only if secure firmware supports it */