// SPDX-License-Identifier: GPL-2.0-only1/*2*3* Copyright (C) 2013 John Crispin <[email protected]>4*/56#include <linux/debugfs.h>7#include <linux/seq_file.h>89#define BOOTROM_OFFSET 0x1011800010#define BOOTROM_SIZE 0x80001112static void __iomem *membase = (void __iomem *) KSEG1ADDR(BOOTROM_OFFSET);1314static int bootrom_show(struct seq_file *s, void *unused)15{16seq_write(s, membase, BOOTROM_SIZE);1718return 0;19}20DEFINE_SHOW_ATTRIBUTE(bootrom);2122static int __init bootrom_setup(void)23{24debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_fops);25return 0;26}2728postcore_initcall(bootrom_setup);293031