From 900f88f3b08b71becd5cecba0687e8eb24fc342b Mon Sep 17 00:00:00 2001 From: Sergey Temerkhanov Date: Wed, 14 Oct 2015 09:55:51 -0700 Subject: armv8: cavium: Add an implementation of ATF calling functions This commit adds functions issuing calls to the product-specific ATF services Signed-off-by: Sergey Temerkhanov Signed-off-by: Radha Mohan Chintakuntla --- include/cavium/atf.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/cavium/atf.h (limited to 'include/cavium/atf.h') diff --git a/include/cavium/atf.h b/include/cavium/atf.h new file mode 100644 index 0000000000..0a53c2f1de --- /dev/null +++ b/include/cavium/atf.h @@ -0,0 +1,22 @@ +/** + * (C) Copyright 2014, Cavium Inc. + * + * SPDX-License-Identifier: GPL-2.0+ +**/ +#ifndef __ATF_H__ +#define __ATF_H__ +#include + +ssize_t atf_read_mmc(uintptr_t offset, void *buffer, size_t size); +ssize_t atf_read_nor(uintptr_t offset, void *buffer, size_t size); +ssize_t atf_get_pcount(void); +ssize_t atf_get_part(struct storage_partition *part, unsigned int index); +ssize_t atf_erase_nor(uintptr_t offset, size_t size); +ssize_t atf_write_nor(uintptr_t offset, const void *buffer, size_t size); +ssize_t atf_write_mmc(uintptr_t offset, const void *buffer, size_t size); +ssize_t atf_dram_size(unsigned int node); +ssize_t atf_node_count(void); +ssize_t atf_env_count(void); +ssize_t atf_env_string(size_t index, char *str); + +#endif -- cgit