mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-08 07:13:06 +00:00
* NVME, SATA NAND Security added * Qortal Core exception fetcher is now redone. * Update DT overlays for firmware * Fix for bvb clockj settings * Fix for no audio for sissy desktop porn watchers -_- ( thanks crowetic for watching gay porn and reporting me that bug asshat ) * Normalize the fetch() stream while doing a peer to peer handshake for nodes * Fix for RNG token editing error while performing a SHA256 encryption * Now under voltage errors will blink red led constantly for 5 minutes then go solid. * Improve kernel thread scaling for Qortal 2.0 core * HDMI circuit is now enabled at power up instead. * Added KMS * Added line replication instead of interpolation for VC4 GPU resulting in slightly better frame rates * Fix for long and doubles * Backplane clock is now set at standard rate * Capped HVEC clocks * Add support for Creative Cinema webcam for donkers who like sharing dick pics. *looks at crowetic* * More scanline XGA modes for people who have weird ass monitors of all sorts. * TX/RX flow control support is now 100% stable. No lags over 1Gbps ethernet. ( Hello Qortal 3.0 ) * Using flush cache instead of fetch for QC 2.0 resulting in performance gains * VC4 clock is now enforced for desktop oriented images. * Ondemand governor now waits for 2 seconds instead of 0.5ms to scale down to the lowest safest clock freq preventing lags to the core. * Timeout of OC set at 35ms from 90ms resulting in way better clocks and sync for Qortal 2.0 core
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Hardware parameter area specific to Sharp SL series devices
|
|
*
|
|
* Copyright (c) 2005 Richard Purdie
|
|
*
|
|
* Based on Sharp's 2.4 kernel patches
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/string.h>
|
|
#include <asm/mach/sharpsl_param.h>
|
|
#include <asm/memory.h>
|
|
|
|
/*
|
|
* Certain hardware parameters determined at the time of device manufacture,
|
|
* typically including LCD parameters are loaded by the bootloader at the
|
|
* address PARAM_BASE. As the kernel will overwrite them, we need to store
|
|
* them early in the boot process, then pass them to the appropriate drivers.
|
|
* Not all devices use all parameters but the format is common to all.
|
|
*/
|
|
#ifdef CONFIG_ARCH_SA1100
|
|
#define PARAM_BASE 0xe8ffc000
|
|
#define param_start(x) (void *)(x)
|
|
#else
|
|
#define PARAM_BASE 0xa0000a00
|
|
#define param_start(x) __va(x)
|
|
#endif
|
|
#define MAGIC_CHG(a,b,c,d) ( ( d << 24 ) | ( c << 16 ) | ( b << 8 ) | a )
|
|
|
|
#define COMADJ_MAGIC MAGIC_CHG('C','M','A','D')
|
|
#define UUID_MAGIC MAGIC_CHG('U','U','I','D')
|
|
#define TOUCH_MAGIC MAGIC_CHG('T','U','C','H')
|
|
#define AD_MAGIC MAGIC_CHG('B','V','A','D')
|
|
#define PHAD_MAGIC MAGIC_CHG('P','H','A','D')
|
|
|
|
struct sharpsl_param_info sharpsl_param;
|
|
EXPORT_SYMBOL(sharpsl_param);
|
|
|
|
void sharpsl_save_param(void)
|
|
{
|
|
struct sharpsl_param_info *params = param_start(PARAM_BASE);
|
|
|
|
memcpy(&sharpsl_param, params, sizeof(*params));
|
|
|
|
if (sharpsl_param.comadj_keyword != COMADJ_MAGIC)
|
|
sharpsl_param.comadj=-1;
|
|
|
|
if (sharpsl_param.phad_keyword != PHAD_MAGIC)
|
|
sharpsl_param.phadadj=-1;
|
|
|
|
if (sharpsl_param.uuid_keyword != UUID_MAGIC)
|
|
sharpsl_param.uuid[0]=-1;
|
|
|
|
if (sharpsl_param.touch_keyword != TOUCH_MAGIC)
|
|
sharpsl_param.touch_xp=-1;
|
|
|
|
if (sharpsl_param.adadj_keyword != AD_MAGIC)
|
|
sharpsl_param.adadj=-1;
|
|
}
|
|
|
|
|