18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * B53 platform data
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (C) 2013 Jonas Gorski <jogo@openwrt.org>
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any
78c2ecf20Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above
88c2ecf20Sopenharmony_ci * copyright notice and this permission notice appear in all copies.
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
118c2ecf20Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
128c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
138c2ecf20Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
148c2ecf20Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
158c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
168c2ecf20Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
178c2ecf20Sopenharmony_ci */
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#ifndef __B53_H
208c2ecf20Sopenharmony_ci#define __B53_H
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#include <linux/types.h>
238c2ecf20Sopenharmony_ci#include <linux/platform_data/dsa.h>
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cistruct b53_platform_data {
268c2ecf20Sopenharmony_ci	/* Must be first such that dsa_register_switch() can access it */
278c2ecf20Sopenharmony_ci	struct dsa_chip_data cd;
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci	u32 chip_id;
308c2ecf20Sopenharmony_ci	u16 enabled_ports;
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	/* only used by MMAP'd driver */
338c2ecf20Sopenharmony_ci	unsigned big_endian:1;
348c2ecf20Sopenharmony_ci	void __iomem *regs;
358c2ecf20Sopenharmony_ci};
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#endif
38